Home > Django > Localization options in Django

Localization options in Django

Was having trouble finding the language abbreviations everyone was using with localization. Apparently it’s a standard: ISO 639-1

Also when setting up localization you need to create a ‘locale’ folder. The location is your choice.
Then add one by one the locales from the same level as where your locale folder is. So if ‘locale’ is in app
app/$ django/bin/make-messages.py -l en

To update the ‘.po’ files later run:
app/$ django/bin/make-messages.py -a

To build the object files (‘.mo’) run:
app/$ django/bin/compile-messages.py

Categories: Django Tags:
  1. No comments yet.
  1. No trackbacks yet.