added language selection
This commit is contained in:
parent
24badb1a9c
commit
c41bbc1786
2 changed files with 14 additions and 0 deletions
|
@ -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">
|
||||
|
|
13
digitalglarus/templates/language_chooser.html
Normal file
13
digitalglarus/templates/language_chooser.html
Normal 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 %}
|
Loading…
Reference in a new issue