Le 12. 08. 18 à 23:04, Deniz Bazan a écrit :
I use Django 2.1
Ok, noted.
Wenn i run the command makemessages(with django-admin or manage.py) i
recieve same error.
I have in locale 'ku' po file but it dosent work
hier is the traceback
...
> File
>
"/media/kole/WORKS/works/goge/goge_web/venv/lib/python3.6/site-packages/django/templatetags/i18n.py",
> line 46, in render
> context[self.variable] = [self.get_language_info(lang) for lang in
> langs]
...
The traceback you are providing is not the result of the makemessages
command, but the rendering of a template, which is using the
get_language_info_list template tag at some point.
If you can reproduce a similiar traceback with makemessages, please show
it to us.
Next, look at your templates if you are using the get_language_info_list
template tag, or if it is a template from a dependency of your project.
If it is your project, then decide if you really need that template tag.
If you really need it, then you have to patch the Django LANG_INFO
structure, somewhere in startup code (AppConfig.ready() would be the
best location, but you could add it to a specific view also):
from django.conf.locale import LANG_INFO
if 'ku' not in LANG_INFO:
LANG_INFO['ku'] = {
'bidi': False,
'code': 'ku',
'name': 'Kurdish',
'name_local': 'Kurdî',
}
If your project is public code, pointing us to the repository would also
help us to help you!
Regards,
Claude
--
www.2xlibre.net
--
You received this message because you are subscribed to the Google Groups "Django
internationalization and localization" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-i18n.
For more options, visit https://groups.google.com/d/optout.