Browse Source

base.html: add language selector

pull/1/head
Hidden Z 14 years ago
parent
commit
eb14141371
  1. 10
      pyi2phosts/templates/base.html

10
pyi2phosts/templates/base.html

@ -29,6 +29,16 @@ @@ -29,6 +29,16 @@
<li><a href={% url pyi2phosts.postkey.views.addkey %}>Register a domain</a></li>
</ul>
</div>
<form action="/i18n/setlang/" method="post">
{% csrf_token %}
{% for lang in LANGUAGES %}
<input type="radio" value="{{ lang.0 }}" name="language" />
<img src="/static/{{ lang.0 }}.png" width="16" height="11" alt="{{ lang.0 }}"/>
{% endfor %}
<input type="submit" value="Set" />
</form>
{% endblock %}
<div class="main">

Loading…
Cancel
Save