It's rather easy to change LANGUAGE_CODE to a custom value in your
active settings file.
Anyway, I think that we could find technical solutions for any problem,
giving options to keep messages in English.
The main issue is to find a real will among Django developers to offer a
developing experience in other languages than English. Many still think
that you have to know English to develop with Django. Hopefully that
will evolve over time.
Claude
Le 15. 05. 17 à 14:12, Fòram na Gàidhlig a écrit :
Somebody in the bug raised the point that whether it's translated should
be a user/developer option. I agree - it can become very difficult to
search the internet for error messages when they're translated, and to
deal with bug reports where all error messages are localized.
Anything the user sees in the UI should be translated, command line
should be up to the user (except for help-related stuff like command
descriptions, man pages etc., which should be translatable in all cases).
Sgrìobh Claude Paroz na leanas 13/05/2017 aig 19:39:
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!
--
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.