2016-01-22 20:46:20 +01:00
|
|
|
Instruction to update translations for OpenSlides (JavaScipt and Django):
|
|
|
|
-------------------------------------------------------------------------
|
2012-07-20 10:55:07 +02:00
|
|
|
|
2016-01-22 20:46:20 +01:00
|
|
|
1. Update English resource files:
|
2012-07-20 10:55:07 +02:00
|
|
|
|
2016-01-22 20:46:20 +01:00
|
|
|
a) for JavaScript run:
|
|
|
|
$ ./node_modules/.bin/gulp pot
|
|
|
|
-> updates 'openslides/locale/angular-gettext/template-en.pot'
|
2012-07-20 10:55:07 +02:00
|
|
|
|
2016-01-22 20:46:20 +01:00
|
|
|
b) for Django:
|
|
|
|
$ cd openslides
|
|
|
|
$ django-admin.py makemessages -l en
|
|
|
|
-> updates 'openslides/locale/en/LC_MESSAGES/django.po'
|
2012-07-20 10:55:07 +02:00
|
|
|
|
2016-01-22 20:46:20 +01:00
|
|
|
2. Commit and merge the following files into OpenSlides master repo:
|
|
|
|
a) openslides/locale/angular-gettext/template-en.pot
|
|
|
|
b) openslides/locale/en/LC_MESSAGES/django.po
|
|
|
|
|
|
|
|
Transifex will update both resource files once a day by pulling from GitHub.
|
2012-07-20 10:55:07 +02:00
|
|
|
|
2016-01-22 20:46:20 +01:00
|
|
|
3. Translate both files in transifex into desired languages.
|
|
|
|
https://www.transifex.com/openslides/
|
2012-07-20 10:55:07 +02:00
|
|
|
|
2016-01-22 20:46:20 +01:00
|
|
|
4. Download translated po files for each language and override it:
|
|
|
|
a) openslides/locale/angular-gettext/{LANG-CODE}.po
|
|
|
|
b) openslides/locale/{LANG-CODE}/LC_MESSAGES/django.po
|
|
|
|
|
|
|
|
5. Create mo file for each language (only for django po files required)
|
|
|
|
$ cd openslides
|
|
|
|
$ django-admin.py compilemessages
|
2012-07-20 10:55:07 +02:00
|
|
|
|
2016-01-22 20:46:20 +01:00
|
|
|
6. Commit and merge for each language the following files:
|
|
|
|
a) openslides/locale/angular-gettext/{LANG-CODE}.po
|
|
|
|
b) openslides/locale/{LANG-CODE}/LC_MESSAGES/django.po
|
|
|
|
openslides/locale/{LANG-CODE}/LC_MESSAGES/django.mo
|