xmpp.chapril.org-conversejs/html/translation.html

47 lines
1.4 KiB
HTML
Raw Normal View History

2012-02-27 11:34:32 +01:00
{% extends "base.html" %}
2012-03-04 09:46:40 +01:00
{% load url from future %}
2012-02-27 11:58:55 +01:00
{% load i18n %}
2012-02-27 11:34:32 +01:00
2012-03-01 10:22:20 +01:00
{% 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>
2012-03-02 15:29:58 +01:00
<li><a href="{{ object.get_absolute_url }}">{% trans object.language.name %}</a></li>
2012-03-01 10:22:20 +01:00
{% endblock %}
2012-02-27 11:34:32 +01:00
{% block content %}
2012-02-28 13:17:56 +01:00
{% include "translation_info.html" %}
2012-02-27 11:34:32 +01:00
2012-02-28 14:50:20 +01:00
{% with object.get_checks as checks%}
{% if checks %}
<h2>{% trans "Strings to check" %}</h2>
<ul>
{% for c in checks %}
2012-02-28 14:55:34 +01:00
<li><a href="{{ object.get_translate_url }}?type={{ c.0 }}">{{ c.1 }}</a></li>
2012-02-28 14:50:20 +01:00
{% endfor %}
</ul>
{% endif %}
{% endwith %}
2012-03-05 14:08:35 +01:00
<h2>{% trans "Download" %}</h2>
2012-03-01 17:11:19 +01:00
2012-03-05 14:08:35 +01:00
{% 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 %}
2012-03-01 17:11:19 +01:00
2012-03-04 09:37:22 +01:00
{% if user.is_authenticated %}
2012-03-05 14:08:35 +01:00
<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>
2012-03-05 10:02:35 +01:00
<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">
2012-03-04 09:46:16 +01:00
{% csrf_token %}
2012-03-05 14:08:35 +01:00
{{ form.as_p }}
<p><input type="submit" value="{% trans "Upload" %}" /></p>
2012-03-04 09:37:22 +01:00
</form>
{% endif %}
2012-02-27 11:34:32 +01:00
{% endblock %}