Blog Archive

Tuesday, 11 June 2013

Django localization settings

This examle shows all the settings that you need to put in your settings file in order to have the Django 1.5 to run in russian language.

ugettext = lambda s: s
LANGUAGES = (
    ('ru', 'Russian'),
)
LOCALE_PATHS = (
    PROJECT_PATH+'/locale', #this is the place where the language files stored
)
LANGUAGE_CODE = 'ru'



If any of these missing, it will not work

1 comment:

  1. If you're involved in localization projects and are interested in tools that can help you better manage the string translation process, you might want to check out the online platform https://poeditor.com/
    It can automate the translation workflow a lot due to being equipped with API and Translation Memory, and offering a platform for collaborative work.

    ReplyDelete