| 1 |
|
| 2 |
General notes for translators: |
| 3 |
|
| 4 |
1. Before starting a translation, always check with your fellow |
| 5 |
translators on debian-l10n-<language>@lists.debian.org (if |
| 6 |
such a list does exist) to make sure that noone is currently |
| 7 |
working on the same translation, and read current bugreports |
| 8 |
against the package you are going to translate to see if a |
| 9 |
translation has already been reported. |
| 10 |
|
| 11 |
2. If you want to update a translation, please always contact |
| 12 |
the previous translator in order to prevent duplication of |
| 13 |
work. Mail addresses can be found in the PO file. |
| 14 |
|
| 15 |
3. To start a new translation, copy the templates.pot file into |
| 16 |
<xx>.po, where <xx> is the ISO code of your language. Then |
| 17 |
specify in the first msgstr the charset used for translated |
| 18 |
strings, and also put any useful piece of information. |
| 19 |
|
| 20 |
4. Any general text editor can be used to work on PO files, and |
| 21 |
there are some specific tools like gtranslator or kbabel |
| 22 |
which can be helpful if you are not familiar with PO files. |
| 23 |
Gettext documentation contains explanations about the PO file |
| 24 |
format, and you must read at least the 'Filling in the Header |
| 25 |
Entry' and 'The Format of PO Files' sections. |
| 26 |
|
| 27 |
5. When you have finished your translation, always reread your |
| 28 |
file at least once to correct all meaning, spelling, grammar, |
| 29 |
typo and other mistakes. (Maybe your PO editor does include |
| 30 |
a spellchecker or a translation helper like acheck). |
| 31 |
Next run |
| 32 |
msgfmt -c -v -o /dev/null <YOUR_LANGUAGE_CODE>.po |
| 33 |
to check that your file is valid and will be integrated |
| 34 |
without trouble. |
| 35 |
Depending on your language team policy, you may also send |
| 36 |
your translation to your dedicated l10n list so that it gets |
| 37 |
reviewed. |
| 38 |
|
| 39 |
6. When your translation is finished and valid, file a bugreport |
| 40 |
against the package being translated, severity minor. Tag |
| 41 |
your report with 'l10n' and 'patch' marks, add "[INTL:xx]" |
| 42 |
(where xx is the ISO code of your language) to the subject to |
| 43 |
help further searches, ask politely that your translation |
| 44 |
gets included, give maintainer instructions on what to do |
| 45 |
with this file (e.g. "Please copy the attachment into |
| 46 |
debian/po/cs.po") and do not forget to attach your |
| 47 |
translation. This step can be very easily performed with the |
| 48 |
reportbug utility. |
| 49 |
|
| 50 |
Notes specific to po-debconf: |
| 51 |
|
| 52 |
1. The field name is displayed in comments before msgid. |
| 53 |
Default values are special for debconf, because when |
| 54 |
template type is 'Select' or 'Multiselect', they must *not* |
| 55 |
be translated, but their values may be changed (in rare |
| 56 |
curcumstances) to another string listed in the English |
| 57 |
Choices field. For this reason, developers should use |
| 58 |
DefaultChoice instead of Default in order to prevent |
| 59 |
confusion. |
| 60 |
THIS IS A PO-DEBCONF EXTENSION. |
| 61 |
In the generated templates file, Default will of course be |
| 62 |
printed, since debconf does not define this DefaultChoice |
| 63 |
field. |
| 64 |
|
| 65 |
2. Because instructions for translators may be inserted by |
| 66 |
developers, you must ensure that the tool you are using |
| 67 |
is able to display (without corruption) these comments. |
| 68 |
See for instance instructions to handle language selection |
| 69 |
in the geneweb package. |
| 70 |
|
| 71 |
3. Sometimes msgids are identical whereas msgstr could have |
| 72 |
different values. In order to make msgids unique, some |
| 73 |
special text can be inserted at the end of the string, more |
| 74 |
precisely any sequence of |
| 75 |
+ a left square bracket: '[' |
| 76 |
+ a space |
| 77 |
+ zero or more occurences of any character except left |
| 78 |
square bracket, right square bracket and newline |
| 79 |
+ a right square bracket: ']' |
| 80 |
at the end of string is removed from msgid strings. |
| 81 |
It also applies to msgstr strings, so that translators can |
| 82 |
insert an empty string. |
| 83 |
|
| 84 |
4. Lines are wrapped by debconf, except when they begin with a |
| 85 |
space. Such lines are often used to format lists, but each |
| 86 |
frontend has its own limitations. It seems that such lines |
| 87 |
must not exceed 72 characters in order to be displayed |
| 88 |
reasonably well on all frontends. |
| 89 |
|
| 90 |
5. The podebconf-display-po script (from po-debconf >= 0.8.3) |
| 91 |
is able to show your translation as it will be displayed by |
| 92 |
debconf at configuration time. Run |
| 93 |
podebconf-display-po -fdialog debian/po/<YOUR_LANG_CODE>.po |
| 94 |
to have a rough idea on how your translation will look like. |
| 95 |
But this only works for basic configuration files, rendering |
| 96 |
may be altered if complex operations (like heavy use of text |
| 97 |
substitution) are performed. Available debconf frontends |
| 98 |
(which can be selected by the -f flag) are listed in |
| 99 |
debconf(7). |