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

78 lines
2.9 KiB
HTML
Raw Normal View History

{% extends "base.html" %}
{% load i18n %}
2012-03-01 11:11:25 +01:00
{% load weblate %}
2012-03-01 10:22:20 +01:00
{% 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>
2012-03-01 10:46:50 +01:00
<li><a href="{{ unit.translation.get_translate_url }}">{% trans "translate" %}</a></li>
2012-03-01 10:22:20 +01:00
{% endblock %}
{% block content %}
{% include "translation_info.html" %}
2012-02-28 15:09:03 +01:00
<h2>{% trans "Translate" %}</h2>
2012-02-28 15:36:48 +01:00
<p>{% blocktrans with unit.position as position %}Showing string {{ position }} out of {{ total }}.{% endblocktrans %}</p>
2012-02-28 15:40:08 +01:00
<form action="{{ unit.translation.get_translate_url }}" method="post">
{% csrf_token %}
<input type="hidden" name="type" value="{{ type }}" />
2012-02-28 15:40:51 +01:00
<input type="hidden" name="oldpos" value="{{ unit.position }}" />
<table class="translator">
2012-03-01 13:25:20 +01:00
<tr><th class="source">{% trans "Source" %}</th><th>{% if unit.is_plural %}{% trans "Translations" %}{% else %}{% trans "Translation" %}{% endif %}<th></tr>
2012-03-01 11:11:25 +01:00
<tr><td class="translatetext">{{ unit.source|fmttranslation }}</td><td>
2012-02-29 11:41:08 +01:00
{{ form.checksum }}
{{ form.target }}
<br />
{{ form.fuzzy }}<label for="id_fuzzy">{% trans "Fuzzy" %}</label>
</td></tr>
2012-03-01 11:01:48 +01:00
<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 %}
2012-03-01 11:28:51 +01:00
<table>
2012-03-01 11:01:48 +01:00
{% for suggestion in suggestions %}
2012-03-01 11:28:51 +01:00
<tr><td class="translatetext">{{ suggestion.target|fmttranslation }}</td></tr>
<tr><td>
{% blocktrans with suggestion.user.get_full_name as user %}Suggested by {{ user }}{% endblocktrans %}
<div class="suggestionactions">
2012-03-01 11:39:58 +01:00
<a href="{{ suggestion.get_translate_url }}?type={{ type }}&amp;oldpos={{ oldpos }}&amp;accept={{ suggestion.id }}" class="sug-accept">Accept</a>
<a href="{{ suggestion.get_translate_url }}?type={{ type }}&amp;oldpos={{ oldpos }}&amp;delete={{ suggestion.id }}" class="sug-delete">Delete</a>
</div>
</td>
2012-03-01 11:01:48 +01:00
{% endfor %}
2012-03-01 11:28:51 +01:00
</table>
2012-03-01 11:01:48 +01:00
{% else %}
{% trans "There are no suggestions for this string." %}
{% endif %}
{% endwith %}
</td>
</tr>
2012-02-29 11:21:06 +01:00
<tr><th>{% trans "Flags" %}</th></tr>
<tr><td>{{ unit.flags }}</td></tr>
2012-02-29 13:19:02 +01:00
<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>
2012-02-29 14:50:50 +01:00
{% if user.is_authenticated %}
2012-02-29 14:46:18 +01:00
<input class="button" type="submit" value="{% trans "Save" %}" name="save" />
2012-02-29 14:52:09 +01:00
{% else %}
{% blocktrans %}<a href="/accounts/login/">Login</a> for saving translations.{% endblocktrans %}
2012-02-29 14:50:50 +01:00
{% endif %}
2012-02-29 14:46:18 +01:00
<input class="button" type="submit" value="{% trans "Suggest" %}" name="suggest" />
2012-02-29 13:19:02 +01:00
</td></tr>
</table>
2012-02-28 15:40:08 +01:00
</form>
{% endblock %}