Go to file
Sharoon Thomas 00704cf284 Merge branch 'release/2.4.0.7' 2013-01-18 11:52:31 +05:00
i18n Updated pt_BR and es Translations 2012-03-29 11:16:06 -04:00
tests Remove gravatar usage from party #38 2013-01-16 19:47:25 +05:00
.travis.yml Add travis.yml for CI and use tryton test loader 2013-01-18 11:51:18 +05:00
README.rst Fix the translation instructions on README 2012-02-10 15:43:07 -05:00
__init__.py Remove dependency on ccy #41 2013-01-15 21:50:04 +05:00
__tryton__.py Bump version to 2.4.0.7 2013-01-18 11:52:23 +05:00
attachment.py Moved IrAttachment from nereid-project to nereid. 2012-09-03 11:54:34 +05:00
babel.cfg Further refine the translation process and add pt_BR as a language 2012-02-10 15:39:17 -05:00
configuration.xml Remove Tryton Template model #37 2013-01-14 20:29:37 +05:00
currency.py Corrected and Updated GPLv3 as the consistent License everywhere 2012-05-01 12:43:44 +05:00
i18n.py Corrected and Updated GPLv3 as the consistent License everywhere 2012-05-01 12:43:44 +05:00
lang.py Remove dependency on ccy #41 2013-01-15 21:50:04 +05:00
lang.xml Remove dependency on ccy #41 2013-01-15 21:50:04 +05:00
party.py Remove gravatar usage from party #38 2013-01-16 19:47:25 +05:00
party.xml Add timezone to view 2012-09-10 04:38:55 -04:00
routing.py Remove dependency on ccy #41 2013-01-15 21:50:04 +05:00
setup.py Add travis.yml for CI and use tryton test loader 2013-01-18 11:51:18 +05:00
static_file.py Tryton needs file buffer rather than base64 2012-12-27 16:09:10 +05:00
static_file.xml Tryton needs file buffer rather than base64 2012-12-27 16:09:10 +05:00
template.py Remove Tryton Template model #37 2013-01-14 20:29:37 +05:00
urls.xml Remove dependency on ccy #41 2013-01-15 21:50:04 +05:00

README.rst

Using Babel to translate nereid
===============================

The basic steps in translation are:

  * Extract translations
  * Create language/locales
  * Translate them
  * compile the translations

To extract translations
-----------------------

    pybabel extract -F babel.cfg -o i18n/messages.pot .


To Translate to new language
----------------------------

    pybabel init -i i18n/messages.pot -d i18n -l pt_BR


Now edit the translations/de/LC_MESSAGES/messages.po file as needed. 
Check out some gettext tutorials if you feel lost.


To compile the translations for use
-----------------------------------


    pybabel compile -d i18n


What if the strings change?
----------------------------


    pybabel update -i i18n/messages.pot -d i18n


Afterwards some strings might be marked as fuzzy (where it tried to figure out if a 
translation matched a changed key). If you have fuzzy entries, make sure to check 
them by hand and remove the fuzzy flag before compiling.