Re: Translation of error messages

2017-05-15 Thread Claude Paroz

Le 15. 05. 17 à 20:14, Ricardo Mendonça Ferreira a écrit :

Thanks, Claude! That was enlightening (and reassuring)! :)

My main concern was if the uses would see any English error messages at
all. Of course they might (depending of how I set up my app, server,
etc.), but that would be an exception (no pun intended).


Sure, you are not supposed to run a production site with DEBUG=True!

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 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.


Re: Translation of error messages

2017-05-15 Thread Ricardo Mendonça Ferreira
Thanks, Claude! That was enlightening (and reassuring)! :)

My main concern was if the uses would see any English error messages at 
all. Of course they might (depending of how I set up my app, server, etc.), 
but that would be an exception (no pun intended).

-- 
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.


Re: Translation of error messages

2017-05-15 Thread Claude Paroz
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:





The above image was produced by following the 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 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.


Re: Translation of error messages

2017-05-13 Thread Claude Paroz

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:




The above image was produced by following the 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.


Translation of error messages

2017-05-13 Thread Ricardo Mendonça Ferreira
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:



The above image was produced by following the 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.