Friday, August 6, 2010

Re: i18n form not working when in site root

On Fri, Aug 06, 2010 at 07:26:33AM -0700, Florin wrote:
> When I change the language from any site's page it works like it
> should, but when I go to the homepage (site's root) the
> "django_language" cookie is reset and the language form doesn't work
> anymore; it makes the POST request but it doesn't change the language.

Difficult to tell, Should Work(tm). Do you {% load i18n %} in your root
template, pass context_instance=RequestContext(Request) to
render_to_response and actually have translatable strings and
translations for them? If you already have that, publishing a minimal
example of the problem and stating Django version could help people help
you.

With kind regards,
Baurzhan.

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