Im trying to make a website in 5 languages. The main language should be 
kurdish but it is not supported by Django default. I tried already the how 
to add new languages into Django? 
<https://stackoverflow.com/questions/12946830/how-to-add-new-languages-into-django-my-language-uyghur-or-uighur-is-not-su/>

but it didnt work for me. I receive an error mesagge

**LANG_INFO = dict(django.conf.locale.LANG_INFO.items() + 
EXTRA_LANG_INFO.items())

TypeError: unsupported operand type(s) for +: 'dict_items' and 
'dict_items'**

I also tried already to copy an english *po file* and rename it "ku" 
(kurdish) and i added into django/conf/*init*.py the language info.

'ku': {
    'bidi': False,
    'code': 'ku',
    'name': 'Kurdish',
    'name_local': 'KurdĂ®',},

I can see the language by languages option by template but when i click it 
i receive an error message.

File "/usr/lib/python3.6/gettext.py", line 91, in _tokenizeraise 
ValueError('invalid token in plural form: %s' % value)

ValueError: invalid token in plural form: EXPRESSION

Does anybody know how can i fix it? Thanks so much!

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/50ebc90d-fb3f-4223-b203-a94fabd30162%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to