-
Notifications
You must be signed in to change notification settings - Fork 9
/
i18n_README
37 lines (26 loc) · 1.25 KB
/
i18n_README
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
UIRD i18n HOWTO
ru_RU.UTF-8 example:
# Make dirs for RU locale
i18n/usr/lib/consolefonts/ru_RU.UTF-8 # Do not create the folder if you do not plan to add a font
i18n/usr/lib/kbd/ru_RU.UTF-8 # Do not create the folder if you do not plan to add a keymap
i18n/usr/share/locale/ru/LC_MESSAGES
i18n/usr/share/uird.help/ru_RU.UTF-8 # Do not create the folder if you do not plan to translate a help files
# make links
i18n/usr/lib/consolefonts/ru --> ./ru_RU.UTF-8
i18n/usr/lib/kbd/ru --> ./ru_RU.UTF-8
i18n/usr/share/uird.help/ru --> ./ru_RU.UTF-8
Put the font file to i18n/usr/lib/consolefonts/ru_RU.UTF-8
Put the map file to i18n/usr/lib/kbd/ru_RU.UTF-8
Put translated help files to i18n/usr/share/uird.help/ru_RU.UTF-8
Now you need to translate UIRD messages
To translate using gettext:
# Get pot file
sed 's/$GETTEXT/GETTEXT/g' ./modules.d/00uird/livekit/{livekitlib,uird*} | xgettext -o uird.pot -L Shell --keyword --keyword=GETTEXT -
# if the first time
msginit -i uird.pot -o i18n/usr/share/locale/ru/LC_MESSAGES/uird.po -l ru.UTF-8
# if not the first time
msgmerge -U i18n/usr/share/locale/ru/LC_MESSAGES/uird.po uird.pot
cd i18n/usr/share/locale/ru/LC_MESSAGES/
# Now you need to edit the uird.po file
msgfmt -v ./uird.po -o ./uird.mo
# Translation is completed