xmpp.chapril.org-conversejs/html/translate.html
Michal Čihař d26cc87795 Style text
2012-03-01 11:02:04 +01:00

73 lines
2.4 KiB
HTML

{% extends "base.html" %}
{% load i18n %}
{% block breadcums %}
<li><a href="{{ unit.translation.subproject.project.get_absolute_url }}">{{ unit.translation.subproject.project }}</a></li>
<li><a href="{{ unit.translation.subproject.get_absolute_url }}">{{ unit.translation.subproject.name }}</a></li>
<li><a href="{{ unit.translation.get_absolute_url }}">{{ unit.translation.language.name }}</a></li>
<li><a href="{{ unit.translation.get_translate_url }}">{% trans "translate" %}</a></li>
{% endblock %}
{% block content %}
{% include "translation_info.html" %}
<h2>{% trans "Translate" %}</h2>
<p>{% blocktrans with unit.position as position %}Showing string {{ position }} out of {{ total }}.{% endblocktrans %}</p>
<form action="{{ unit.translation.get_translate_url }}" method="post">
{% csrf_token %}
<input type="hidden" name="type" value="{{ type }}" />
<input type="hidden" name="oldpos" value="{{ unit.position }}" />
<table class="translator">
<tr><th class="source">{% trans "Source" %}</th><th>{% trans "Translation" %}<th></tr>
{% if unit.is_plural %}
{% else %}
<tr><td class="translatetext">{{ unit.source }}</td><td>
{{ form.checksum }}
{{ form.target }}
<br />
{{ form.fuzzy }}<label for="id_fuzzy">{% trans "Fuzzy" %}</label>
</td></tr>
{% endif %}
<tr><th>{% trans "Location" %}</th>
<th>{% trans "Suggestions" %}</th>
</tr>
<tr><td>{{ unit.get_location_links }}</td>
<td colspan="3">
{% with unit.suggestions as suggestions %}
{% if suggestions %}
<ul>
{% for suggestion in suggestions %}
<li><span class="translatetext">{{ suggestion.target }}</span> by {{ suggestion.user }}</li>
{% endfor %}
</ul>
{% else %}
{% trans "There are no suggestions for this string." %}
{% endif %}
{% endwith %}
</td>
</tr>
<tr><th>{% trans "Flags" %}</th></tr>
<tr><td>{{ unit.flags }}</td></tr>
<tr><td class="right">
<a class="button" href="{{ unit.translation.get_translate_url }}?type={{ type }}&amp;oldpos={{ unit.position }}&amp;dir=back">{% trans "Previous" %}</a>
<a class="button" href="{{ unit.translation.get_translate_url }}?type={{ type }}&amp;oldpos={{ unit.position }}">{% trans "Next" %}</a>
</td><td>
{% if user.is_authenticated %}
<input class="button" type="submit" value="{% trans "Save" %}" name="save" />
{% else %}
{% blocktrans %}<a href="/accounts/login/">Login</a> for saving translations.{% endblocktrans %}
{% endif %}
<input class="button" type="submit" value="{% trans "Suggest" %}" name="suggest" />
</td></tr>
</table>
</form>
{% endblock %}