{% 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 as user_can_translate %} {% can_suggest user unit.translation as user_can_suggest %} {% can_accept_suggestion user unit as user_can_accept_suggestion %} {% can_vote_suggestion user unit 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 %} {% can_add_screenshot user project as user_can_add_screenshot %} {% can_add_comment user project as user_can_add_comment %} {% can_add_dictionary user project as user_can_add_dictionary %} {% if user_can_translate %} {% trans "Zen" %} {% endif %} {% with unit.translation as object %} {% include "show-lock.html" %} {% endwith %} {% with unit.get_comments as comments and unit.nearby as nearby %}
      {% trans "Ctrl+Enter - Save" %}
    {% trans "Ctrl+Shift+Enter - Unmark review needed flag and save" %}
    {% trans "Alt+PageUp/PageDown/Home/End - Translation units navigation"%}
    {% trans "Ctrl+E - Focus translation editor"%}
    {% trans "Ctrl+Q - Focus comment editor"%}
    {% trans "Ctrl+M - Shows machine translation tab"%}
    {% trans "Ctrl+J - Shows nearby strings tab"%}
    {% trans "Ctrl+S - Shows search tab"%}
    {% trans "Ctrl+O - Copies source string"%}
    {% trans "Ctrl+T - Toggle edit needed flag"%}
    ">

    {% 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 %}
    {% can_translate user secondary_unit as user_can_edit_secondary %} {% if user_can_edit_secondary %} {% endif %} {% if user.profile.hide_source_secondary %} {% format_translation secondary_unit.target secondary_unit.translation.language secondary_unit.translation.plural search_match=search_query num_plurals=unit.translation.plural.number unit=unit %} {% else %} {% format_translation secondary_unit.target secondary_unit.translation.language secondary_unit.translation.plural %} {% endif %}
    {% 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.plural.number %}
    {% endif %} {% if unit.translation.is_template %}
    {% format_translation unit.context unit.translation.subproject.project.source_language search_match=search_query num_plurals=unit.translation.plural.number %}
    {% else %} {% if unit.comment %}
    {% format_translation unit.comment unit.translation.subproject.project.source_language %}
    {% endif %} {% if not user.profile.hide_source_secondary or not secondary %}
    {% if unit.context %}
    {{ unit.context }}
    {% endif %} {% with unit.translation.subproject.get_editable_template as edit_template %} {% if edit_template %} {% can_translate user translation=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.plural.number unit=unit %}
    {% endif %} {% endif %} {% crispy form %}
    {% for item in 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 unit.translation.plural %} {% get_state_flags item %}
    {% if unit.suggestions %}
    {% csrf_token %} {% for suggestion in unit.suggestions %}
    {{ suggestion.timestamp|naturaltime }} {% 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.translation.plural %}

    {% trans "Suggested change:" %}

    {% format_translation suggestion.target unit.translation.language unit.translation.plural unit.target %} {% if user_can_vote_suggestion %}

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

    {% endif %}
    {% if user.is_authenticated and user_can_vote_suggestion %} {% endif %} {% if user_can_accept_suggestion %} {% endif %} {% can_delete_suggestion user unit.translation suggestion as user_can_delete_suggestion %} {% if user_can_delete_suggestion %} {% endif %}
    {% endfor %}
    {% endif %} {% if others.exists %}
    {% if others.same %} {% for item in others.same %} {% include "trans/other-row.html" %} {% endfor %} {% endif %} {% if others.matching %} {% for item in others.matching %} {% include "trans/other-row.html" %} {% endfor %} {% endif %} {% if others.source %} {% for item in others.source %} {% include "trans/other-row.html" %} {% endfor %} {% endif %} {% if others.context %} {% for item in others.context %} {% include "trans/other-row.html" %} {% endfor %} {% endif %}
    {% trans "Component" %}{% trans "Translation" %}
    {% blocktrans count count=others.matching|length %}Following string has same context and same source.{% plural %}Following strings have same context and same source.{% endblocktrans %}
    {% blocktrans count count=others.source|length %}Following string has different context but same source.{% plural %}Following strings have different contexts but same source.{% endblocktrans %}
    {% blocktrans count count=others.context|length %}Following string has different source but same context.{% plural %}Following strings have different sources but same context.{% endblocktrans %}
    {% endif %}

    {% trans "Loading…" %}

    {% trans "Loading…" %}

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

    {% trans "New comment" %}

    {% trans "Comment on this string for fellow translators and developers to read." %}

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

    {% trans "Things to check" %}

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

    {% trans "Glossary" %}

    {% include "glossary-embed.html" %} {% if user_can_add_dictionary %} {% endif %}
    {% trans "Source" %} {% trans "Translation" %}
    {{ addword_form.source }} {{ addword_form.target }}

    {% documentation_icon 'user/translating' 'source-context' right=True %} {% trans "Source information" %}

    {% with unit.source_info.screenshots.all as screenshots %} {% if screenshots or user_can_add_screenshot %} {% endif %} {% endwith %} {% if unit.context %} {% endif %} {% if unit.all_flags or user_can_edit_flags %} {% endif %} {% include "unit-details.html" %} {% with unit.active_source_checks as checks %} {% if checks %} {% endif %} {% endwith %}
    {% if user_can_add_screenshot %} {% endif %} {% trans "Screenshot context" %}
    {% for screenshot in screenshots %} {% include "screenshots/screenshot_show.html" %} {% empty %} {% trans "No screenshot currently associated!" %} {% endfor %}
    {% trans "Context" %}
    {% format_translation unit.context unit.translation.subproject.project.source_language search_match=search_query simple=True %}
    {% if user_can_edit_flags %} {% endif %} {% trans "Flags" %}
    {% if unit.all_flags %} {{ unit.all_flags|join:", " }} {% else %} {% trans "No flags currently set!" %} {% endif %}
    {% if user_can_edit_priority %} {% endif %} {% trans "String priority" %}
    {{ unit.source_info.get_priority_display }}
    {% trans "Failing checks" %}
    {% show_checks unit.translation.subproject.project checks user %}
    {% endwith %} {% endblock %}