Hi Ricardo,
Until now, developer-facing strings are not translated in Django.
Read https://code.djangoproject.com/ticket/13860 and you'll see I
already tried to convince other devs :-)
You can still try to relaunch a discussion on the main django-developers
list if you have the energy.
Claude
Le 13. 05. 17 à 20:13, Ricardo Mendonça Ferreira a écrit :
Hello, Django i18n World!
I've just started playing around with Django 1.11, and I noticed that
there are no translations for most (if any) Django error messages.
I have set [LANGUAGE_CODE = 'pt-br'] and the admin pages are in
Portuguese, yet 404 errors and others are still in English:
<https://lh3.googleusercontent.com/-Z1MfVshrKfw/WRdIXeRHxKI/AAAAAAAAJsQ/VKltY7_w2D8XZmp84qfjR5bZhWIIGvAtgCLcB/s1600/Django_404.png>
The above image was produced by following the tutorial03
<https://docs.djangoproject.com/en/1.11/intro/tutorial03/>.
Notice, for example, the "No Question matches the given query", produced
by the shortcuts module.
In /usr/local/lib/python3.5/dist-packages/django/shortcuts.py the
strings (such as 'No %s matches the given query.') are not
"translatable" (the module doesn't even import ugettext).
Is this a "bug" or a "feature"?
I.e., are error messages not being translated for a specific reason? And
if so, what reason? Or is it possible to tag them for translation in the
next release?
Thanks!
--
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 django-i18n+unsubscr...@googlegroups.com.
To post to this group, send email to django-i18n@googlegroups.com.
Visit this group at https://groups.google.com/group/django-i18n.
For more options, visit https://groups.google.com/d/optout.