2
xmlns="http://www.w3.org/1999/xhtml"
3
xmlns:tal="http://xml.zope.org/namespaces/tal"
4
xmlns:metal="http://xml.zope.org/namespaces/metal"
5
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
6
metal:use-macro="view/macro:page/searchless"
7
i18n:domain="launchpad"
10
<div metal:fill-slot="head_epilogue">
12
.dismissed, .dismissed a {
17
<script type="text/javascript">
18
registerLaunchpadFunction(insertAllExpansionButtons);
20
LPS.use('lp.translations.pofile', function(Y) {
21
Y.on('domready', Y.lp.translations.pofile.initializePOFile);
26
<div metal:fill-slot="main">
27
<script type="text/javascript"
28
tal:condition="view/translation_group"
29
tal:content="string:var documentation_cookie =
30
'${view/translation_group/name}' + '_' +
31
'${context/language/code}';">
33
<script type="text/javascript"
34
tal:condition="not:view/translation_group"
35
tal:content="string:var documentation_cookie = 'others';">
38
<!-- Documentation links -->
39
<tal:documentation replace="structure view/documentation_link_bubble" />
41
<tal:havepluralforms condition="view/has_plural_form_information">
44
<div style="float: right;">
45
<form id="search_form" method="get" action="+translate">
46
<tal:comment condition="nothing">
49
<input type="hidden" name="batch" value=""
50
tal:attributes="value view/size" />
51
<input type="hidden" name="show" value="all" />
52
<label for="search_box">Search:</label>
53
<input id="search_box" type="text" name="search"
54
title="Enter text to search for"
55
tal:attributes="value view/search_text" />
60
<metal:nav-pofile-subpages
61
use-macro="context/@@+translations-macros/nav-pofile-subpages" />
63
<!-- Sharing information -->
64
<div tal:condition="features/translations.sharing_information.enabled">
65
<div id="sharing-information"
66
tal:condition="view/is_sharing">
67
<p tal:define="sharing_pofile view/sharing_pofile;
68
template sharing_pofile/potemplate">
69
These translations are shared with
70
<a class="sprite package-source"
71
tal:condition="view/is_upstream_pofile"
72
tal:content="template/sourcepackage/displayname"
73
tal:attributes="href template/sourcepackage/fmt:url">
74
apache in Ubuntu Hoary
75
</a><a class="sprite product"
76
tal:condition="not:view/is_upstream_pofile"
77
tal:content="template/productseries/title"
78
tal:attributes="href template/productseries/fmt:url">
81
<a tal:attributes="href sharing_pofile/fmt:url"
82
tal:content="template/name"
88
<!-- View filter and suggestions from alternative language. -->
89
<form method="get" style="text-align: left;" action="+translate">
90
<!-- the hidden elements -->
91
<input type="hidden" name="start" value=""
92
tal:attributes="value view/start" />
93
<input type="hidden" name="batch" value=""
94
tal:attributes="value view/size" />
96
<tal:comment tal:replace="nothing">
97
The 'selected' attribute value in next select means basically
100
if request.form['show'] == literalvalue:
105
Where 'literalvalue' is 'all', 'untranslated' 'fuzzy' or
111
<tal:XXX tal:replace="nothing">
112
# XXX: JeroenVermeulen 2008-06-18 bug=240897: Try doing this
113
# the Zope way, with an interface.
115
<select id="show_selector" name="show"
116
title="Choose which items to show">
118
tal:attributes="selected
119
request/htmlform:show/selected/all"
123
<option value="untranslated"
124
tal:attributes="selected
125
request/htmlform:show/selected/untranslated"
129
<option value="translated"
130
tal:attributes="selected
131
request/htmlform:show/selected/translated"
135
<option value="new_suggestions"
136
tal:attributes="selected
137
request/htmlform:show/selected/new_suggestions"
139
items with new suggestions
141
<option value="changed_in_ubuntu"
142
tal:attributes="selected
143
request/htmlform:show/selected/changed_in_ubuntu"
145
items changed in Ubuntu
150
<tal:comment replace="nothing">
151
Suggestions from this alternative language will be displayed
152
as well as suggestions from the translation language. In the
153
case where two languages are very similar it will often be
154
useful to show the second language as a source of suggestions
155
when translating into the first.
158
content="structure view/alternative_language_widget" />
160
<input type="hidden" name="old_show" value=""
161
tal:attributes="value view/show" />
162
<input type="submit" value="Change" />
165
<!-- The translation form. -->
166
<tal:block condition="not:view/batchnav/currentBatch">
167
<div class="documentDescription">
168
There are no messages that match this filtering.
172
<tal:block condition="view/batchnav/currentBatch">
173
<form method="POST" action="">
174
<!-- the hidden elements -->
175
<input type="hidden" name="show" value=""
176
tal:attributes="value view/show" />
177
<input type="hidden" name="start" value=""
178
tal:attributes="value view/start" />
179
<input type="hidden" name="batch" value=""
180
tal:attributes="value view/size" />
181
<input type="hidden" name="lock_timestamp" value=""
182
tal:condition="view/form_is_writeable"
183
tal:attributes="value view/lock_timestamp/isoformat" />
184
<table class="listing" style="margin-top: 0.5em;">
188
<!-- Paging doodads. -->
189
<tal:navigation replace="structure view/batchnav/@@+navigation-links-upper" />
193
<tbody class="greater" id="messages_to_translate">
194
<tal:loop repeat="translationmessage_view view/translationmessage_views">
195
<div tal:replace="structure translationmessage_view" />
197
<tr tal:condition="view/form_is_writeable">
200
<tal:completeness replace="view/completeness" />
202
<td style="text-align: right;">
204
name="submit_translations"
205
id="save_and_continue_button"
206
value="Save & Continue"
214
<!-- Paging doodads. -->
216
replace="structure view/batchnav/@@+navigation-links-lower" />
218
<tal:status replace="structure context/@@+access" />
219
<tal:contributors replace="structure context/@@+contributors" />
220
</tal:havepluralforms>
221
<metal:pofile-js-footer
222
use-macro="context/@@+translations-macros/pofile-js-footer" />