languages.html 1.09 KB
Newer Older
1
2
3
4
5
6
7
8
9
{% extends "base.html" %}
{% load url from future %}
{% load i18n %}

{% block chapeau %}
 
    <h1>{% trans "Languages" %}</h1>

        <p class="filet">
Christophe Siraut's avatar
Typos.    
Christophe Siraut committed
10
        {% trans "Nuages is available in many languages." %} {% trans "The preferences of your browser and the availbale languages decide in which language is presented. You can manually select language with some browser plugins." %} {% trans "At the moment we also provide a language cookie." %}
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
        </p>
        {% get_available_languages as languages %}
        {% trans "Set language cookie" %}:
        <form style="display:inline;" name="setLang{{ lang_name }}" action="/i18n/setlang/" method="POST">{% csrf_token %}
        {% for lang_code, lang_name in languages %}
            {% language lang_code %}
            <input name="next" type="hidden" value="/" />
            <input type="hidden" name="language" value="{{ lang_code }}" />
            <a href="#" onclick="document.setLang{{ lang_name }}.submit();return false;">{{ lang_name }}</a>
            {% endlanguage %}
        {% endfor %} 
        </form>
        </p>

{% endblock %}