Answer the question
In order to leave comments, you need to log in
Problem with Django locales?
Weird localization issue:
In settings.py:
LANGUAGE_CODE = 'ru-RU'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
LANGUAGES = (
('ru', _('Russian')),
('en', _('English')),
)
LOCALE_PATHS = (
BASE_DIR.child('locale'),
os.path.join(BASE_DIR, 'app1', 'locale'),
os.path.join(BASE_DIR, 'app2', 'locale'),
os.path.join(BASE_DIR, 'app3', 'locale'),
os.path.join(BASE_DIR, 'app4', 'locale'),
os.path.join(BASE_DIR, 'app5', 'locale'),
)
from __future__ import unicode_literals
from django.utils.translation import ugettext_lazy as _
...
verbose_name = _('Some name')
...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question