Skip to content

PythonUnited/djinn_i18n

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

djinn_i18n

Djinn i18n module providing overrides of djinn translations. Other than for instance Rosetta, this tool writes it's overrides to a separate .po file that resides outside of your or other people's sources, so you won't get into trouble when updating source code.

The one single .po file is written to settings.PO_OVERRIDES, or if that doesn't exist, to: settings.PROJECT_ROOT/var/locale.

Make sure to add the path to your settings.LOCALE_PATHS, like so:

LOCALE_PATHS = [PO_OVERRIDES] + LOCALE_PATHS

or:

LOCALE_PATHS = [PROJECT_ROOT + "/var/locale"] + LOCALE_PATHS