Answer the question
In order to leave comments, you need to log in
How does django determine what language {%blocktrans%} should be translated into?
Placed word in {%blocktrans%},
executed
./env/bin/django-admin.py makemessages -l en
./env/bin/django-admin.py makemessages -l ru
USE_I18N = True
USE_L10N = True
LANGUAGE_CODE = 'en'
LANGUAGES = (
('ru', _('Russian')),
('en', _('English')),
)
ugettext = lambda s: s
LOCALE_PATHS = (
os.path.join(BASE_DIR, 'locale'),
)
Answer the question
In order to leave comments, you need to log in
I apologize for the stupid question: did you actually translate them?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question