Hi...
I am trying inernationalization.
{% for lang in LANGUAGES %}
<option value="{{ lang.0}}" >{{ lang.1 }}</option>
{% endfor %}
This lists all the languages in the settings.py .
Can someone tell me how to get the current language being used in the
template? I managed to pass it from my view. but is there some way to
get this from the template?
I tried {% load i18n %}
{% get_current_language as LANGUAGE_CODE %} This gives the code.
please advice
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---