{% load url from future %} {% load i18n baseurl store_tags cleanhtml cache profile_tags locale %} {% get_current_language as LANGUAGE_CODE %} {% get_current_language_bidi as LANGUAGE_BIDI %} {% cache settings.CACHE_TIMEOUT unit_edit unit.id unit.mtime cantranslate cansuggest canreview report_target altsrcs profile.id LANGUAGE_CODE %}

{{ language.name }} / {{ project }} / {{ unit.store.path }}

{% blocktrans with id=unit.id %}String {{ id }}{% endblocktrans %}
{% if unit.getcontext and unit.locations != unit.context %} {% endif %} {% if unit.developer_comment or unit.locations %} {% endif %} {% with unit.get_terminology as terms %} {% if terms %} {% endif %} {% endwith %}
{% if unit.get_qualitychecks.count %}
{% trans "Failing checks:" %}
    {% for check in unit.get_qualitychecks.iterator %}
  • {{ check.display_name }} {% if canreview %} {% endif %}
  • {% endfor %}
{% endif %}
{{ form.id.as_hidden }} {{ form.index.as_hidden }} {{ form.source_f.as_hidden }}
{% for altunit in altsrcs %}
{{ altunit.store.translation_project.language.name }}
{% if cansuggest or cantranslate %}
{% endif %}
{% for i, target, title in altunit|pluralize_target %}
{{ target|fancy_highlight }}
{% endfor %}
{% endfor %}
{{ source_language.name }}
{% if cansuggest or cantranslate %}
{% if report_target %} {% endif %}
{% endif %}
{% for i, source, title in unit|pluralize_source %}
{{ source|fancy_highlight }}
{% endfor %}
{% if cantranslate %} {% endif %} {% if cansuggest %} {% endif %} {% if cansuggest and cantranslate %} {% endif %}
{{ form.state }} {{ form.state.label_tag }}
{% if unit.submitted_by %}
{{ unit.submitted_by.username }}
{% endif %} {{ form.target_f }} {% if unit.submitted_by and unit.submitted_on %}
{% with reviewer=unit.get_reviewer %} {% if reviewer %}
({% blocktrans with profile_url=reviewer.get_absolute_url%}reviewed by {{ reviewer }}{% endblocktrans %}) {% endif %} {% endwith %}
{% endif %} {% if language.specialchars or language.direction == "rtl" %} {% if cantranslate or cansuggest %}
{% if language.direction == "rtl" %} RLM LRM RLE LRE RLO LRO PDF ZWJ ZWNJ {% endif %} {% for specialchar in language.specialchars %} {% if not specialchar.isspace %} {{ specialchar }} {% else %} {% endif %} {% endfor %}
{% endif %} {% endif %}
{% if cantranslate %}{% trans "Add Comment" %}{% endif %} {% if unit.submission_set.count %} {% trans 'Show Timeline' %} {% trans 'Hide Timeline' %} {% endif %} {% if cantranslate %}

{{ comment_form.translator_comment }}

{% endif %}
{% if unit.translator_comment %}
{% include "unit/comment.html" %}
{% endif %} {% if suggestions %}
{% trans 'User suggestions' %}
{% for sugg, score in suggestions %}
{% for i, target, diff, title in sugg|pluralize_diff_sugg %}
{% if sugg.user %}
{{ sugg.user.username }}
{% endif %}
{% block votes %}{% endblock %} {% if canreview %} {% else %} {% if user.is_authenticated and profile == sugg.user %} {% endif %} {% endif %}
{{ diff }}
{% block suggestion_comment %}{% endblock %}
{% endfor %}
{% endfor %}
{% endif %}
{% endcache %}