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

Last change on this file since 13370 was 12554, checked in by mdewsnip, 18 years ago

More HTML 4 compliance fixes.

  • Property svn:keywords set to Author Date Id Revision
File size: 7.3 KB
RevLine 
[10031]1# this file must be UTF-8 encoded
[10048]2
[10031]3package gti
4
5#######################################################################
6# page content
7#######################################################################
8
[10720]9_pagewidth_ {700}
10
[10053]11_pagetitle_ {_textgti_}
12
[12553]13_imagecollection_ {<a href="_gwcgi_?a=gti&amp;p=home&amp;e=_compressedoptions_"><img alt="_textgti_" src="_httpimg_/gti.gif" /></a>}
[10084]14
[10053]15# The preferences button must go to the "homepref" page, since we are not in a collection
16
[12180]17_preflink_ {_navtaborig_(_home:httppagehomepref_,_linktextPREFERENCES_,_textdescrpref_)}
[11373]18
[10031]19_content_ {
[12479]20<div class="divbar">&nbsp;</div>
[12553]21
[10052]22<form method="post" action="_gwcgi_">
[10031]23 <input type="hidden" name="a" value="gti"/>
24 <input type="hidden" name="e" value="_compressedoptions_">
25 _gtiformcontent_
26</form>
[12553]27
[12479]28<div class="divbar">&nbsp;</div>
[10031]29}
30
31# Content of the GTI "error" page
32_gtierror_ {
33<strong>_textgtierror_:</strong>
34<p>
35<tt>_gtierrormessage_</tt>
36}
37
38# Content of the GTI "home" page
39_gtihome_ {
[12553]40<p>_textgtihome_</p>
41
[10031]42<table border="0" width="100%">
[12553]43 <tr><td>_textgtiselecttlc_:</td><td align="right">_gtitlcselection_</td></tr>
[10031]44</table>
[12553]45
[10031]46<center>
47 <input type="hidden" name="p" value="lang"/><input type="submit" value="_textgtienter_"/>
48</center>
49}
50
51# Content of the GTI "language status" page
52_gtilang_ {
53<h2>_gtitargetlanguagename_</h2>
[12554]54
55<p>_textgtiselecttfk_:</p>
56
[10031]57_gtitfkselection_
[12554]58
[10031]59<center>
60 <input type="hidden" name="p" value="core"/><input type="submit" value="_textgtienter_"/>
61</center>
62}
63
64# Content of the GTI "find text fragments" page
65_gtifind_ {
[12553]66<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>
[10031]67<p>
68_textgtienterquery_:
69<p>
70<nobr>
71<input type="text" name="q" value="_cgiargq_" size="_gtitextareawidth_"/>
72<input type="hidden" name="p" value="find"/><input type="submit" value="_textgtifind_"/>
73</nobr>
74_gtifindformcontent_
75}
76
77# Content of the GTI "core" page (with text areas for entering and updating translations)
78_gticore_ {
[12553]79<h2><a href="_gwcgi_?a=gti&amp;p=lang&amp;e=_compressedoptions_">_gtitargetlanguagename_</a> -- _gtitranslationfiledesc_</h2>
[10031]80<p>
81<center>
82 _gtitranslationfilestatus_(_gtinumchunkstranslated_, _gtinumchunksrequiringtranslation_, _gtinumchunksrequiringupdating_, _gtitargetfilepath_)
83</center>
84<p>
85_gticoreformcontent_
86<p>
87<center>
88 <input type="hidden" name="p" value="submit"/><input type="submit" value="_textgtisubmit_"/>
89</center>
90}
91
[10719]92# Content of the GTI "done" page, thanking the translator for completing the file
[10031]93_gtidone_ {
[12553]94<h2><a href="_gwcgi_?a=gti&amp;p=lang&amp;e=_compressedoptions_">_gtitargetlanguagename_</a> -- _gtitranslationfiledesc_</h2>
[10031]95<p>
96<center>
97 _gtitranslationfilestatus_(_gtinumchunkstranslated_, _gtinumchunksrequiringtranslation_, _gtinumchunksrequiringupdating_, _gtitargetfilepath_)
98</center>
99<p>
100<hr>
101<p>
102_textgtitranslationfilecomplete_
103}
104
105_gtifindformheader_ {
106<hr><p>_textgtinumchunksmatchingquery_: _gtinumchunksmatchingquery_
107}
108
109_gtifindformfooter_ {
110<p>
111<center>
112 <input type="submit" name="sp" value="_textgtisubmit_"/>
113</center>
114}
115
[10720]116_gtitextareawidth_ {85}
117_gtitextareaheight_ {6}
[10031]118
119# --------------------------------------------------------------------------------
120# Displays the status of a translation file
121#
122# Used on the GTI "lang" and "core" pages
123#
124# Parameters: 1 -- Number of chunks translated
125# 2 -- Number of chunks requiring translation
126# 3 -- Number of chunks requiring updating
127# 4 -- Relative URL of target file
128# --------------------------------------------------------------------------------
129_gtitranslationfilestatus_ {
130<table border="0">
131 <tr><td align="right">_1_</td><td>_textgtinumchunkstranslated_ (_textgtinumchunksrequiringupdating_(_3_))</td></tr>
132 <tr><td align="right">_2_</td><td>_textgtinumchunksrequiringtranslation_</td></tr>
[10061]133 _If_(_4_,<tr><td align="right">&nbsp;</td><td>
[12553]134 <a href="_gwcgi_?a=gti&amp;p=find&amp;e=_compressedoptions_">_textgticorrectexistingtranslations_</a><br>
[10061]135 <a href="_httpprefix_/_4_">_textgtidownloadtargetfile_</a><br>
136 _gtiviewtranslationfileinaction_
137 </td></tr>)
[10031]138</table>
139}
140
141# --------------------------------------------------------------------------------
142# Displays text area for correcting a chunk
143#
144# Used on the GTI "find" page
145#
146# Parameters: 1 -- Chunk key
147# 2 -- Target file chunk text
148# --------------------------------------------------------------------------------
149_gtichunkmatchingquery_ {
150<p>
151<center>
[10118]152 <table dir="_gtitextdirection_">
[10031]153 <tr><td><strong>_1_</strong></td></tr>
[10720]154 <tr><td><textarea name="_cgiargtlc_::_1_" rows="_gtitextareaheight_" cols="_gtitextareawidth_">_2_</textarea></td></tr>
[10031]155 </table>
156</center>
157}
158
159# --------------------------------------------------------------------------------
160# Displays text areas for translating a chunk
161#
162# Used on the GTI "core" page
163#
164# Parameters: 1 -- Chunk key
165# 2 -- Source file chunk text
166# 3 -- Source file chunk date
167# --------------------------------------------------------------------------------
168_gtichunkrequiringtranslation_ {
169<hr>
170_textgtitranslatingchunk_(_1_)
171<p>
172<center>
[10118]173 <table dir="_gtitextdirection_">
[10031]174 <tr><td><strong>English</strong></td><td align="right"><font size="-1"><i>_textgtilastupdated_ _3_</i></font></td></tr>
[10720]175 <tr><td colspan="2"><textarea name="en::_1_" rows="_gtitextareaheight_" cols="_gtitextareawidth_" readonly="1">_2_</textarea></td></tr>
[10031]176 </table>
[10118]177 <table dir="_gtitextdirection_">
[10031]178 <tr><td><strong>_gtitargetlanguagename_</strong></td><td align="right">&nbsp;</td></tr>
[10720]179 <tr><td colspan="2"><textarea name="_cgiargtlc_::_1_" rows="_gtitextareaheight_" cols="_gtitextareawidth_"></textarea></td></tr>
[10031]180 </table>
181</center>
182}
183
184# --------------------------------------------------------------------------------
185# Displays text areas for updating a chunk
186#
187# Used on the GTI "core" page
188#
189# Parameters: 1 -- Chunk key
190# 2 -- Source file chunk text
191# 3 -- Source file chunk date
192# 4 -- Target file chunk text
193# 5 -- Target file chunk date
194# --------------------------------------------------------------------------------
195_gtichunkrequiringupdating_ {
196<hr>
197_textgtiupdatingchunk_(_1_)
198<p>
199<center>
[10118]200 <table dir="_gtitextdirection_">
[10031]201 <tr><td><strong>English</strong></td><td align="right"><font size="-1"><i>_textgtilastupdated_ _3_</i></font></td></tr>
[10720]202 <tr><td colspan="2"><textarea name="en::_1_" rows="_gtitextareaheight_" cols="_gtitextareawidth_" readonly="1">_2_</textarea></td></tr>
[10031]203 </table>
204 <p>
[10118]205 <table dir="_gtitextdirection_">
[10031]206 <tr><td><strong>_gtitargetlanguagename_</strong></td><td align="right"><font size="-1"><i>_textgtilastupdated_ _5_</i></font></td></tr>
[10720]207 <tr><td colspan="2"><textarea name="_cgiargtlc_::_1_" rows="_gtitextareaheight_" cols="_gtitextareawidth_">_4_</textarea></td></tr>
[10031]208 </table>
209</center>
210}
[10061]211
212# Links to see the translation files in action
[12553]213_gtiviewcoredminaction_ {<a href="_gwcgi_?a=p&amp;p=about&amp;c=demo&amp;l=_cgiargtlc_&amp;e=_compressedoptions_">_textgtiviewtargetfileinaction_</a>}
214_gtiviewauxdminaction_ {<a href="_gwcgi_?a=p&amp;p=about&amp;c=demo&amp;l=_cgiargtlc_&amp;e=_compressedoptions_">_textgtiviewtargetfileinaction_</a>}
[10061]215
216_gtiviewperlmodulesinaction_ {}
217_gtiviewglidictinaction_ {}
[10719]218_gtiviewgreenorginaction_ {}
Note: See TracBrowser for help on using the repository browser.