{# vim: set ts=2 et sts=2 sw=2: #}
{% extends "wiki/base.html" %}
{% set title = _('Select language | {document}')|f(document=document.title) %}
{% block title %}{{ page_title(title) }}{% endblock %}
{% set crumbs = [(url('wiki.category', document.category), document.get_category_display()),
                 (document.get_absolute_url(), document.title),
                 (None, _('Select language'))] %}

{% block content %}
<section id="content">
  <div class="wrap">
    <div id="content-main" class="full">
  <article id="select-locale" class="main">
    <h1>{{ _('Select a language to translate to:') }}</h1>
    <ul class="locales">
      {% for locale in settings.LANGUAGE_CHOICES %}
        {% 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>
    </div>
   </div>
</section>
{% endblock %}
