This repository has been archived by the owner on Sep 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.translate
59 lines (47 loc) · 1.93 KB
/
README.translate
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Works on Linux (and Windows too).
gettext utitlities must be installed to create/compile translations.
Binary .mo files from Linux should be usable on Windows too.
You need to build GrandOrgue first (see README). Then you can run in the build directrory.
How to update the translations:
1) make update-pot
Creates/Updates po/GrandOrgue.pot
2) make merge-pot
Merges new strings into po/*.po
3)
Edit po/$LANG.po. Search for fuzzy or untranslated entries and correct them.
KDE includes lokalize (http://userbase.kde.org/Lokalize), a
end-user friendly editor.
4) Commit the changed po files.
How to add a new language:
1) make update-pot
2) Add a new po file, eg. for de:
cd po
msginit -i GrandOrgue.pot -l de -o de.po
3) Rerun cmake, so that it recognize the new po file
4) Edit & commit the po/$LANG.po
The translations are automatically built/installed, if the gettext
utilties are available.
How to handle the translation of the help system:
-------------------------------------------------
For building the (translated) help, you need to install Docbook-xsl, xslproc, zip
and po4a. The docbook installation directory can be hinted to cmake with DOCBOOK_DIR.
How to update the translations:
1) make help-update-pot
Creates/Updates help/grandorgue.pot
2) make help-merge-pot
Merges new strings into help/*.po
3)
Edit po/$LANG.po. Search for fuzzy or untranslated entries and correct them.
KDE includes lokalize (http://userbase.kde.org/Lokalize), a
end-user friendly editor.
4) Commit the changed po files.
The build system supports localized images in the help. Just pust the localized images
with the same name in help/images-<variant> [so help/images/start.gif => help/images-sv/start.gif].
The next cmake run will notice the localized image.
How to add a new language:
1) make help-update-pot
2) Add a new po file, eg. for de:
cd help
msginit -i grandorgue.pot -l de -o de.po
3) Rerun cmake, so that it recognize the new po file
4) Edit & commit the help/$LANG.po