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