monotone

monotone Mtn Source Tree

Root/po/README

1This file should give you some basic information
2to start on a new translation for monotone.
3
4You should meet the following prerequisites:
5
6a) You've pulled and checked out net.venge.monotone
7b) You have a text editor with UTF-8 support
8c) You can deal with the shell...
9
10Now the step-by-step HOWTO:
11
121) Edit the file po/LINGUAS a new entry for your language.
13 The language code has the format ISO 639-1 (e.g. "en"
14 for English, "de" for German, aso.) - if your language
15 differs by region, you can also expand the language code
16 with the country code to reflect these differences.
17 F.e. "en_GB" stands for English as spoken (and written)
18 in Great Britain (BE), while "en_US" determines
19 American English (AE).
20
212) Add an entry for the translation into win32/monotone.iss
22 so that it is included in future Win32 installer
23 packages.
24
253) Configure monotone
26
27 $ cd net.venge.monotone
28 $ autoreconf --install
29 $ ./configure
30 $ ( cd po; make monotone.pot-update )
31
32 This will create an untranslated monotone.pot file in po/.
33 Copy this file to <yourlang>.po (where <yourlang> is the
34 language code you've entered in LINGUAS), and continue
35 with III).
36
374) Edit the header of your new language po according to
38 the excellent HOWTO here [0]. Of particular interest
39 are mainly two things:
40
41 a) The encoding of the file (Content-Type: ...)
42 Set this to the encoding you'll use in your text
43 editor to translate the file. UTF-8 is recommended
44 here.
45 b) The Plural forms configuration (Plural-Forms: ...)
46 The Entries here differ from language to language,
47 some might have more complex plural forms (e.g.
48 Slavic languages), others have simple ones (e.g.
49 most Romanian languages). If you don't know exactly
50 what to write here, take a look at the gettext manual
51 here [1].
52
535) Start translating the entries. If you like to update your
54 *.po file, trigger the following command (here for the
55 German translation):
56
57 $ cd po
58 $ make monotone.pot-update && make MSGMERGE=msgmerge de.po-update
59
60 To check if new or fuzzy strings have arrived, use msgfmt:
61
62 $ msgfmt -cv po/de.po
63
64
65Thats it basically. If you're looking for a nice GUI to edit
66language files, I can recommend KBabel[2], which comes with the kdesdk
67module of KDE, or poedit[3].
68
69[0] http://mail.gnome.org/archives/gnome-i18n/2004-July/msg00073.html
70[1] http://www.gnu.org/software/gettext/manual/html_node/gettext_150.html
71[2] http://kbabel.kde.org/
72[3] http://www.poedit.net

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status