Created
June 25, 2014 19:16
-
-
Save mkoistinen/1de0a947453ffd3e0527 to your computer and use it in GitHub Desktop.
The custom language choose template I used in the screencast: I18N Apps + django CMS (http://youtu.be/CcADEc80Jps)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% load i18n menu_tags %}{% get_available_languages as languages %}{% get_language_info for LANGUAGE_CODE as lang %} | |
<li><span class="current-language">{{ lang.code|upper }}<i class="drop"></i></span> | |
<ul>{% for language in languages %} | |
<li class="{% ifequal current_language language.0 %}selected{% endifequal %}"><a href="{% page_language_url language.0 %}">{{ language.0|language_name_local|capfirst }}</a></li>{% endfor %} | |
</ul> | |
</li> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment