No description
Find a file
2012-03-29 09:14:14 -04:00
i18n Extracted and updated translation catalog 2012-03-29 09:14:14 -04:00
tests Define application_user and guest_user in nereid_website (previously was part of the application spec) 2012-03-09 18:12:29 -05:00
__init__.py Added view for nereid_user 2012-03-20 12:16:31 +05:00
__tryton__.py Added view for nereid_user 2012-03-20 12:16:31 +05:00
authentication.py [ADD]Initial import 2010-12-08 10:24:48 +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 Define application_user and guest_user in nereid_website (previously was part of the application spec) 2012-03-09 18:12:29 -05:00
currency.py [IMP]Basic currency handling shifted to nereid/trytond_nereid from nereid_catalog 2011-04-27 13:47:17 -04:00
defaults.xml New user model 2012-02-10 07:15:18 -05:00
i18n.py Fix for ngettext 2012-02-10 20:02:54 -05:00
party.py Fix the header and encoding 2012-03-14 13:18:50 -03:00
party.xml Added view for nereid_user 2012-03-20 12:16:31 +05:00
README.rst Fix the translation instructions on README 2012-02-10 15:43:07 -05:00
routing.py Define application_user and guest_user in nereid_website (previously was part of the application spec) 2012-03-09 18:12:29 -05:00
setup.py [ADD]Initial import 2010-12-08 10:24:48 +05:00
static_file.py [FIX]Refactoring of simple registration + [FIX]Typo 2011-01-08 13:34:01 +05:00
static_file.xml [MIG]Migration from tryton 1.8 to 2.0 2011-05-10 18:40:21 +05:00
template.py [IMP]Template improvement in the context of language 2011-05-02 21:12:49 -04:00
urls.xml New user model 2012-02-10 07:15:18 -05:00

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.