{% extends "base.html" %} {% load i18n %} {% load static %} {% load translations %} {% load crispy_forms_tags %} {% load permissions %} {% block extra_meta %} {% endblock %} {% block breadcrumbs %}
  • {{ unit.translation.subproject.project }}
  • {{ unit.translation.subproject.name }}
  • {{ unit.translation.language }}
  • {% trans "translate" %}
  • {% endblock %} {% block content %} {% can_translate user unit.translation as user_can_translate %} {% can_suggest user unit.translation as user_can_suggest %} {% can_accept_suggestion user unit.translation as user_can_accept_suggestion %} {% can_delete_suggestion user unit.translation as user_can_delete_suggestion %} {% can_vote_suggestion user unit.translation as user_can_vote_suggestion %} {% can_use_mt user unit.translation as user_can_use_mt %} {% can_edit_flags user unit.translation.subproject.project as user_can_edit_flags %} {% can_edit_priority user unit.translation.subproject.project as user_can_edit_priority %} {% if user_can_translate %} {% trans "Zen" %} {% endif %} {% with unit.translation as object %} {% include "show-lock.html" %} {% endwith %} {% with unit.get_comments as comments %}
    {% trans "Ctrl+Enter - Save" %}
    {% trans "Ctrl+Shift+Enter - Unmark fuzzy and save" %}
    {% trans "Alt+PageUp/PageDown/Home/End - Translation units navigation"%}
    {% trans "Alt+E - Focus translation editor"%}
    {% trans "Alt+C - Focus comment editor"%}
    {% trans "Alt+M - Shows machine translation tab"%}
    {% trans "Alt+N - Shows nearby strings tab"%}
    {% trans "Alt+S - Shows search tab"%}
    ">

    {% if unit.translation.is_template %}{% trans "Editing source string" %}{% else %}{% trans "Translate" %}{% endif %}

    {% csrf_token %} {% if antispam %}
    {{ antispam|crispy }}
    {% endif %} {% if secondary %} {% for secondary_unit in secondary %}
    {% format_translation secondary_unit.target secondary_unit.translation.language %}
    {% endfor %} {% endif %} {% if unit.previous_source and unit.fuzzy %}
    {% format_translation unit.source unit.translation.subproject.project.source_language diff=unit.previous_source num_plurals=unit.translation.language.nplurals %}
    {% endif %} {% if unit.translation.is_template %}
    {% format_translation unit.context unit.translation.subproject.project.source_language search_match=search_query num_plurals=unit.translation.language.nplurals %}
    {% else %} {% if not user.profile.hide_source_secondary or not secondary %}
    {% include "unit-context.html" %} {% with unit.translation.subproject.get_editable_template as edit_template %} {% if edit_template %} {% can_translate user edit_template as user_can_edit_template %} {% if user_can_edit_template %} {% endif %} {% endif %} {% endwith %} {% format_translation unit.source unit.translation.subproject.project.source_language search_match=search_query num_plurals=unit.translation.language.nplurals %}
    {% endif %} {% endif %} {{ form|crispy }}
    {% for item in unit.nearby %} {% endfor %}
    {% trans "Source" %}{% trans "Translation" %}{% trans "State" %}
    {{ item.position }} {% format_translation item.source unit.translation.subproject.project.source_language %} {% format_translation item.target unit.translation.language %} {% get_state_flags item %}
    {% if unit.suggestions %}
    {% csrf_token %} {% for suggestion in unit.suggestions %}
    {% if suggestion.user %} {% blocktrans with suggestion.get_user_display as user %}{{ user }} has suggested{% endblocktrans %} {% else %} {% trans "Anonymous user has suggested" %} {% endif %}
    {% format_translation suggestion.target unit.translation.language unit.target %} {% if user_can_vote_suggestion %}

    {% blocktrans count count=suggestion.get_num_votes %}{{ count }} vote{% plural %}{{ count }} votes{% endblocktrans %}

    {% endif %}
    {% if user_can_vote_suggestion %} {% endif %} {% if user_can_accept_suggestion %} {% endif %} {% if user_can_delete_suggestion %} {% endif %}
    {% endfor %}
    {% endif %} {% if others %}
    {% for item in others %} {% endfor %}
    {% trans "Component" %}{% trans "Translation" %}{% trans "State" %}
    {{ item.translation.subproject }} {% format_translation item.target item.translation.language unit.target %} {% get_state_flags item %} {% if user_can_translate %} {% trans "Use this translation" %} {% endif %}
    {% endif %}

    {% trans "Loading…" %}

    {% if user_can_use_mt %}
    {% trans "Translation" %} {% trans "Source" %} {% trans "Service" %}
    {% endif %} {% if comments or perms.trans.add_comment %}
    {% if comments %} {% with this_unit_url as next_url %} {% include "list-comments.html" %} {% endwith %} {% endif %} {% if perms.trans.add_comment %}
    {% csrf_token %}

    {% trans "New comment" %}

    {% trans "You can share comments about this string with other translators and developers." %}

    {{ comment_form|crispy }}
    {% endif %}
    {% endif %}
    {% with unit.active_checks as checks %} {% if checks or unit.suggestions or others%}

    {% trans "Things to check" %}

    {% if unit.suggestions %}
    {% trans "Suggestions" %} {{ unit.suggestions.count }}
    {% endif %} {% if others %} {% endif %} {% show_checks unit.translation.subproject.project checks user %} {% if comments %}
    {% trans "Comments" %} {{ comments.count }}
    {% endif %}
    {% endif %} {% endwith %}

    {% trans "Glossary" %}

    {% csrf_token %} {% for item in glossary %} {% empty %} {% endfor %}
    {% trans "Source" %} {% trans "Translation" %}
    {{ item.source }} {% format_translation item.target unit.translation.language simple=True %} {% if user_can_translate or user_can_suggest %} {% trans "Copy" %} {% endif %}
    {% trans "No related strings were found in the glossary." %}
    {{ addword_form.source }} {{ addword_form.target }}

    {% trans "Source information" %}

    {% if unit.context %} {% endif %} {% if unit.flags or user_can_edit_flags %} {% endif %} {% include "unit-details.html" %} {% with unit.active_source_checks as checks %} {% if checks %} {% endif %} {% endwith %}
    {% trans "Context" %}
    {% format_translation unit.context unit.translation.subproject.project.source_language search_match=search_query simple=True %}
    {% trans "Flags" %}
    {{ unit.all_flags|join:", " }} {% if user_can_edit_flags %} {% endif %}
    {% trans "String priority" %}
    {{ unit.source_info.get_priority_display }} {% if user_can_edit_priority %} {% endif %}
    {% trans "Failing checks" %}
    {% show_checks unit.translation.subproject.project checks user %}
    {% if update_lock %} {% endif %} {% endwith %} {% endblock %}