Answer the question
In order to leave comments, you need to log in
How to add your own language code (for example ru,en) to Django?
Hello everyone, there is a problem, in Dzhang the Kazakh language code is marked as kk, how can I change this? or say add your code?
Easy to install
LANGUAGES = (
('ru', _('Russian')),
('kz', _('Kazakh')),
)
Answer the question
In order to leave comments, you need to log in
All registered locales are specified in the LANG_INFO dictionary found in the django.conf.locale package.
Can. for example, make an application that, at startup, will do something like this:
from django.conf.locale import LANG_INFO
LANG_INFO['kz'] = LANG_INFO['kk']
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question