2009/3/23 Malcolm Tredinnick <malc...@pointy-stick.com>: > 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 django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---