added language selection

This commit is contained in:
Tomislav R 2016-04-09 01:01:08 +02:00
parent 949ee20a8a
commit 1cc0358cb0
2 changed files with 14 additions and 0 deletions

View file

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