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

Last change on this file since 11156 was 10872, checked in by jrm21, 18 years ago

extensive modifications of generated HTML to support HTML4 and CSS.
Style sheets are the images/ directory. This should make it much easier
to make custom themes for collections, merely by modifying the style
sheet.

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