Hey Deniz,

It seems you're making a mistake with adding dictionaries. Dictionaries 
cannot be added with the '+' symbol.

This code gets the same error.

a = {1:1, 2:2}
b = {4:4, 5:5}
c = dict(a.items() + b.items())

However, this code has no errors.

a = {1:1, 2:2}
b = {4:4, 5:5}
c = {**a, **b}

Try adding your dictionaries together this way.

-Clay Records

On Thursday, August 9, 2018 at 11:31:59 AM UTC-4, Deniz Bazan wrote:
> 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 
For more options, visit https://groups.google.com/d/optout.

Reply via email to