forked from OpenPLi/enigma2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTRANSLATIONS
45 lines (33 loc) · 1.83 KB
/
TRANSLATIONS
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
enigma2 translations
====================
Enigma2 uses ".po" extension for translations which you can find them
in "po" folder and start translating in your desired language using some tools like https://poedit.net
A PO file is made up of many entries, each entry holding the relation
between an original untranslated string and its corresponding translation.
All entries in a given PO file usually pertain to a single project,
and all translations are expressed in a single target language.
Read more about PO files: https://www.gnu.org/software/gettext/manual/html_node/PO-Files.html
Don't forget that a new language file must be considered in "po/Makefile.am"
as a "po" file is just the source file of a language and it has to be compiled
into a ".mo" file and then you can define it in enigma2 python files as a new language.
You will need a "linux" based system in order to properly update the files.
You don't need to setup a full OpenPLi build environment but there are some pre-requisites,
the following commands must be installed and available in path on your system:
- git-core
- gawk (GNU awk)
- find
- gsed (GNU sed)
- python
- gettext (for the tools: xgettext, msguniq, msgmerge, msgattrib, msgfmt, msginit)
How to create updated "po" files including latest strings?
Follow these steps:
1- git clone https://github.com/OpenPLi/enigma2.git
2- cd enigma2
3- cd po
4- ./updateallpo.sh
You'll have the latest "enigma2.pot" and all updated ".po" files.
You can start updating your language file and you can post them in this forum thread:
https://forums.openpli.org/topic/21479-translations-for-enigma-2-please-post-them-here/
Hint: The "enigma2.pot" file is the template that you can use to create new ".po" files.
Remark: by installing "brew" on OSX and then the pre-requisite packages with "brew install",
you can also generate the .po and .pot files.