2009/3/23 Malcolm Tredinnick <[email protected]>:
> To solve your particular problem here, though, it might be possible to
> write your own version of the url template tag. Writing custom template
> tags is easy enough (and documented). Writing a templtae tag that more
> or less wraps another template tag is probably even more
> straightforward.
I've just tried this:
{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
{% ifequal LANGUAGE_CODE "en" %}
{% include "web/langswitcher-english.html"
%}
{% endifequal %}
{% ifequal LANGUAGE_CODE "es" %}
{% include "web/langswitcher-espanol.html"
%}
{% endifequal %}
...but LANGUAGE_CODE is set to "en" even when the page is correctly
displaying in Spanish. Is this a bug or am I doing it wrong?
jh
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---