diff templates/classic/html/issue.index.html @ 2393:c2908812624a

i18n markup
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Sun, 06 Jun 2004 12:59:15 +0000
parents daf5bd3666bd
children 48143bde35df
line wrap: on
line diff
--- a/templates/classic/html/issue.index.html	Sun Jun 06 12:50:26 2004 +0000
+++ b/templates/classic/html/issue.index.html	Sun Jun 06 12:59:15 2004 +0000
@@ -1,28 +1,29 @@
 <!-- dollarId: issue.index,v 1.2 2001/07/29 04:07:37 richard Exp dollar-->
 <tal:block metal:use-macro="templates/page/macros/icing">
-<title metal:fill-slot="head_title"> 
- List of issues - <span tal:replace="config/TRACKER_NAME" />
-</title> 
-<span metal:fill-slot="body_title" tal:omit-tag="python:1">List of issues</span>
+<title metal:fill-slot="head_title" i18n:translate=""
+ >List of issues - <span tal:replace="config/TRACKER_NAME"
+ i18n:name="tracker" /></title>
+<span metal:fill-slot="body_title" tal:omit-tag="python:1"
+ i18n:translate="">List of issues</span>
 <td class="content" metal:fill-slot="content">
 
-<tal:block tal:condition="not:context/is_view_ok">
-You are not allowed to view this page.
-</tal:block>
+<span tal:condition="not:context/is_view_ok"
+ tal:omit-tag="python:1" i18n:translate=""
+>You are not allowed to view this page.</span>
 
 <tal:block tal:define="batch request/batch" tal:condition="context/is_view_ok">
  <table class="list">
   <tr>
-   <th tal:condition="request/show/priority">Priority</th>
-   <th tal:condition="request/show/id">ID</th>
-   <th tal:condition="request/show/creation">Creation</th>
-   <th tal:condition="request/show/activity">Activity</th>
-   <th tal:condition="request/show/actor">Actor</th>
-   <th tal:condition="request/show/topic">Topic</th>
-   <th tal:condition="request/show/title">Title</th>
-   <th tal:condition="request/show/status">Status</th>
-   <th tal:condition="request/show/creator">Creator</th>
-   <th tal:condition="request/show/assignedto">Assigned&nbsp;To</th>
+   <th tal:condition="request/show/priority" i18n:translate="">Priority</th>
+   <th tal:condition="request/show/id" i18n:translate="">ID</th>
+   <th tal:condition="request/show/creation" i18n:translate="">Creation</th>
+   <th tal:condition="request/show/activity" i18n:translate="">Activity</th>
+   <th tal:condition="request/show/actor" i18n:translate="">Actor</th>
+   <th tal:condition="request/show/topic" i18n:translate="">Topic</th>
+   <th tal:condition="request/show/title" i18n:translate="">Title</th>
+   <th tal:condition="request/show/status" i18n:translate="">Status</th>
+   <th tal:condition="request/show/creator" i18n:translate="">Creator</th>
+   <th tal:condition="request/show/assignedto" i18n:translate="">Assigned&nbsp;To</th>
   </tr>
  <tal:block tal:repeat="i batch">
   <tr tal:define="group python:request.group[1]"
@@ -65,15 +66,19 @@
      <th>
       <a tal:define="prev batch/previous" tal:condition="prev"
          tal:attributes="href python:request.indexargs_href(request.classname,
-         {'@startwith':prev.first, '@pagesize':prev.size})">&lt;&lt; previous</a>
+         {'@startwith':prev.first, '@pagesize':prev.size})"
+         i18n:translate="">&lt;&lt; previous</a>
       &nbsp;
      </th>
-     <th tal:content="python: '%d...%d out of %d'%(batch.start,
-             batch.start+batch.length-1, batch.sequence_length)">current</th>
+     <th i18n:translate=""><span tal:replace="batch/start" i18n:name="start"
+     />..<span tal:replace="python: batch.start + batch.length -1" i18n:name="end"
+     /> out of <span tal:replace="batch/sequence_length" i18n:name="total"
+     /></th>
      <th>
       <a tal:define="next batch/next" tal:condition="next"
          tal:attributes="href python:request.indexargs_href(request.classname,
-         {'@startwith':next.first, '@pagesize':next.size})">next &gt;&gt;</a>
+         {'@startwith':next.first, '@pagesize':next.size})"
+         i18n:translate="">next &gt;&gt;</a>
       &nbsp;
      </th>
     </tr>
@@ -83,42 +88,42 @@
 </table>
 
 <a tal:attributes="href python:request.indexargs_url('issue',
-            {'@action':'export_csv'})">Download as CSV</a>
+            {'@action':'export_csv'})" i18n:translate="">Download as CSV</a>
 
 <form method="GET" class="index-controls"
     tal:attributes="action request/classname">
- 
+
  <table class="form">
   <tr tal:condition="batch">
-   <th>Sort on:</th>
+   <th i18n:translate="">Sort on:</th>
    <td>
     <select name="@sort">
-     <option value="">- nothing -</option>
+     <option value="" i18n:translate="">- nothing -</option>
      <option tal:repeat="col context/properties"
              tal:attributes="value col/_name;
                              selected python:col._name == request.sort[1]"
              tal:content="col/_name">column</option>
     </select>
    </td>
-   <th>Descending:</th>
+   <th i18n:translate="">Descending:</th>
    <td><input type="checkbox" name="@sortdir"
-              tal:attributes="checked python:request.sort[0] == '-'"> 
+              tal:attributes="checked python:request.sort[0] == '-'">
    </td>
   </tr>
   <tr>
-   <th>Group on:</th>
+   <th i18n:translate="">Group on:</th>
    <td>
     <select name="@group">
-     <option value="">- nothing -</option>
+     <option value="" i18n:translate="">- nothing -</option>
      <option tal:repeat="col context/properties"
              tal:attributes="value col/_name;
                              selected python:col._name == request.group[1]"
              tal:content="col/_name">column</option>
     </select>
    </td>
-   <th>Descending:</th>
+   <th i18n:translate="">Descending:</th>
    <td><input type="checkbox" name="@groupdir"
-              tal:attributes="checked python:request.group[0] == '-'"> 
+              tal:attributes="checked python:request.group[0] == '-'">
    </td>
   </tr>
   <tr><td colspan="4">

Roundup Issue Tracker: http://roundup-tracker.org/