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

Last change on this file since 13038 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
Line 
1# this file must be UTF-8 encoded
2
3package gti
4
5#######################################################################
6# page content
7#######################################################################
8
9_pagewidth_ {700}
10
11_pagetitle_ {_textgti_}
12
13_imagecollection_ {<a href="_gwcgi_?a=gti&amp;p=home&amp;e=_compressedoptions_"><img alt="_textgti_" src="_httpimg_/gti.gif" /></a>}
14
15# The preferences button must go to the "homepref" page, since we are not in a collection
16
17_preflink_ {_navtaborig_(_home:httppagehomepref_,_linktextPREFERENCES_,_textdescrpref_)}
18
19_content_ {
20<div class="divbar">&nbsp;</div>
21
22<form method="post" action="_gwcgi_">
23 <input type="hidden" name="a" value="gti"/>
24 <input type="hidden" name="e" value="_compressedoptions_">
25 _gtiformcontent_
26</form>
27
28<div class="divbar">&nbsp;</div>
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_ {
40<p>_textgtihome_</p>
41
42<table border="0" width="100%">
43 <tr><td>_textgtiselecttlc_:</td><td align="right">_gtitlcselection_</td></tr>
44</table>
45
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>
54
55<p>_textgtiselecttfk_:</p>
56
57_gtitfkselection_
58
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_ {
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>
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_ {
79<h2><a href="_gwcgi_?a=gti&amp;p=lang&amp;e=_compressedoptions_">_gtitargetlanguagename_</a> -- _gtitranslationfiledesc_</h2>
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
92# Content of the GTI "done" page, thanking the translator for completing the file
93_gtidone_ {
94<h2><a href="_gwcgi_?a=gti&amp;p=lang&amp;e=_compressedoptions_">_gtitargetlanguagename_</a> -- _gtitranslationfiledesc_</h2>
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
116_gtitextareawidth_ {85}
117_gtitextareaheight_ {6}
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>
133 _If_(_4_,<tr><td align="right">&nbsp;</td><td>
134 <a href="_gwcgi_?a=gti&amp;p=find&amp;e=_compressedoptions_">_textgticorrectexistingtranslations_</a><br>
135 <a href="_httpprefix_/_4_">_textgtidownloadtargetfile_</a><br>
136 _gtiviewtranslationfileinaction_
137 </td></tr>)
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>
152 <table dir="_gtitextdirection_">
153 <tr><td><strong>_1_</strong></td></tr>
154 <tr><td><textarea name="_cgiargtlc_::_1_" rows="_gtitextareaheight_" cols="_gtitextareawidth_">_2_</textarea></td></tr>
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>
173 <table dir="_gtitextdirection_">
174 <tr><td><strong>English</strong></td><td align="right"><font size="-1"><i>_textgtilastupdated_ _3_</i></font></td></tr>
175 <tr><td colspan="2"><textarea name="en::_1_" rows="_gtitextareaheight_" cols="_gtitextareawidth_" readonly="1">_2_</textarea></td></tr>
176 </table>
177 <table dir="_gtitextdirection_">
178 <tr><td><strong>_gtitargetlanguagename_</strong></td><td align="right">&nbsp;</td></tr>
179 <tr><td colspan="2"><textarea name="_cgiargtlc_::_1_" rows="_gtitextareaheight_" cols="_gtitextareawidth_"></textarea></td></tr>
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>
200 <table dir="_gtitextdirection_">
201 <tr><td><strong>English</strong></td><td align="right"><font size="-1"><i>_textgtilastupdated_ _3_</i></font></td></tr>
202 <tr><td colspan="2"><textarea name="en::_1_" rows="_gtitextareaheight_" cols="_gtitextareawidth_" readonly="1">_2_</textarea></td></tr>
203 </table>
204 <p>
205 <table dir="_gtitextdirection_">
206 <tr><td><strong>_gtitargetlanguagename_</strong></td><td align="right"><font size="-1"><i>_textgtilastupdated_ _5_</i></font></td></tr>
207 <tr><td colspan="2"><textarea name="_cgiargtlc_::_1_" rows="_gtitextareaheight_" cols="_gtitextareawidth_">_4_</textarea></td></tr>
208 </table>
209</center>
210}
211
212# Links to see the translation files in action
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>}
215
216_gtiviewperlmodulesinaction_ {}
217_gtiviewglidictinaction_ {}
218_gtiviewgreenorginaction_ {}
Note: See TracBrowser for help on using the repository browser.