On Aug 5, 2:35 am, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 8/4/07, Aljosa Mohorovic <[EMAIL PROTECTED]> wrote:
>
> > i'm trying to find a way to translate newforms errors but i can't find
> > it in docs.
> > does anybody know if this is documented somewhere?
>
> Newforms error messages should be Unicode strings, so use the
> 'ugettext' or 'ugettext_lazy' functions in django.utils.translation to
> mark them for translation:
>
> http://www.djangoproject.com/documentation/i18n/#how-to-specify-trans...

my problem with this is that i don't know how many error messages are
there.
EmailField can have errors for unset value or invalid email address
and other fields something else.

i was thinking that maybe there is some solution related with
LANGUAGE_CODE in settings.py?
if i set language to something else then en-us error messages should
be translated.
i think it's bad that everybody who uses non en-us language code
should translate common messages.

can somebody comment on this and explain what part i didn't understand
or explain with more details how this should be done?

Aljosa


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to