Annotation of www/translation-explained.html, Revision 1.26
1.1 saad 1: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2: "http://www.w3.org/TR/html4/loose.dtd">
3: <html>
4: <head>
5: <title>Contributing to the OpenBSD Translation Effort</title>
6: <link rev="made" href="mailto:www@openbsd.org">
7: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
8: <meta name="resource-type" content="document">
9: <meta name="description" content="Contributing to the OpenBSD Translation effort">
10: <meta name="keywords" content="openbsd,translation,documentation">
11: <meta name="distribution" content="global">
1.19 saad 12: <meta name="copyright" content="This document copyright 2000-2008 by OpenBSD.">
1.1 saad 13: </head>
14:
15: <body bgcolor="#FFFFFF" text="#000000" link="#23238E">
16: <a href="index.html"><img alt="[OpenBSD]" height="30" width="141" src="images/smalltitle.gif" border="0"></a>
17: <!-- Passes validator.w3.org, please keep it this way;
18: please, use a max of 72 chars per line -->
19:
1.2 saad 20: <!-- NOTE TO TRANSLATORS
21: As obvious as it may seem, this page must NOT be translated
22: -->
23:
1.5 saad 24: <h2><font color="#e00000">Contributing to the OpenBSD Translation
25: Effort</font></h2>
1.1 saad 26:
27: <hr>
28:
29: <center>
30: <cite>?Nec verbum verbo curabis reddere fidus interpres?</cite>
31: </center>
32:
33: <hr>
34:
35: <h3>Table Of Contents</h3>
36: <ul>
37: <li><a href="#Intro">Introduction</a>
38: <li><a href="#Purpose">Purpose</a>
39: <li><a href="#Maintenance">Maintenance</a>
40: <li><a href="#Joining">Joining the Translation Team</a>
41: <li><a href="#CVS">Using CVS</a>
42: <li><a href="#Guidelines">Translation Guidelines</a>
43: </ul>
44:
45: <hr>
46:
47: <h3><font color="#0000e0"><a name="Intro">Introduction</a></font></h3>
48:
49: <p>
1.6 saad 50: This document should contain all the information you need to
1.1 saad 51: contribute to the OpenBSD translation effort as described in <a
1.3 saad 52: href="translation.html">Translation of the OpenBSD documentation</a>.
53: Please read this document carefully and if you still have questions,
54: don't hesitate to contact <a href="translation.html#WHO">the translation
1.1 saad 55: coordinators</a>.
56:
57: <p>
58:
59: <h3><font color="#0000e0"><a name="Purpose">Purpose</a></font></h3>
60:
61: <p>
62: The purpose for translating
63: <a href="http://www.openbsd.org/">OpenBSD</a> web pages and other
64: documents is to help those who don't speak nor understand English use
65: OpenBSD or, if they do, they might feel more comfortable through reading
66: in their own language. So, by translating you are not only helping the
67: <a href="http://www.openbsd.org/">OpenBSD project</a> to expand, but you
68: are also helping people to become hooked to the system.
69:
70: <p>
71: And of course, you'll gain good knowledge through reading and
72: translating at the same time.
73:
74: <p>
75: It's important to note that besides <a
76: href="http://www.openbsd.org/">OpenBSD</a>, the OpenBSD project has
77: several websites for associated projects that you may want to translate:
78: <ul>
79: <li><a href="http://www.openssh.com/">OpenSSH</a>
80: <li><a href="http://www.openntpd.com/">OpenNTPD</a>
81: <li><a href="http://www.openbgpd.com/">OpenBGPD and OpenOSPFD</a>
82: <li><a href="http://www.opencvs.com/">OpenCVS</a>
83: </ul>
84:
85: <h3><font color="#0000e0"><a name="Maintenance">Maintenance</a></font></h3>
86:
87: <p>
88: Just translating a few web pages, or even translating the whole site
1.3 saad 89: including the <a href="faq/">F.A.Q.</a>, is <strong>ABSOLUTELY
90: NOT</strong> enough. Actually, you could be doing more wrong than good.
91: <strong>Maintaining the translation up to date is just as
92: important</strong>. Always remember that offering outdated information
93: will just misguide people.
1.1 saad 94:
95: <p>
96: If you are not going to keep your work updated, the translation itself
97: will be pointless. Join us only if you think you're going to commit
98: yourself to your work.
99:
100: <p>
101: <strong>Think first how much time you will be able to dedicate to the
102: translation. If you only have some small spare time, don't go overboard
1.6 saad 103: by translating several files you won't be able to maintain
1.1 saad 104: later.</strong>
105:
106: <p>
107: Some files are easier to maintain than others, either because they are
108: small, or because they don't get updated too often. For instance, <a
1.3 saad 109: href="plat.html">plat.html</a> is a small file, and it doesn't get
110: modified often. On the opposite side, <a href="plus.html">plus.html</a>
111: is a heavy file to translate; it grows bigger and bigger from one
1.6 saad 112: release to another, and the technical and slang wording used is
1.3 saad 113: very difficult to translate with accuracy.
1.1 saad 114:
115: <p>
1.6 saad 116: Needless to say, some files take precedence over others. Such is the
1.3 saad 117: case of <a href="index.html">index.html</a> ... or did you think
118: otherwise?
1.1 saad 119:
120: <h3><font color="#0000e0"><a name="Joining">Joining the Translation
121: Team</a></font></h3>
122:
123: <p>
124: Before joining the translation team, you must make sure that you have
1.6 saad 125: the proper environment for translation. The required environment consists
126: of the following elements:
1.1 saad 127: <ul>
128: <li>an OpenBSD box running a <strong>stable</strong> and
129: <strong>maintained</strong> release
130: <li>OpenSSH
131: <li>CVS
132: <li>a text editor such as vi, vim, mg, etc.
133: <li>an HTML link checker such as linkchecker (available in the ports
134: collection)
135: <li>an HTML validation program such as validate (available in the ports
136: collection)
137: </ul>
138:
139: <p>
140: Once you have the proper environment, you need commit access to the
141: Steelix CVS repository if you want to commit your work directly.
142: Otherwise, you can send them to another translator or one of the
143: translation coordinators to commit them for you (with due credit of
144: course). See <a href="translation.html#WHO">Who is doing this?</a> for
145: more information about the translators and translation coordinators.
146:
147: <p>
1.23 ajacouto 148: The Steelix CVS repository, located at <em>steelix.bsdfrog.org</em> is the
1.1 saad 149: CVS repository used for translation. The translation work is not
150: committed directly to the OpenBSD CVS repository. Rather, the
151: translation coordinators synchronize the two repositories on a timely
152: basis after checking the new commits.
153:
154: <p>
155: To commit on the Steelix CVS repository you will need an account on
1.23 ajacouto 156: <em>steelix.bsdfrog.org</em>. To setup your account, contact one of the
1.1 saad 157: <a href="translation.html#WHO">translation coordinators</a>. If he
158: agrees on giving you an account, you will need to give him the following
159: information by email:
160: <ul>
161: <li>Your full name (first name, last name). No surname/scene name is
162: accepted.
163: <li>A permanent email address on which you can be contacted regarding
164: translation work.
1.6 saad 165: <li>A list of three Unix account names sorted by order of preference.
1.1 saad 166: <li>Your SSH2 DSA public key as an attached file and its SHA-1
167: associated hash. A minimum length of 1024 bits is required for the
168: key.
169: </ul>
170:
171: <p>
172: <strong><font color="#ff0000">Warning:</font></strong> you are fully
173: responsible for the security of your working environment and your SSH2
174: DSA key.
175:
176: <p>
177: Our experience shows that some people request an account, commit some
178: work and then vanish without giving any good reason. Creating your
179: account and maintaining the account database is extra work for the
180: translation coordinators. So they might ask you to send the files to
1.6 saad 181: another translator who will validate your work and your commitment to
1.1 saad 182: the translation effort. This way, we make sure you are here to stay.
183:
184: <p>
185: Once a translation coordinator creates your account, he will notify you
1.25 ajacouto 186: by email. You will be automatically subscribed to the
187: <i>wwwcvs@arcane-networks.net</i> translation mailing list. This is a
188: mailing list on which all changes made to the Steelix CVS repository
189: along with any translation related discussions are posted.
1.1 saad 190:
191: <h3><font color="#0000e0"><a name="CVS">Using CVS</a></font></h3>
192:
193: <p>
194: Now we'll walk you through the basic CVS operations you need to perform
195: as a translator. If you want to have a more in-depth look into CVS
196: usage, please see the
197: <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=cvs&sektion=1">cvs</a>
198: manual page and read
199: <a href="http://cvsbook.red-bean.com/">Open Source Development with CVS,
200: 3rd Edition</a>, a free CVS online book by Karl Fogel and Moshe Bar.
201:
202: <p>
203: You must have a fresh checkout (<em>CVS download</em>, also called a
204: <i>working copy</i> in CVS terminology) of two CVS modules on your disk.
205: These are:
206: <ul>
207: <li>The <i>www translation</i> CVS module. This module must be obtained
1.23 ajacouto 208: from <i>steelix.bsdfrog.org</i>, the OpenBSD translation CVS server.
1.1 saad 209: This is the module on which all translation work happens.
210: <li>The <i>www</i> CVS module. This module must be obtained from one of
211: the many <a href="anoncvs.html"> anonymous OpenBSD CVS mirrors</a>
1.6 saad 212: out there. This will be your source for the original English files
1.1 saad 213: that you need to translate.
214: </ul>
215:
216: <p>
217: <strong><font color="#ff0000">Note:</font></strong> while the <i>www
1.6 saad 218: translation</i> CVS module holds also the English files, they must not
219: be used since they are rarely kept in sync with the English files found
1.1 saad 220: on the anonymous OpenBSD CVS mirrors.
221:
222: <p>
223: The checkouts and later operations are performed using SSH for
224: transport, as you might have guessed after reading the <a
225: href="#Joining">Joining the Translation Team</a> section.
226:
227: <p>
228: Let's see how the checkouts are performed.
229:
230: <h4>Initial checkout of the 'www translation' CVS module</h4>
231: We will assume that you are going to put all the translation work files
232: and directories under <i>/home/username/devel/openbsd/</i>. Of course,
233: this is absolutely not a requirement. This scheme is solely used for the
234: examples below. Change as needed.
235:
236: <p>
237: Issue the following commands to checkout the <i>www translation</i> CVS
1.23 ajacouto 238: module from <i>steelix.bsdfrog.org</i>:
1.1 saad 239:
240: <pre>
241: $ cd /home/username/devel/openbsd/
1.23 ajacouto 242: $ cvs -d "username@steelix.bsdfrog.org:/cvs" checkout -d "steelix-www" www
1.1 saad 243: </pre>
244:
245: <p>
1.23 ajacouto 246: The latter command will connect to <i>steelix.bsdfrog.org</i> using SSH as
1.1 saad 247: user <i>username</i> to retrieve a working copy of the <i>www
248: translation</i> CVS module and store it under <i>steelix-www</i>.
249:
250: <p>
251: The SSH authentication is set up to use your SSH2 key, which requires
252: you to enter your passphrase to proceed. SSH is used for checkout and
253: all other CVS operations. By default, this will ask you everytime for
254: your passphrase. To save some typing, you might want to load your SSH2
255: private key in
256: <i><a
257: href="http://www.openbsd.org/cgi-bin/man.cgi?query=ssh-agent&apropos=0&sektion=0&manpath=OpenBSD+Current&arch=i386&format=html">ssh-agent</a></i> using <i>keychain</i> (available in the ports collection) or some
258: home-cooked recipe.
259:
260: <p>
261: After successfully entering your passphrase, CVS will proceed with
262: checking out your working copy. Depending on your connection speed, this
263: operation may take some time to complete.
264:
265: <p>
266: Once the checkout terminates, you will have a <strong>working copy of
267: the www translation CVS module</strong>.
268:
269: <h4>Initial checkout of the 'www' CVS module</h4>
270: To obtain a working copy of the <i>www</i> CVS module, you need to find
1.7 saad 271: an OpenBSD anonymous CVS mirror near you that is updated frequently.
1.1 saad 272: Suppose you are located in Germany. According to the <a
273: href="anoncvs.html">OpenBSD AnonCVS</a> page,
1.14 grunk 274: <i>anoncvs.de.openbsd.org</i> looks like a good candidate. It is
1.1 saad 275: maintained by one of the OpenBSD developers (Alexander von Gernler) and
276: updated every 2 hours. Moreover, it offers CVS through SSH. Let's use it
277: to obtain the working copy of the <i>www</i> CVS module:
278:
279: <pre>
280: $ cd /home/username/devel/openbsd
1.14 grunk 281: $ cvs -d "anoncvs@anoncvs.de.openbsd.org:/cvs" checkout -d "openbsd-www" www
1.1 saad 282: </pre>
283:
284: <p>
285: The latter command will connect to
1.14 grunk 286: <i>anoncvs@anoncvs.de.openbsd.org</i> using SSH as user <i>anoncvs</i>
1.1 saad 287: to retrieve a working copy of the <i>www </i> CVS module and store it
288: under <i>openbsd-www</i>. SSH won't ask for authentication since we are
289: using an anonymous CVS account. Depending on your connection speed, this
290: operation may take some time to complete.
291:
292: <p>
293: Once the checkout terminates, you will have a <strong>working copy of
294: the www CVS module</strong>.
295:
296: <h4>Organization of the 'www' CVS module</h4>
297: <a name="sections"></a>
298: The <i>www</i> CVS module that the OpenBSD and associated projects'
1.12 steven 299: websites are made of is constituted of ten sections.
300: The table below lists all these sections and what they represent.
1.1 saad 301:
302: <p>
1.12 steven 303: <table border="1">
304: <tr valign="top"><td>
1.1 saad 305: <strong>[base]</strong>
1.12 steven 306: </td><td>
1.1 saad 307: <a href="http://www.openbsd.org/">http://www.openbsd.org/</a> and
308: everything under it <strong>except</strong> for the FAQ available at
1.3 saad 309: <a href="faq/">http://www.openbsd.org/faq/</a>.
1.12 steven 310: </td></tr><tr valign="top"><td>
1.1 saad 311: <strong>[faq]</strong>
1.12 steven 312: </td><td>
1.3 saad 313: <a href="faq/">http://www.openbsd.org/faq/</a>
1.1 saad 314: and everything under it <strong>except</strong> for the PF User Guide
315: available at
1.4 saad 316: <a href="faq/pf/">http://www.openbsd.org/faq/pf/</a>.
1.12 steven 317: </td></tr><tr valign="top"><td>
1.1 saad 318: <strong>[openbgpd]</strong>
1.12 steven 319: </td><td>
1.1 saad 320: <a href="http://www.openbgpd.org/">http://www.openbgpd.org/</a>
321: and the associated subdirectories.
1.12 steven 322: </td></tr><tr valign="top"><td>
1.1 saad 323: <strong>[opencvs]</strong>
1.12 steven 324: </td><td>
1.1 saad 325: <a href="http://www.opencvs.org/">http://www.opencvs.org/</a>
326: and the associated subdirectories.
1.12 steven 327: </td></tr><tr valign="top"><td>
1.1 saad 328: <strong>[openntpd]</strong>
1.12 steven 329: </td><td>
1.1 saad 330: <a href="http://www.openntpd.org/">http://www.openntpd.org/</a>
331: and the associated subdirectories.
1.12 steven 332: </td></tr><tr valign="top"><td>
1.1 saad 333: <strong>[openssh]</strong>
1.12 steven 334: </td><td>
1.1 saad 335: <a href="http://www.openssh.com/">http://www.openssh.com/</a>
336: and the associated subdirectories <strong>except</strong> the usage
337: subdirectory.
1.12 steven 338: </td></tr><tr valign="top"><td nowrap="nowrap">
1.1 saad 339: <strong>[openssh-usage]</strong>
1.12 steven 340: </td><td>
1.1 saad 341: <a href="http://www.openssh.com/usage/">http://www.openssh.com/usage/</a>.
1.12 steven 342: </td></tr><tr valign="top"><td>
1.1 saad 343: <strong>[papers]</strong>
1.12 steven 344: </td><td>
1.3 saad 345: <a href="papers/">http://www.openbsd.org/papers/</a> and the associated
346: subdirectories.
1.12 steven 347: </td></tr><tr valign="top"><td>
1.1 saad 348: <strong>[pf]</strong>
1.12 steven 349: </td><td>
1.3 saad 350: <a href="faq/pf/">http://www.openbsd.org/faq/pf/</a> and everything
351: under it.
1.12 steven 352: </td></tr><tr valign="top"><td>
1.1 saad 353: <strong>[porting]</strong>
1.12 steven 354: </td><td>
1.3 saad 355: <a href="porting/">http://www.openbsd.org/porting/</a> and the
356: associated subdirectories.
1.12 steven 357: </td></tr>
358: </table>
1.1 saad 359:
360: <p>
361: Translated pages in a given language for a given section are located
362: under a subdirectory in that section. The subdirectory name is the
363: two-letter
364: <a href="http://lcweb.loc.gov/standards/iso639-2/englangn.html">ISO 639-1 language code</a>
365: of the language. For example, french [faq] pages are located under
1.3 saad 366: <a href="faq/fr/">http://www.openbsd.org/faq/fr/</a>.
1.1 saad 367:
368: <p>
369: The <i>www translation</i> CVS module is organized in an identical
1.7 saad 370: fashion. While the <i>www</i> CVS module is your source for the English
1.1 saad 371: original files that you need to translate or sync against, the <i>www
372: translation</i> CVS module will host all your translation work as we
373: mentioned earlier.
374:
375: <h4>Working on the 'www translation' module</h4>
376: You <strong>must not</strong> touch any file within the first level of
377: any <a href="#sections">section</a> of the <i>www translation</i> CVS
378: module. If, by mistake, you edited and modified one of the files in the
379: first level, don't edit it back to reverse those changes, the timestamps
380: will have changed and you will mess the remote repository next time you
1.6 saad 381: <kbd>'cvs up -PAd'</kbd> followed by <kbd>'cvs commit'</kbd>. Instead,
1.1 saad 382: just <kbd>rm -f</kbd> that file and follow the instructions to <a
383: href="#update">update</a>. An update from the CVS repository will
1.6 saad 384: restore that file in your working copy. Likewise, avoid changing the
1.1 saad 385: files from languages other than yours.
386:
387: <p>
388: You must do your work within your language directory. If it doesn't
389: exist yet, you can read how to <a href="#add">add</a> a new directory
390: or file in the next section.
391:
392: <p>
393: Thus, for a given language such as Spanish, the language directory will
394: be denoted by the two-letter
395: <a href="http://lcweb.loc.gov/standards/iso639-2/englangn.html">ISO
396: 639-1 language code</a>, <i>es/</i> in this case, and files will be
397: organized as follows:
398: <ul>
399: <li><em>steelix-www/es/</em> - www.openbsd.org/es/ files.
400: <li><em>steelix-www/faq/es/</em> - www.openbsd.org/faq/es/ files.
401: <li><em>steelix-www/openssh/es/</em> - www.openssh.com/es/ files.
402: <li>...
403: </ul>
404:
405: <p>
406: This is important to remember as far as relative <a
407: href="#Links">links</a> go.
408:
409: <a name="add"></a>
410: <h4>Adding directories and files</h4>
411: Suppose that there was no Spanish directory as yet under the
412: <strong>[pf]</strong> section. We would create it first on our local
413: repository:
414:
415: <pre>
416: $ cd ~/devel/openbsd/steelix-www/faq/pf
417: $ mkdir es
418: </pre>
419:
420: and then we would have to <strong>add</strong> it to the CVS repository:
421:
422: <pre>
1.5 saad 423: $ cvs add es
1.1 saad 424: </pre>
425:
426: <p>
1.7 saad 427: That was easy. Next we would copy an English original file that we would
1.1 saad 428: like to translate from the <i>www</i> module (e.g.
429: <i>openbsd-www/faq/pf/index.html</i>) into the es/ directory and would
430: add it as well:
431:
432: <pre>
433: $ cd ~/devel/openbsd
434: $ cp -p openbsd-www/faq/pf/index.html steelix-www/faq/pf/es/
435: $ cd steelix-www/faq/pf/es
436: $ cvs add index.html
437: </pre>
438:
439: <p>
440: <strong>Note<sup>(1)</sup></strong>: while <kbd>cvs add</kbd>'ing a
441: directory will change the remote repository straight away, it won't do
442: so if we were adding a file until we run the <a
443: href="#commit">commit</a> command.
444:
445: <p>
1.26 ! ajacouto 446: <strong>Note<sup>(2)</sup></strong>: cvs is by default configured to
! 447: perform special keyword substitution, and this feature is extensively
! 448: used by the <i>www</i> translation project. So please make sure that
! 449: your <kbd>cvs add</kbd> does not specify a different substitution mode,
! 450: e.g. by having an entry like <kbd>add -ko</kbd> in your <i>.cvsrc</i>
! 451: file.
! 452:
! 453: <p>
! 454: <strong>Note<sup>(3)</sup></strong>: see the <kbd>rm</kbd> command in the
1.6 saad 455: CVS manual page to know how to remove a file or directory.
1.1 saad 456:
457: <a name="update"></a>
458: <h4>Updating files</h4>
1.6 saad 459: If, while in the <em>steelix-www/</em> directory, we ran the command and
460: options:
1.1 saad 461:
462: <pre>
463: $ cd ~/devel/openbsd/steelix-www
464: $ cvs up -PAd
465: </pre>
466:
467: the effect would be twofold:
468:
469: <ul>
470: <li>All changes made by others to the <i>www translation</i> module on
471: the CVS repository would be automatically applied to our working
472: copy. The working copy <strong>will</strong> change.
473: <li>All changes made by us to our working copy <em>would be ready to be
474: "uploaded"</em> to the CVS repository. The <i>www translation</i>
475: module on the CVS repository <strong>will not</strong> change until
476: we run the <a href="#commit">commit</a> command.
477: </ul>
478:
479: <p>
480: <strong>Note:</strong> it is suggested to run this command before we
481: start making changes to our working copy, so we can see what changes
482: have been made by others and avoid conflicts.
483:
484: <a name="commit"></a>
485: <h4>Committing changes</h4>
486: This is the mother of all commands:
487:
488: <pre>
489: $ cd faq/pf/es
490: $ cvs commit
491: </pre>
492:
493: <p>
494: This command will load an editor such as <i>vi</i> so you can enter a
495: commit message. This message will allow others to have an idea of the
496: change(s) that you've made. It is automatically posted to the
497: translation mailing list.
498:
499: <p>
500: Needless to say that you only commit when you feel your changes should
1.6 saad 501: definitely go into the <i>www translation</i> of the CVS repository.
1.1 saad 502:
503: <a name="revert"></a>
504: <h4>Reverting a change</h4>
1.9 saad 505: If you have committed a file and you discover that your commit breaks
506: something, you have to revert the commit as soon as possible. Assume the
507: problem lays in a file called <i>somefile</i>. Follow the procedure
508: below to revert it to an unbroken revision:
1.1 saad 509:
510: <pre>
1.9 saad 511: $ cvs log somefile
1.1 saad 512: </pre>
513:
514: <p>
515: At the top of the output, you can see the latest revision of the file
516: (your latest modifications). For example, <i>1.192</i>. You have to
517: checkout the previous revision and commit it to fix the issue.
518:
519: <pre>
1.9 saad 520: $ cvs update -A somefile
521: $ rm somefile
522: $ cvs update -p -r1.191 somefile > somefile
1.1 saad 523: </pre>
524:
525: <p>
1.9 saad 526: <i>1.191</i> is indeed the previous revision. It is now in your working
527: copy. You should commit it to restore the file to a working state:
1.1 saad 528:
529: <pre>
1.9 saad 530: $ cvs commit -m "restoring previous version" somefile
531: </pre>
532:
533: <a name="wrongdir"></a>
534: <h4>Committing in a bad directory</h4>
535: If you have committed a file in a bad directory, you have to fix things
536: by moving it to the right directory as soon as possible. Assume you have
537: committed <i>somefile</i> to <i>baddir</i> while it should really go
538: into <i>gooddir</i>. Here is the procedure to correct your mistake:
539:
540: <pre>
541: $ pwd
542: ...devel/openbsd/steelix-www/.../baddir
543: $ cvs remove somefile
544: $ mv somefile path/to/gooddir
545: $ cd path/to/gooddir
546: $ pwd
547: ...devel/openbsd/steelix-www/.../gooddir
548: $ cvs add somefile
549: $ cvs commit -m "move file to the right location" somefile
1.1 saad 550: </pre>
551:
552: <h3><font color="#0000e0"><a name="Guidelines">Translation
553: Guidelines</a></font></h3>
554:
555: <p>
1.7 saad 556: The following is a set of general translation guidelines that will help you
1.1 saad 557: get your job as a translator done correctly.
558:
559: <h4>Stick to translating the pages!</h4>
560: <strong>Although we really welcome any help to make the webpages better,
561: your job as a translator is _NOT_ to enhance the pages with pictures,
1.18 aanriot 562: tags, email addresses or anything else that hasn't been in the page
1.5 saad 563: before!</strong>
1.1 saad 564:
1.7 saad 565: <p>
1.8 saad 566: If you do have suggestions concerning the content of a page, send them
567: to <a href="mailto:www@openbsd.org">www@openbsd.org</a>. If they are
568: good, they can be included by one of the developers.
1.7 saad 569:
1.1 saad 570: <h4>Translation Tags</h4>
571: If you have freshly translated a page to your language you would like to
572: see it committed. And it should and will be maintained. To make this
573: easier and let everybody see who committed this page and follow changes
574: using CVS we use some special tags at the end of the page.
575:
576: <p>
577: We simply enhance the original $OpenBSD$ tag with two more
578: lines, in which we document from which version our translated file comes
579: from and which version of the translation it is.
580:
581: <p>
582: A typical OpenBSD ID tag looks like this:
583:
584: <pre><small>
585: $OpenBSD: index.html,v1.330 2001/04/24 07:11:44 jufi Exp $
586: <small>
587: </pre>
588:
589: From this, you must change the opening and closing <tt>$</tt>'s and
590: change them to an opening ``<tt>Originally [</tt>'' and closing
591: ``<tt>]</tt>'', and add a <tt>$Translation$</tt> and an
592: <tt>$OpenBSD$</tt> ID tags. Since the <tt>Originally</tt> and
593: <tt>$Translation$</tt> tags are used by translators only, you
594: must comment them so they don't appear when the pages are displayed on a
595: browser:
596:
597: <pre><small>
598: <!--
1.6 saad 599: Originally [OpenBSD: index.html,v 1.330 ]<br>
1.1 saad 600: $Translation$<br>
601: -->
602: $OpenBSD$
603: </small>
604: </pre>
605:
606: Notice that we've also added the <tt><br></tt> tags here, which
607: are needed to have each ID tag on a separate line of its own. And we've
608: also stripped off part of the original OpenBSD ID tag, as that bit is
609: not really needed.
610:
611: <p>
612: As for the <tt>$Translation$</tt> and
613: <tt>$OpenBSD$</tt> tags, the Steelix and OpenBSD CVS servers
614: will take care of each respectively. So, next time you modify that file,
615: all you will have to do is to replace the content within the
616: <tt>Originally [blah... ]</tt> ID tag again.
617:
618: <p>
1.7 saad 619: But you should check from file to file whether everything is correct
620: and compare to other files, your own or even those from other languages.
1.1 saad 621:
622: <p>
623: <strong><font color="#ff0000">Note:</font></strong> the amount and
1.7 saad 624: positions of spaces and words in the tags are absolutely precise and not
625: to be changed!
1.1 saad 626: Otherwise you will find your file not recognized correctly by the
1.17 saad 627: scripts which build the
1.22 tobias 628: <a href="http://steelix.bsdfrog.org/status/makereport.html">status page</a>!
1.1 saad 629:
630: <p>
631: It is really helpful to have a look at the pages of the other
632: translators, and watch how they did it.
633:
1.13 saad 634: <h4>Meta tags</h4>
635: Meta tags must not be translated or modified, save for the
636: <strong>title</strong> tag which must be translated of course.
637:
1.1 saad 638: <a name="Links"></a>
639: <h4>Links</h4>
640: When translating a file from the original English html file to another
641: language, we also need to change the relative links to have them point
642: to the right file they reference.
643:
644: <p>
645: As a first example, let's suppose you are translating the
646: <i>index.html</i> file, and you find a link to the orders.html file like
647: this:<br> <tt><strong><a href="orders.html">orders.html</a></strong></tt>.
648:
649: <p>
650: This means that it will link <em>index.html</em> to
651: <em>orders.html</em> <strong>if they are in the same directory
652: level!</strong>. So, if you dont have an <em>orders.html</em> file
653: translated yet in your language directory, it will point to a non-
654: existent file. Just go one directory back to link it to the file in the
655: English directory for this example case:<br> <tt><strong><a
656: href="../orders.html">orders.html</a></strong></tt>.
657:
658: <p>
659: When you have the <em>orders.html</em> file translated and already in
660: your language directory, you can then strip the
1.7 saad 661: <tt><strong>../</strong></tt> off and let it point to the file in your
662: directory.
1.1 saad 663:
664: <p>
665: For a file in the <em>faq/</em> directory, this is a bit different,
666: since your language directory will be something like <em>faq/de/</em>.
667: So, if you were translating <em>faq1.html</em> and found a link to the
668: <em>faq2.html</em> like this:<br>
669: <tt><strong><a href="faq2.html">faq2.html</a></strong></tt>
670:
671: <p>
672: you would have to go back one level as in the previous example to link
673: to the English file (or none if you already have faq2.html translated in
674: your language directory).<br> BUT, if you had to link from your faq
675: language directory to a file, say, in the first level directory (e.g.
676: <em>orders.html</em>), you would have to go back <strong>2
677: levels</strong>:<br> <tt><strong><a
678: href="../../orders.html">orders.html</a></strong></tt>.
679:
680: <p>
681: AND, if <em>orders.html</em> were a translated file, then you would have
1.6 saad 682: to go back two levels and then one level forward to your language
1.1 saad 683: directory:<br> <tt><strong><a
684: href="../../de/orders.html">orders.html</a></strong></tt>.
685:
686: <p>
1.6 saad 687: We know this looks messy, but you will get used to it and the best you
1.1 saad 688: can do to avoid errors is to check links before you commit (and as you
689: are at it, also check the id tags).
690:
691: <p>
692: One final note on links: links must *always* be relative, except for
693: external links and links from www.OpenBSD.org to www.OpenSSH.com and
694: vice versa.
695:
696: <h4>Links to images</h4>
697: You'll find most images inside the <em>images/</em> directory. In fact,
698: all images are kept in there, except for <em>back.gif</em>, which is
699: <em>openbsd-www/back.gif</em>.
700:
701: <p>
702: This means that when a file is translated and goes into its language
703: directory, the links to the images <i>must</i> be changed too. So, the
704: most commonly used image on the website looks like this on any original
705: file:
706:
707: <pre><a href="index.html"><img height="24" width="24" src=<strong>"back.gif"</strong> alt="OpenBSD"></a>
708: </pre>
709:
710: <p>
1.6 saad 711: but since the translated file will be placed in a different directory,
1.1 saad 712: you will have to change the link to <em>back.gif</em> to get it right:
713:
714: <pre><a href="index.html"><img height="24" width="24" src=<strong>"../back.gif"</strong> alt="OpenBSD"></a>
715: </pre>
716:
717: <p>
718: For the remaining cases, where images are kept in the <em>images/</em>
719: directory:
720:
721: <pre><a href="art1.html"><img border="0" src=<strong>"images/openbsd-logo.gif"</strong> height="195"
1.6 saad 722: width="520" alt="[OpenBSD 3.7]"></a>
1.1 saad 723: </pre>
724:
725: <p>
726: should be changed to:
727:
728: <pre><a href="art1.html"><img border="0" src=<strong>"../images/openbsd-logo.gif"</strong> height="195"
1.6 saad 729: width="520" alt="[OpenBSD 3.7]"></a>
1.1 saad 730: </pre>
731:
732: <p>
733: This is easy when dealing with normal web pages, but if the file is in
734: the <em>faq</em> or <em>openssh</em> directories, then you have to use
735: something like:
736:
737: <pre><a href="art1.html"><img border="0" src=<strong>"../../images/openbsd-logo.gif"</strong> height="195"
1.6 saad 738: width="520" alt="[OpenBSD 3.7]"></a>
1.1 saad 739: </pre>
740:
741: <h4>Accentuated letters</h4>
1.7 saad 742: Since some languages such as French make extensive use of accentuated
1.1 saad 743: letters, a translator must make sure that the accents on the letters are
1.7 saad 744: put in the right places and in the right styles (è not é
1.1 saad 745: in a word such as "problème"). The HTML code must not
1.6 saad 746: contain the accentuated letters in HTML codification format (such as
1.1 saad 747: "&eacute;" for "é").
748:
749: <h4>Punctuation</h4>
750: There are also differences in punctuation between English and other
1.7 saad 751: languages, and you need to respect them. Take French for example. The
1.1 saad 752: "!", "?", ":" signs always take a space
753: before and a space after as in "Le français est une
754: sacrée langue ! n'est-ce pas ?".
755:
756: <h4>Line wrapping</h4>
1.6 saad 757: Verify that your HTML editor wraps lines correctly at 80 columns. If your
1.1 saad 758: editor can't do that, there are other ways to do this such as using the
759: Text::Autoformat Perl module. We won't be accepting uncorrectly wrapped
760: files anymore since it requires non-wanted extra work from the
761: coordinators.
762:
763: <h4>English words</h4>
764: English words that cannot be easily translated or that should be kept
765: as-is for clarity must be double-quoted.
766:
1.13 saad 767: <h4>Quotes</h4>
768: Quotes from users, developers, and other people must not be translated.
769: Translating them, without changing meaning, is extremely difficult.
770:
1.1 saad 771: <h4>Spell checking</h4>
772: It is highly recommended to use a spell checker in order to validate
773: your work.
774:
775: <h4>Link checking</h4>
776: It is highly recommended to use a link checker such as the
777: <a href="http://linkchecker.sourceforge.net/">linkchecker</a> program
778: (available in the ports collection) to verify the links in the
779: translated files.
780:
781: <h4>Mistakes and typos in the original versions</h4>
782: As in any translation work, you may notice mistakes and/or typos in the
1.6 saad 783: original English version of the file that you are currently translating.
1.8 saad 784: Please report them back to <a
785: href="mailto:www@openbsd.org">www@openbsd.org</a>, so they can be fixed
786: by one of the developers. It really helps the project to keep up with
787: the quality standards it strives to maintain.
1.1 saad 788:
1.24 tobias 789: <h4>Mailing list archive of wwwcvs</h4>
790: Although the <i>www translation</i> CVS module is only accessable by
791: translators, the
792: <a href="http://smtp0a.arcane-networks.net/pipermail/wwwcvs/">mailing
793: list archive</a> of <i>wwwcvs</i>, which is quite comparable with
794: <i>source-changes</i>, can be accessed by everyone. Due to the
795: synchronization between Steelix and OpenBSD by using simple CVS actions,
796: the commit logs on Steelix are not accessable in OpenBSD's repository.
797: With the <i>wwwcvs</i> mailing list archive, you are still able to give
798: public credit in your commit logs where credit is due.
799:
1.1 saad 800: <h4>Translation status</h4>
1.17 saad 801: The
1.22 tobias 802: <a href="http://steelix.bsdfrog.org/status/makereport.html">OpenBSD
1.19 saad 803: Translation Status</a>
1.1 saad 804: status. It is generated hourly using <i>makereport</i>, a Perl script
805: that you can find in the <i>trtools</i> module on the Steelix CVS
806: repository. You can run <i>makereport</i> by yourself if you want to
807: have more frequent status updates or want to generate a status page only
808: for your language.
809:
1.11 steven 810: <h4>HTML tag differences report</h4>
1.21 tobias 811: The
1.22 tobias 812: <a href="http://steelix.bsdfrog.org/status/tagdiff.html"
1.11 steven 813: >OpenBSD Translation Tag Report</a> page helps translators keep their
814: pages correct with respect to the original versions. It reports any
815: differences found in HTML tags, except allowed differences such as
816: hyperlinks as explained above.
817: The report page contains more instructions on how you can use this tool.
818: A complete tag differences report is generated daily using <i>tagdiff</i>,
819: a Perl script that you can find in the <i>trtools</i> module on the
820: Steelix CVS repository. You can run <i>tagdiff</i> by yourself if you
821: want to have more frequent updates or want to generate a tag report only
822: for your language.
823: Please try to keep the percentage of problem pages as low as possible!
824:
1.1 saad 825: <p>
826:
827: <hr>
828: <a href="index.html"><img height="24" width="24" src="back.gif"
829: border="0" alt="OpenBSD"></a>
830: <a href="mailto:www@openbsd.org">www@openbsd.org</a>
831: <br>
832: <small>
1.26 ! ajacouto 833: $OpenBSD: translation-explained.html,v 1.25 2010/09/29 12:25:02 ajacoutot Exp $
1.1 saad 834: </small>
835:
836: </body>
837: </html>