Procedure for generating translations
- Define the default language in your
settings.py
. - All your strings should be in the default language.
- Optional: Define available languages by adding the
LANGUAGES
setting if you want.
For a Django app
- Create
locale
directory in your Django app. Django won't create it by itself. - Check your app is registered in
INSTALLED_APPS
. makemessages -l <language>