{% extends "wiki/base.html" %}
{% set title = _('Select language | {document}')|f(document=document.title) %}
{% block title %}{{ page_title(title) }}{% endblock %}

{% block content %}

  <article id="select-locale">

    <h1>{{ _('Select a language to translate to:') }}</h1>
    <ul class="locales">
      {% for locale in settings.LANGUAGES %}
        {% if locale[0] != settings.WIKI_DEFAULT_LANGUAGE %}
          <li><a href="{{ url('wiki.translate', document_path=document.full_path)|urlparams(tolocale=locale[0]) }}">{{ locale[1] }} ({{ locale[0] }})</a></li>
        {% endif %}
      {% endfor %}
    </ul>

  </article>

{% endblock %}
