Monday, September 6, 2010

Re: how do forms select language to render?

On Sep 5, 10:26 pm, Aljoša Mohorović <aljosa.mohoro...@gmail.com>
wrote:
> if django.utils.translation.get_language() and LANGUAGE_CODE returns
> one language what does form.as_p use that it renders localized stuff
> in another language?
>
> Aljosa Mohorovic


Forms aren't special in any regard - they follow the usual rules for
translations as described here:
http://docs.djangoproject.com/en/1.2/topics/i18n/deployment/#how-django-discovers-language-preference
--
DR.

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment