Merge pull request #18 from tmslav/master

fixed language choosing for digitalglarus
This commit is contained in:
tmslav 2016-04-09 03:57:26 +02:00
commit 8c72f291e5
2 changed files with 14 additions and 0 deletions

View file

@ -60,6 +60,7 @@
{% cms_toolbar %}
<div class="brand">Digital Glarus</div>
<div class="address-bar">The Swiss IT Valley | Schwanden, 8762 GL Switzerland | From 2015.10.13</div>
<div>{% language_chooser "language_chooser.html" %}</div>
<!-- Navigation -->
<nav class="navbar navbar-default" role="navigation">

View file

@ -0,0 +1,13 @@
{% load i18n menu_tags %}
{% if languages|length > 1 %}
<div class="center-block"">
<ul class="list-inline center-block language-chooser-list">
{% for language in languages %}
<li class="lang{% if current_language == language.0 %} active{% endif %}">
<a href="{% page_language_url language.0 %}"
title="{% trans "Change to language:" %} {{ language.1 }}">{{ language.1 }}</a>
</li>
{% endfor %}
</ul>
</div>
{% endif %}