So,

I've got a i18n-enabled page which calls i18n/setlang with a JS call.
In this page, clicking on the link to "javascript:lang('es')"
correctly reloads the page and renders everything that is currently
translated in Spanish.

Yay.

Unfortunately, this:

          {% load i18n %}
          {% get_current_language as LANGUAGE_CODE %}
          {{ LANGUAGE_CODE }}

... prints "en" even when the page renders in Spanish.

Anybody got any ideas?

Thanks for your time.



John Handelaar
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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