Project

General

Profile

Translations » History » Version 2

Alexander Watzinger, 2020-06-14 18:26

1 1 Alexander Watzinger
h1. Translations
2
3
The user interface was designed with internationalization and localization in mind. Labels and texts are stored in language specific "gettext":https://en.wikipedia.org/wiki/Gettext files located in openatlas/translations.
4
5
These files can be created or edited with e.g. "Poedit":https://en.wikipedia.org/wiki/Poedit even by "non programmers".
6
7
At the moment translations for English and German are available but can easily be extended if translations for other languages are available.
8
9
Update existing translations:
10
11
<pre>
12 2 Alexander Watzinger
pybabel extract -F openatlas/translations/babel.cfg -k lazy_gettext -o openatlas/translations/messages.pot .
13
pybabel update -i openatlas/translations/messages.pot -d openatlas/translations
14 1 Alexander Watzinger
</pre>
15
16
When translating the first time - *WARNING* existing translations get deleted!:
17
18
<pre>
19 2 Alexander Watzinger
pybabel extract -F openatlas/translations/babel.cfg -k lazy_gettext -o openatlas/translations/messages.pot .
20
pybabel init -i openatlas/translations/messages.pot -d openatlas/translations -l de
21 1 Alexander Watzinger
</pre>