]> git.sur5r.net Git - bacula/bacula/blob - bacula/po/README
Fix some file execute permissions. Fixes bug #2389
[bacula/bacula] / bacula / po / README
1
2 Notes about Bacula translations.
3 --------------------------------
4
5 ---
6
7 To edit .po files, I recommend poedit, downloadable at http://www.poedit.org/ .
8
9 ---
10
11 To refresh bacula.pot and *.po, when some strings have been added, modified or
12 removed from the sources files, run:
13
14 # make update-po
15
16 ---
17
18 To refresh Bacula source files list (POTFILES.in), when a source file is
19 added or removed from the repository, run:
20
21 # make gen-potfiles && make update-po
22
23 Note, the gen-potfiles pulls in all files found under the top
24 directory, so it is much better to do something like:
25
26 cd bacula
27 rm -rf x
28 svn checkout https://bacula.svn.sourceforge.net/svnroot/bacula/trunk/bacula x
29 cd x
30 ./configure <options>
31 cd po
32 make gen-potfiles
33 cp POTFILES.in <real-source-tree/po>
34 cd ..
35 ./configure <options>
36
37 This avoids picking up any files that are not in the SVN.
38
39 ---
40
41 To add a new translation language (e.g. German), add a new line to LINGUAS
42 containing the language code (e.g. de), then run:
43 # msginit -l <full locale> (e.g. "# msginit -l de_DE")
44
45 Open the newly created file in an editor (e.g. de.po), and look for this line:
46 "Project-Id-Version: ...\n"
47 If it still look like this:
48 "Project-Id-Version: PACKAGE VERSION\n"
49 Correct it to:
50 "Project-Id-Version: Bacula 1.38\n"
51
52 You may also want to correct the language team to:
53 "Language-Team: German <bacula-devel@lists.sourceforge.net>\n"
54
55 Finally, add <language code>.mo (e.g. de.mo) to .cvsignore, and don't forget to
56 run:
57 # svn add <language code>.po <language code>.gmo
58
59 ---
60
61 For more information, see the gettext manual:
62 http://www.gnu.org/software/gettext/manual/
63
64 ---
65
66 Nicolas Boichat <nicolas@boichat.ch>, August 2005