1 | # this file must be UTF-8 encoded
|
---|
2 |
|
---|
3 | package gti
|
---|
4 |
|
---|
5 | _gtiadministratoremail_ {[email protected]}
|
---|
6 |
|
---|
7 | #######################################################################
|
---|
8 | # page head
|
---|
9 | #######################################################################
|
---|
10 | _cssheader_ {
|
---|
11 | _style:cssheader_
|
---|
12 |
|
---|
13 | <style type="text/css">
|
---|
14 | div.todo\{float: left; width: 23px; white-space: pre; text-align: right; color: red;\}
|
---|
15 | div.update\{float: left; width: 23px; white-space: pre; text-align: right; color: orange;\}
|
---|
16 | div.done\{float: left; width: 23px; white-space: pre; text-align: right; color: green;\}
|
---|
17 | div.plus\{float: left; width: 11px; white-space: pre; text-align: center; padding-left: 2px; padding-right: 2px;\}
|
---|
18 | div.nowrap\{table-layout: fixed; width: 100px; padding-left:3px; padding-right:3px;\}
|
---|
19 | table.status\{border-collapse: collapse;border-style: none; font-size: 12pt;\}
|
---|
20 | td.first\{border:solid; border-width:1px; border-color:grey; border-collapse: collapse; vertical-align: middle;\}
|
---|
21 | td.status\{table-layout: fixed; border:solid; border-width:1px; border-color:grey; border-collapse: collapse; vertical-align: middle; text-align: center;\}
|
---|
22 | th.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&p=home&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"> </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"> </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&p=lang&e=_compressedoptions_">_gtitargetlanguagename_</a> -- <a href="_gwcgi_?a=gti&p=core&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&p=lang&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&p=lang&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&p=lang&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"> </td><td>
|
---|
173 | <a href="_gwcgi_?a=gti&p=find&e=_compressedoptions_">_textgticorrectexistingtranslations_</a><br>
|
---|
174 | <a href="_httpprefix_/_4_">_textgtidownloadtargetfile_</a><br>
|
---|
175 | <a href="_gwcgi_?a=gti&p=offline&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"> </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&p=about&c=demo&l=_cgiargtlc_&e=_compressedoptions_">_textgtiviewtargetfileinaction_</a>}
|
---|
267 | _gtiviewauxdminaction_ {<a href="_gwcgi_?a=p&p=about&c=demo&l=_cgiargtlc_&e=_compressedoptions_">_textgtiviewtargetfileinaction_</a>}
|
---|
268 |
|
---|
269 | _gtiviewperlmodulesinaction_ {}
|
---|
270 | _gtiviewglidictinaction_ {}
|
---|
271 | _gtiviewgreenorginaction_ {}
|
---|