I am having problem with adding my custom languages in Django. Here is the configuration of the settings.py:
LANGUAGES = [
('en', 'English'),
('ru', 'Russian'),
('uz', 'Uzbek'),
]
EXTRA_LANG_INFO = {
'uz': {
'bidi': False,
'code': 'uz',
'name': 'Uzbek',
'name_local': "O'zbek",
},
}
import django.conf.locale
LANG_INFO = dict(django.conf.locale.LANG_INFO.items() + EXTRA_LANG_INFO.items())
django.conf.locale.LANG_INFO = LANG_INFO
global_settings.LANGUAGES = global_settings.LANGUAGES + [("uz", 'Uzbek')]
but I am having the following errror:
unsupported operand type(s) for +: 'dict_items' and 'dict_items'
I am using django version 2.1 and pycharm as an IDE on ubuntu 18.04. Actually according to the instructions it should work.