|
1 | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | | -<html> |
| 2 | +<html tal:define="property request/form/property/value" > |
3 | 3 | <head> |
4 | 4 | <link rel="stylesheet" type="text/css" href="@@file/style.css" /> |
5 | | - <meta http-equiv="Content-Type" content="text/html; charset=utf-8;" /> |
| 5 | + <meta http-equiv="Content-Type" |
| 6 | + tal:attributes="content string:text/html;; charset=${request/client/charset}" /> |
6 | 7 | <tal:block tal:condition="python:request.form.has_key('property')"> |
7 | | - <title tal:content="string:${request/form/property/value} help">Property</title> |
8 | | - <script language="Javascript" type="text/javascript" |
| 8 | + <title i18n:translate=""><tal:x i18n:name="property" |
| 9 | + tal:content="property" i18n:translate="" /> help - <span i18n:name="tracker" |
| 10 | + tal:replace="config/TRACKER_NAME" /></title> |
| 11 | + <script language="Javascript" type="text/javascript" |
9 | 12 | tal:content="structure string: |
10 | 13 | // this is the name of the field in the original form that we're working on |
11 | | - form = window.opener.document.${request/form/form/value};"> |
| 14 | + form = window.opener.document.${request/form/form/value};" > |
12 | 15 | </script> |
13 | | - <script src="@@file/help_controls.js" type="text/javascript"><!-- |
| 16 | + <script src="@@file/help_controls.js" type="text/javascript"><!-- |
14 | 17 | //--></script> |
15 | 18 | </tal:block> |
16 | 19 | </head> |
17 | 20 | <body class="body" onload="resetList();"> |
18 | 21 | <form name="frm_help" tal:attributes="action request/base" |
19 | 22 | tal:define="batch request/batch; |
20 | 23 | props python:request.form['properties'].value.split(',')"> |
21 | | - |
| 24 | + |
22 | 25 | <div id="classhelp-controls"> |
23 | | - <!--input type="button" name="btn_clear" |
| 26 | + <!--input type="button" name="btn_clear" |
24 | 27 | value="Clear" onClick="clearList()"/ --> |
25 | 28 | <input type="text" name="text_preview" size="24" class="preview" |
26 | 29 | onchange="reviseList(this.value);"/> |
27 | | - <input type="button" name="btn_reset" |
28 | | - value=" Cancel " onclick="resetList(); window.close();"/> |
| 30 | + <input type="button" name="btn_reset" |
| 31 | + value=" Cancel " onclick="resetList(); window.close();" |
| 32 | + i18n:attributes="value" /> |
29 | 33 | <input type="button" name="btn_apply" class="apply" |
30 | | - value=" Apply " onclick="updateList(); window.close();"/> |
| 34 | + value=" Apply " onclick="updateList(); window.close();" |
| 35 | + i18n:attributes="value" /> |
31 | 36 | </div> |
32 | 37 | <table width="100%"> |
33 | 38 | <tr class="navigation"> |
|
36 | 41 | tal:attributes="href python:request.indexargs_href(request.classname, |
37 | 42 | {'@template':'help', 'property': request.form['property'].value, |
38 | 43 | 'properties': request.form['properties'].value, |
39 | | - '@startwith':prev.first, '@pagesize':prev.size})"><< previous</a> |
| 44 | + '@startwith':prev.first, '@pagesize':prev.size})" |
| 45 | + i18n:translate="" ><< previous</a> |
| 46 | + |
| 47 | + </th> |
| 48 | + <th i18n:translate=""><span tal:replace="batch/start" i18n:name="start" |
| 49 | + />..<span tal:replace="python: batch.start + batch.length -1" i18n:name="end" |
| 50 | + /> out of <span tal:replace="batch/sequence_length" i18n:name="total" |
| 51 | + /> |
40 | 52 | |
41 | 53 | </th> |
42 | | - <th tal:content="python: '%d...%d out of %d'%(batch.start, |
43 | | - batch.start+batch.length-1, batch.sequence_length)">current</th> |
44 | 54 | <th> |
45 | 55 | <a tal:define="next batch/next" tal:condition="next" |
46 | 56 | tal:attributes="href python:request.indexargs_href(request.classname, |
47 | 57 | {'@template':'help', 'property': request.form['property'].value, |
48 | 58 | 'properties': request.form['properties'].value, |
49 | | - '@startwith':next.first, '@pagesize':next.size})">next >></a> |
| 59 | + '@startwith':next.first, '@pagesize':next.size})" |
| 60 | + i18n:translate="" >next >></a> |
50 | 61 | |
51 | 62 | </th> |
52 | 63 | </tr> |
|
55 | 66 | <table class="classhelp"> |
56 | 67 | <tr> |
57 | 68 | <th> <b>x</b></th> |
58 | | - <th tal:repeat="prop props" tal:content="prop"></th> |
| 69 | + <th tal:repeat="prop props" tal:content="prop" i18n:translate=""></th> |
59 | 70 | </tr> |
60 | 71 | <tr tal:repeat="item batch"> |
61 | 72 | <tal:block tal:define="attr python:item[props[0]]"> |
62 | 73 | <td> |
63 | | - <input type="checkbox" name="check" |
| 74 | + <input type="checkbox" name="check" |
64 | 75 | onclick="updatePreview();" |
65 | 76 | tal:attributes="value attr; id string:id_$attr" /> |
66 | 77 | </td> |
|
73 | 84 | </tr> |
74 | 85 | <tr> |
75 | 86 | <th> <b>x</b></th> |
76 | | - <th tal:repeat="prop props" tal:content="prop"></th> |
| 87 | + <th tal:repeat="prop props" tal:content="prop" i18n:translate=""></th> |
77 | 88 | </tr> |
78 | 89 | </table> |
79 | 90 |
|
|
0 commit comments