Skip to main content

Nereid Cart B2C

Project description

https://travis-ci.org/openlabs/nereid-cart-b2c.png?branch=develop https://coveralls.io/repos/openlabs/nereid-cart-b2c/badge.png?branch=develop

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trytond_nereid_cart_b2c-3.2.0.8.tar.gz (38.0 kB view details)

Uploaded Source

File details

Details for the file trytond_nereid_cart_b2c-3.2.0.8.tar.gz.

File metadata

File hashes

Hashes for trytond_nereid_cart_b2c-3.2.0.8.tar.gz
Algorithm Hash digest
SHA256 65d719c862e8b84b33bdf750a640c29abbb689c74b5d3ccac2bb95b27a8ae1e8
MD5 7fb941a58a4cb84a8378c18ad9d07194
BLAKE2b-256 21fe4cd4f40b2ac2f175d5bf510bc80bf074ee870671ed3d909270c57f6d8ec4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page