xmpp.chapril.org-conversejs/html/translation.html
2012-03-05 14:08:35 +01:00

47 lines
1.4 KiB
HTML

{% extends "base.html" %}
{% load url from future %}
{% load i18n %}
{% block breadcums %}
<li><a href="{{ object.subproject.project.get_absolute_url }}">{{ object.subproject.project }}</a></li>
<li><a href="{{ object.subproject.get_absolute_url }}">{{ object.subproject.name }}</a></li>
<li><a href="{{ object.get_absolute_url }}">{% trans object.language.name %}</a></li>
{% endblock %}
{% block content %}
{% include "translation_info.html" %}
{% with object.get_checks as checks%}
{% if checks %}
<h2>{% trans "Strings to check" %}</h2>
<ul>
{% for c in checks %}
<li><a href="{{ object.get_translate_url }}?type={{ c.0 }}">{{ c.1 }}</a></li>
{% endfor %}
</ul>
{% endif %}
{% endwith %}
<h2>{% trans "Download" %}</h2>
{% with object.get_download_url as download_url %}
<p>{% blocktrans %}You can <a href="{{ download_url }}">download</a> file for offline translation.{% endblocktrans %}</p>
{% endwith %}
{% if user.is_authenticated %}
<h2>{% trans "Upload" %}</h2>
<p>{% trans "Uploaded file will be merged with current translation. In case you want to overwrite already translated strings, don't forget to enable it." %}</p>
<form action="{% url 'trans.views.upload_translation' project=object.subproject.project.slug subproject=object.subproject.slug lang=object.language.code %}" method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<p><input type="submit" value="{% trans "Upload" %}" /></p>
</form>
{% endif %}
{% endblock %}