My favorites | Sign in
Logo
                
Search
for
HowtoTranslate  
How to translate Tryton.

How to translate Modules

Create the language

We follow the RFC 4646 for the code naming. Here is a validator.

Set the language translatable

Update installed modules

Update report translations

Clean translations

Synchronize translations for the language

This may take some time depending on the number of modules you have installed.
The fuzzy field is checked when the source term have been changed since the last update, so you must verify that the translation is always correct and uncheck the fuzzy field.
Hint:
  • The task can be facilitated by filtering on various fields - module, src, value...
  • For a convenient display of multiline items just click on "Form>Switch View". You simply move between the items using "Form>Next" / "Form>Previous".

Export translations

Before updating a module or the whole database, changes should be exported, because otherwise your changes can be overwritten with old values from old csv file.

Submit translations

How to translate Tryton client

For the client translation we use Babel.

Change directory

Prepare po file

Edit po file

Generate mo file

python ./setup.py compile_catalog -v --directory share/locale/ --locale de_DE
Hint: if you are using poedit, this is already done automatically

Submit translations

How to translate Documentation

For the documentation translation we use translate-toolkit

Change directory

Prepare po files

txt2po index.rst index.pot -P
pot2po index.pot de_DE/index.po -t de_DE/index.po

Edit po files

Generate rst files

po2txt de_DE/index.po de_DE/index.rst -t index.rst
Never edit directly the *.rst files

Submit translations



Sign in to add a comment
Hosted by Google Code