3 - a reasonably recent version of GNU gettext (e.g. 0.10.35)
4 Check the version using e.g. msgfmt -V
8 - gnokii distribution :-)
10 - if you have the variable LINGUAS in the environment
11 (most Red Hats have, no idea about other distributions),
15 2. How to make gnokii.pot file?
17 gnokii.pot file is a collection of all localizable strings
18 in the gnokii package. It will be generated automagically
19 and is included in the standard distribution package.
21 If you need to regenerate it, goto "po" directory,
22 remove gnokii.pot and say
27 3.1 How to start translating for a new language?
29 First, you would like to contact the authors or write
30 to the mailing list - maybe there already is someone
31 working on this translation.
33 If you get the OK from the maintainer, there are several
36 - add the code of your language to the ALL_LINGUAS line
37 in the configure.in file
39 Caution: the language code may differ from the country
40 code, e.g. czech language is cs, Czech Republic is cz
42 - run autoconf to recreate configure script
44 - reconfigure the package (./configure)
46 - in the po directory, copy gnokii.pot to <country>.po
51 3.2 How to merge existing translations with the updated gnokii.pot?
53 This is simple. Rename the old file and use msgmerge to create
57 msgmerge -o cs.po cs.po.bak gnokii.pot
60 4. How to generate a .mo file
62 When you say make in the po directory, all existing
63 translations will be generated. The suffix will be .gmo.
65 If you want to do this manually, use the msgfmt utility, e.g.
67 msgfmt -o cs.mo -v cs.po
70 5. How to install the files
72 Again, the makefile takes care of this. Simply use (as root)
76 in the po directory. If you want to do this manually (and/or
77 for your language only), move the .mo file to
78 /usr/share/locale/<your locale>/LC_MESSAGES/gnokii.mo
81 I'm from Czech republic, so I did (well, I did not, but if you would
82 like to localize gnokii, you should :-):
87 <translating messages in cs.po>
88 <checking the translations using> msgfmt -o cs.mo -v cs.po
94 SnowWhite:/tmp/gnokii$ export LC_MESSAGES=cs_CZ
95 SnowWhite:/tmp/gnokii$ ./gnokii --version
96 GNOKII Version 0.3.1 Copyright (C) Hugh Blemings 1999. <hugh@linuxcare.com>
97 Kompilace: 19:09:02 Mar 13 1999 pro model 6110 na portu /dev/ttyS0
98 SnowWhite:/tmp/gnokii$
100 The second line is in czech language :-) There are some problems - for
101 example with "Mar" which is substitute by the C preprocessor.