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