thanks Clay, but this code  was not from me,i cant understand this code.I
need help for extra language by Django,wenn i dont find any solution for
this it ist very sad for me.


On Fri, Aug 10, 2018 at 3:17 PM Clay Records <clay.s.reco...@gmail.com>
wrote:

> 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())
> print(c)
>
>
> However, this code has no errors.
>
> a = {1:1, 2:2}
> b = {4:4, 5:5}
> c = {**a, **b}
> print(c)
>
>
> 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
> https://groups.google.com/d/msgid/django-users/bb88eeee-3616-4ec5-b518-9f2df2ef9a63%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/bb88eeee-3616-4ec5-b518-9f2df2ef9a63%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Mit freundlichen Grüßen
*Deniz Bazan*

Web Entwickler
Filmmaker, Cutter, 3D  Artist
Tel:+49 163 133 68 00
http://denizbazan.jimdo.com

-- 
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/CADVVM_hYTLWBnAUPS8S5uL1xiitv7BwZO3G%3D%3DXDX0RU5Hdd_cw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to