diff templates/classic/html/query.edit.html @ 2395:97f810f39d16

i18n markup
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Sun, 06 Jun 2004 13:21:39 +0000
parents 3b92a1b7a056
children 7fb8cfe3c737
line wrap: on
line diff
--- a/templates/classic/html/query.edit.html	Sun Jun 06 13:04:24 2004 +0000
+++ b/templates/classic/html/query.edit.html	Sun Jun 06 13:21:39 2004 +0000
@@ -1,18 +1,15 @@
 <!-- dollarId: user.item,v 1.7 2002/08/16 04:29:04 richard Exp dollar-->
 <tal:block metal:use-macro="templates/page/macros/icing">
-<title metal:fill-slot="head_title"> 
-"Your Queries" Editing
-- <span tal:replace="config/TRACKER_NAME" />
-</title> 
-<span metal:fill-slot="body_title" tal:omit-tag="python:1">
- "Your Queries" Editing
-</span>
+<title metal:fill-slot="head_title" i18n:translate=""
+ >"Your Queries" Editing - <span tal:replace="config/TRACKER_NAME"
+ i18n:name="tracker" /></title>
+<span metal:fill-slot="body_title" tal:omit-tag="python:1"
+ i18n:translate="">"Your Queries" Editing</span>
 
 <td class="content" metal:fill-slot="content">
 
-<span tal:condition="not:context/is_edit_ok">
-You are not allowed to edit queries.
-</span>
+<span tal:condition="not:context/is_edit_ok"
+ i18n:translate="">You are not allowed to edit queries.</span>
 
 <script language="javascript">
 // This exists solely because I can't figure how to get the & into an
@@ -28,10 +25,10 @@
 <table class="list" width="100%"
        tal:define="uid request/user/id; mine request/user/queries">
 
-<tr><th>Query</th>
-    <th>Include in "Your Queries"</th>
-    <th>Edit</th>
-    <th>Private to you?</th>
+<tr><th i18n:translate="">Query</th>
+    <th i18n:translate="">Include in "Your Queries"</th>
+    <th i18n:translate="">Edit</th>
+    <th i18n:translate="">Private to you?</th>
     <th>&nbsp;</th>
 </tr>
 
@@ -44,17 +41,17 @@
  <td metal:define-macro="include">
   <select tal:condition="python:query.id not in mine"
           tal:attributes="name string:user${uid}@add@queries">
-    <option value="">leave out</option>
-    <option tal:attributes="value query/id">include</option>
+    <option value="" i18n:translate="">leave out</option>
+    <option tal:attributes="value query/id" i18n:translate="">include</option>
   </select>
   <select tal:condition="python:query.id in mine"
           tal:attributes="name string:user${uid}@remove@queries">
-    <option value="">leave in</option>
-    <option tal:attributes="value query/id">remove</option>
+    <option value="" i18n:translate="">leave in</option>
+    <option tal:attributes="value query/id" i18n:translate="">remove</option>
   </select>
  </td>
 
- <td colspan="3">[query is retired]</td>
+ <td colspan="3" i18n:translate="">[query is retired]</td>
 
  <!-- <td> maybe offer "restore" some day </td> -->
  </tal:block>
@@ -67,19 +64,19 @@
 
  <td metal:use-macro="template/macros/include" />
 
- <td><a tal:attributes="href string:query${query/id}">edit</a></td>
+ <td><a tal:attributes="href string:query${query/id}" i18n:translate="">edit</a></td>
 
  <td>
   <select tal:attributes="name string:query${query/id}@private_for">
    <option tal:attributes="selected python:query.private_for == uid;
-           value uid">yes</option>
+           value uid" i18n:translate="">yes</option>
    <option tal:attributes="selected python:query.private_for == None"
-           value="-1">no</option>
+           value="-1" i18n:translate="">no</option>
   </select>
  </td>
 
  <td>
-  <input type="button" value="Delete"
+  <input type="button" value="Delete" i18n:attributes="value"
   tal:attributes="onClick python:'''retire('%s')'''%query.id">
   </td>
 </tr>
@@ -90,13 +87,13 @@
         tal:content="query/name">query</a></td>
 
  <td metal:use-macro="template/macros/include" />
- <td colspan="3">[not yours to edit]</td>
+ <td colspan="3" i18n:translate="">[not yours to edit]</td>
 </tr>
 
 <tr><td colspan="5">
         <input type="hidden" name="@action" value="edit">
         <input type="hidden" name="@template" value="edit">
-        <input type="submit" value="Save Selection">
+        <input type="submit" value="Save Selection" i18n:attributes="value">
 </td></tr>
 
 </table>

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