-
Notifications
You must be signed in to change notification settings - Fork 19
/
I18N
46 lines (31 loc) · 1.15 KB
/
I18N
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
Translation support in ocitysmap
================================
Translation support uses the standard Gettext system. See
http://www.gnu.org/software/gettext/manual/gettext.html for the
Gettext manual.
Updating the template file
--------------------------
Do:
./i18n.py --make-pot
The file "locale/ocitysmap.pot" is now up-to-date with the code.
Updating an existing translation
--------------------------------
Do:
./i18n.py --make-po
Then edit the locale/YOUR_COUNTRY_CODE/LC_MESSAGES/ocitysmap.po file
with poedit or another .po file editor.
Tip: refer to http://wiki.openstreetmap.org/wiki/Map_Features for
official translations of several words used in OpenStreetMap.
Compiling the message file
--------------------------
Do:
./i18n.py --compile-mo
Create a translation for a new language
---------------------------------------
Do:
./i18n.py --new-language=LANGUAGE_CODE
Where LANGUAGE_CODE is like fr_FR, it, pt_BR, ...
Then edit the locale/LANGUAGE_CODE/LC_MESSAGES/ocitysmap.po file with
poedit or another .po file editor.
Tip: refer to http://wiki.openstreetmap.org/wiki/Map_Features for
official translations of several words used in OpenStreetMap.