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