source: trunk/skins/lemill/manage_translations.pt @ 1924

Revision 1924, 5.5 KB checked in by tarmo, 12 years ago (diff)

i18n fixes (invalid xml syntax being used)

Line 
1<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
2      lang="en"
3      metal:use-macro="here/main_template/macros/master"
4      i18n:domain="lemill">
5     
6     
7<metal:block fill-slot="top_slot"
8             tal:define="dummy python:request.set('disable_border',1)" />
9
10<body>
11
12<div metal:fill-slot="main"
13     tal:define="translations python:here.getTranslationsOfOriginal(include_self=False);
14                 mother here/getOriginal;
15                 obj_translations here/getTranslations;
16                ">
17
18      <div id="content" class="documentEditable">
19
20    <div id="region-content">
21      <a name="documentContent"></a>
22
23      <div metal:use-macro="here/global_statusmessage/macros/portal_message">
24        Portal status message
25      </div>
26
27    <h1 i18n:translate="heading_manage_translations">LeMill managers: Manage translations</h1>
28
29     <form name="change_mother"
30           method="post"
31           class="enableUnloadProtection"
32           tal:attributes="action string:${here/absolute_url}/manage_form_setTranslationOf"
33           action="manage_form_setTranslationOf">
34
35        <h2 i18n:translate="heading_translation_of">
36            This '<span i18n:name="title" tal:replace="here/Title" />' (<span i18n:name="id" tal:replace="here/id" />) <br/>is a translation of...
37        </h2>
38        <p><input type="text" tal:attributes="value mother/id | string:" name="mother_field" /> <a href="" tal:condition="mother" tal:attributes="href string:${mother/absolute_url}/manage_translations" i18n:translate="">link</a></p>
39
40      <div class="formControls">
41           
42           <input class="context"
43                  type="submit"
44                  name="form.button.set_mother"
45                  value="Change source of translation" i18n:domain="lemill"
46                  i18n:attributes="value label_change_translation_source;"
47                  tal:attributes="tabindex tabindex/next"
48                  />
49       </div>
50
51
52     </form>
53
54        <br/>
55
56        <h2 i18n:translate="label_has_translations">The following are translations of this resource:</h2>
57
58        <tal:cond condition="obj_translations">
59     <form name="assign_translations"
60           method="post"
61           class="enableUnloadProtection"
62           tal:attributes="action string:${here/absolute_url}/manage_form_setTranslations"
63           action="manage_form_setTranslations">
64
65
66        <ul tal:repeat="trans obj_translations">
67        <li  tal:define="index repeat/trans/index" >
68        <input type="text" tal:attributes="value trans/id; name python:'obj_translation%s' % index" />
69        <a href="" tal:content="trans/title" tal:attributes="href string:${trans/absolute_url}/manage_translations" />       
70        <input type="hidden" tal:attributes="value trans/id; name python:'obj_translation_old%s' % index" />
71        (<span tal:replace="python:here.script_getPrettyLanguage(trans.Language())" />)
72        </li>
73        </ul>
74
75
76
77      <div class="formControls">
78           <input class="context"
79                  type="submit"
80                  name="form.button.assign_translations"
81                  value="Change translations" i18n:domain="lemill"
82                  i18n:attributes="value label_change_translation_base;"
83                  tal:attributes="tabindex tabindex/next"
84                  />
85      </div>
86
87        <p i18n:translate="setting_translations">You can remove translations by setting the field blank or change translation by writing other objects id in place.</p>
88        <p tal:condition="mother"><b i18n:translate="confused_translation">This is a translation of resource <span i18n:name="mother_id" tal:replace="mother/id" />, but seems to have translations of its own. These translations should also point to <span i18n:name="mother_id2" tal:replace="mother/id" />.</b></p>
89
90
91        </form>
92        </tal:cond>
93   <tal:cond condition="not:obj_translations">
94    <ul><li i18n:translate="no_translations">No translations based on this resource</li></ul>
95   </tal:cond>
96
97    <br/><br/>
98
99     <form name="add_translations"
100           method="post"
101           class="enableUnloadProtection"
102           tal:attributes="action string:${here/absolute_url}/manage_form_addTranslation"
103           action="manage_form_addTranslation">
104
105        <p><input type="text" value="" name="new_translation" />
106        <input class="context"
107                  type="submit"
108                  name="form.button.add_translation"
109                  value="Add this as translation" i18n:domain="lemill"
110                  i18n:attributes="value label_add_this_as_translation;"
111                  tal:attributes="tabindex tabindex/next"
112                  />
113        </p>
114
115        <tal:cond condition="python:translations and mother">
116        <h2 i18n:translate="label_group_of_translations">This resource belongs to a group of translations:</h2>
117
118        <legend i18n:translate="label_source_has_translations">Source resource '<a href="" i18n:name="source_id" tal:content="mother/id" tal:attributes="href string:${mother/absolute_url}/manage_translations" />' (<span i18n:name="language" tal:content="python:here.script_getPrettyLanguage(mother.Language())" />) has following translations:</legend>
119
120        <ul tal:repeat="trans translations">
121        <li><span tal:replace="trans/id" /> <a href="" tal:content="trans/title" tal:attributes="href string:${trans/absolute_url}/manage_translations" /> (<span tal:replace="python:here.script_getPrettyLanguage(trans.Language())" />)</li>
122        </ul>
123
124        </tal:cond>
125
126     </form>
127
128
129    </div>
130  </div>
131</div>
132
133</body>
134</html>
135
136
Note: See TracBrowser for help on using the repository browser.