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
12I) 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
21II) Configure monotone
22
23 $ cd net.venge.monotone
24 $ aclocal && autoreconf --install
25 $ ./configure
26 $ ( cd po; make monotone.pot-update )
27
28 This will create an untranslated monotone.pot file in po/.
29 Copy this file to <yourlang>.po (where <yourlang> is the
30 language code you've entered in LINGUAS), and continue
31 with III).
32
33III) Edit the header of your new language po according to
34 the excellent HOWTO here [0]. Of particular interest
35 are mainly two things:
36
37 a) The encoding of the file (Content-Type: ...)
38 Set this to the encoding you'll use in your text
39 editor to translate the file. UTF-8 is recommended
40 here.
41 b) The Plural forms configuration (Plural-Forms: ...)
42 The Entries here differ from language to language,
43 some might have more complex plural forms (e.g.
44 Slavic languages), others have simple ones (e.g.
45 most Romanian languages). If you don't know exactly
46 what to write here, take a look at the gettext manual
47 here [1].
48
49IV) Start translating the entries. If you like to update your
50 *.po file, trigger the following command (here for the
51 German translation):
52
53 $ cd po
54 $ make monotone.pot-update && make MSGMERGE=msgmerge de.po-update
55
56 To check if new or fuzzy strings have arrived, use msgfmt:
57
58 $ msgfmt -cv po/de.po
59
60
61Thats it basically. If you're looking for a nice GUI to edit
62language files, I can recommend KBabel[2], which comes with the kdesdk
63module of KDE, or poedit[3].
64
65[0] http://mail.gnome.org/archives/gnome-i18n/2004-July/msg00073.html
66[1] http://www.gnu.org/software/gettext/manual/html_node/gettext_150.html
67[2] http://kbabel.kde.org/
68[3] http://www.poedit.net

Archive Download this file

Branches

Tags

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