source: trunk/gsdl/macros/gti.dm@ 13691

Last change on this file since 13691 was 13691, checked in by mdewsnip, 17 years ago

Added strings and macros for the new "offline translation" GTI page.

  • Property svn:keywords set to Author Date Id Revision
File size: 9.7 KB
Line 
1# this file must be UTF-8 encoded
2
3package gti
4
5_gtiadministratoremail_ {[email protected]}
6
7#######################################################################
8# page head
9#######################################################################
10_cssheader_ {
11_style:cssheader_
12
13<style type="text/css">
14div.todo\{float: left; width: 23px; white-space: pre; text-align: right; color: red;\}
15div.update\{float: left; width: 23px; white-space: pre; text-align: right; color: orange;\}
16div.done\{float: left; width: 23px; white-space: pre; text-align: right; color: green;\}
17div.plus\{float: left; width: 11px; white-space: pre; text-align: center; padding-left: 2px; padding-right: 2px;\}
18div.nowrap\{table-layout: fixed; width: 100px; padding-left:3px; padding-right:3px;\}
19table.status\{border-collapse: collapse;border-style: none; font-size: 12pt;\}
20td.first\{border:solid; border-width:1px; border-color:grey; border-collapse: collapse; vertical-align: middle;\}
21td.status\{table-layout: fixed; border:solid; border-width:1px; border-color:grey; border-collapse: collapse; vertical-align: middle; text-align: center;\}
22th.status\{border:solid; border-width:1px; border-color:white; border-collapse: collapse; background-color: #d0d0d0; text-align: center;\}
23</style>
24}
25
26#######################################################################
27# page content
28#######################################################################
29
30_pagewidth_ {700}
31
32_pagetitle_ {_textgti_}
33
34_imagecollection_ {<a href="_gwcgi_?a=gti&amp;p=home&amp;e=_compressedoptions_"><img alt="_textgti_" src="_httpimg_/gti.gif" /></a>}
35
36# The preferences button must go to the "homepref" page, since we are not in a collection
37
38_preflink_ {_navtaborig_(_home:httppagehomepref_,_linktextPREFERENCES_,_textdescrpref_)}
39
40_content_ {
41<div class="divbar">&nbsp;</div>
42
43<form method="post" action="_gwcgi_">
44 <input type="hidden" name="a" value="gti"/>
45 <input type="hidden" name="e" value="_compressedoptions_">
46 _gtiformcontent_
47</form>
48
49<div class="divbar">&nbsp;</div>
50}
51
52# Content of the GTI "error" page
53_gtierror_ {
54<strong>_textgtierror_:</strong>
55<p>
56<tt>_gtierrormessage_</tt>
57}
58
59# Content of the GTI "home" page
60_gtihome_ {
61<p>_textgtihome_</p>
62
63<table border="0" width="100%">
64 <tr><td>_textgtiselecttlc_:</td><td align="right">_gtitlcselection_</td></tr>
65</table>
66
67<center>
68 <input type="hidden" name="p" value="lang"/><input type="submit" value="_textgtienter_"/>
69</center>
70}
71
72# Content of the GTI "language status" page
73_gtilang_ {
74<h2>_gtitargetlanguagename_</h2>
75
76<p>_textgtiselecttfk_:</p>
77
78_gtitfkselection_
79
80<center>
81 <input type="hidden" name="p" value="core"/><input type="submit" value="_textgtienter_"/>
82</center>
83}
84
85# Content of the GTI "view status" page
86_gtistatus_ {
87<h2>_textgtistatustable_</h2>
88<table>
89<tr><td><font color="green">green</font>:</td><td>_textgtinumchunkstranslated2_</td></tr>
90<tr><td><font color="orange">orange</font>:</td><td>_textgtinumchunksrequiringupdating2_</td></tr>
91<tr><td><font color="red">red</font>:</td><td>_textgtinumchunksrequiringtranslation2_</td></tr>
92</table>
93_gtistatustable_
94}
95
96# Content of the GTI "find text fragments" page
97_gtifind_ {
98<h2><a href="_gwcgi_?a=gti&amp;p=lang&amp;e=_compressedoptions_">_gtitargetlanguagename_</a> -- <a href="_gwcgi_?a=gti&amp;p=core&amp;e=_compressedoptions_">_gtitranslationfiledesc_</a></h2>
99<p>
100_textgtienterquery_:
101<p>
102<nobr>
103<input type="text" name="q" value="_cgiargq_" size="_gtitextareawidth_"/>
104<input type="hidden" name="p" value="find"/><input type="submit" value="_textgtifind_"/>
105</nobr>
106_gtifindformcontent_
107}
108
109# Content of the GTI "offline" page
110_gtioffline_ {
111<h2><a href="_gwcgi_?a=gti&amp;p=lang&amp;e=_compressedoptions_">_gtitargetlanguagename_</a> -- _gtitranslationfiledesc_</h2>
112<p>
113_textgtiofflinetranslation_
114}
115
116# Content of the GTI "core" page (with text areas for entering and updating translations)
117_gticore_ {
118<h2><a href="_gwcgi_?a=gti&amp;p=lang&amp;e=_compressedoptions_">_gtitargetlanguagename_</a> -- _gtitranslationfiledesc_</h2>
119<p>
120<center>
121 _gtitranslationfilestatus_(_gtinumchunkstranslated_, _gtinumchunksrequiringtranslation_, _gtinumchunksrequiringupdating_, _gtitargetfilepath_)
122</center>
123<p>
124_gticoreformcontent_
125<p>
126<center>
127 <input type="hidden" name="p" value="submit"/><input type="submit" value="_textgtisubmit_"/>
128</center>
129}
130
131# Content of the GTI "done" page, thanking the translator for completing the file
132_gtidone_ {
133<h2><a href="_gwcgi_?a=gti&amp;p=lang&amp;e=_compressedoptions_">_gtitargetlanguagename_</a> -- _gtitranslationfiledesc_</h2>
134<p>
135<center>
136 _gtitranslationfilestatus_(_gtinumchunkstranslated_, _gtinumchunksrequiringtranslation_, _gtinumchunksrequiringupdating_, _gtitargetfilepath_)
137</center>
138<p>
139<hr>
140<p>
141_textgtitranslationfilecomplete_
142}
143
144_gtifindformheader_ {
145<hr><p>_textgtinumchunksmatchingquery_: _gtinumchunksmatchingquery_
146}
147
148_gtifindformfooter_ {
149<p>
150<center>
151 <input type="submit" name="sp" value="_textgtisubmit_"/>
152</center>
153}
154
155_gtitextareawidth_ {85}
156_gtitextareaheight_ {6}
157
158# --------------------------------------------------------------------------------
159# Displays the status of a translation file
160#
161# Used on the GTI "lang" and "core" pages
162#
163# Parameters: 1 -- Number of chunks translated
164# 2 -- Number of chunks requiring translation
165# 3 -- Number of chunks requiring updating
166# 4 -- Relative URL of target file
167# --------------------------------------------------------------------------------
168_gtitranslationfilestatus_ {
169<table border="0">
170 <tr><td align="right">_1_</td><td>_textgtinumchunkstranslated_ (_textgtinumchunksrequiringupdating_(_3_))</td></tr>
171 <tr><td align="right">_2_</td><td>_textgtinumchunksrequiringtranslation_</td></tr>
172 _If_(_4_,<tr><td align="right">&nbsp;</td><td>
173 <a href="_gwcgi_?a=gti&amp;p=find&amp;e=_compressedoptions_">_textgticorrectexistingtranslations_</a><br>
174 <a href="_httpprefix_/_4_">_textgtidownloadtargetfile_</a><br>
175 <a href="_gwcgi_?a=gti&amp;p=offline&amp;e=_compressedoptions_">_textgtitranslatefileoffline_</a><br>
176 _gtiviewtranslationfileinaction_
177 </td></tr>)
178</table>
179}
180
181# --------------------------------------------------------------------------------
182# Displays the status of a translation file
183#
184# Used on the GTI "view status" page
185#
186# Parameters: 1 -- Number of chunks translated
187# 2 -- Number of chunks requiring translation
188# 3 -- Number of chunks requiring updating
189# --------------------------------------------------------------------------------
190_gtitranslationfilestatus2_ {
191_If_("_1_" eq "0", , <font color="green">_1_</font>+<font color="orange">_3_</font>+<font color="red">_2_</font>)
192}
193
194# --------------------------------------------------------------------------------
195# Displays text area for correcting a chunk
196#
197# Used on the GTI "find" page
198#
199# Parameters: 1 -- Chunk key
200# 2 -- Target file chunk text
201# --------------------------------------------------------------------------------
202_gtichunkmatchingquery_ {
203<p>
204<center>
205 <table dir="_gtitextdirection_">
206 <tr><td><strong>_1_</strong></td></tr>
207 <tr><td><textarea name="_cgiargtlc_::_1_" rows="_gtitextareaheight_" cols="_gtitextareawidth_">_2_</textarea></td></tr>
208 </table>
209</center>
210}
211
212# --------------------------------------------------------------------------------
213# Displays text areas for translating a chunk
214#
215# Used on the GTI "core" page
216#
217# Parameters: 1 -- Chunk key
218# 2 -- Source file chunk text
219# 3 -- Source file chunk date
220# --------------------------------------------------------------------------------
221_gtichunkrequiringtranslation_ {
222<hr>
223_textgtitranslatingchunk_(_1_)
224<p>
225<center>
226 <table dir="_gtitextdirection_">
227 <tr><td><strong>English</strong></td><td align="right"><font size="-1"><i>_textgtilastupdated_ _3_</i></font></td></tr>
228 <tr><td colspan="2"><textarea name="en::_1_" rows="_gtitextareaheight_" cols="_gtitextareawidth_" readonly="1">_2_</textarea></td></tr>
229 </table>
230 <table dir="_gtitextdirection_">
231 <tr><td><strong>_gtitargetlanguagename_</strong></td><td align="right">&nbsp;</td></tr>
232 <tr><td colspan="2"><textarea name="_cgiargtlc_::_1_" rows="_gtitextareaheight_" cols="_gtitextareawidth_"></textarea></td></tr>
233 </table>
234</center>
235}
236
237# --------------------------------------------------------------------------------
238# Displays text areas for updating a chunk
239#
240# Used on the GTI "core" page
241#
242# Parameters: 1 -- Chunk key
243# 2 -- Source file chunk text
244# 3 -- Source file chunk date
245# 4 -- Target file chunk text
246# 5 -- Target file chunk date
247# --------------------------------------------------------------------------------
248_gtichunkrequiringupdating_ {
249<hr>
250_textgtiupdatingchunk_(_1_)
251<p>
252<center>
253 <table dir="_gtitextdirection_">
254 <tr><td><strong>English</strong></td><td align="right"><font size="-1"><i>_textgtilastupdated_ _3_</i></font></td></tr>
255 <tr><td colspan="2"><textarea name="en::_1_" rows="_gtitextareaheight_" cols="_gtitextareawidth_" readonly="1">_2_</textarea></td></tr>
256 </table>
257 <p>
258 <table dir="_gtitextdirection_">
259 <tr><td><strong>_gtitargetlanguagename_</strong></td><td align="right"><font size="-1"><i>_textgtilastupdated_ _5_</i></font></td></tr>
260 <tr><td colspan="2"><textarea name="_cgiargtlc_::_1_" rows="_gtitextareaheight_" cols="_gtitextareawidth_">_4_</textarea></td></tr>
261 </table>
262</center>
263}
264
265# Links to see the translation files in action
266_gtiviewcoredminaction_ {<a href="_gwcgi_?a=p&amp;p=about&amp;c=demo&amp;l=_cgiargtlc_&amp;e=_compressedoptions_">_textgtiviewtargetfileinaction_</a>}
267_gtiviewauxdminaction_ {<a href="_gwcgi_?a=p&amp;p=about&amp;c=demo&amp;l=_cgiargtlc_&amp;e=_compressedoptions_">_textgtiviewtargetfileinaction_</a>}
268
269_gtiviewperlmodulesinaction_ {}
270_gtiviewglidictinaction_ {}
271_gtiviewgreenorginaction_ {}
Note: See TracBrowser for help on using the repository browser.