{% extends "base.html" %} {% load i18n %} {% load static %} {% load translations %} {% load crispy_forms_tags %} {% load permissions %} {% block extra_meta %} {% endblock %} {% block breadcrumbs %}
  • {{ unit.translation.component.project }}
  • {{ unit.translation.component.name }} {% indicate_alerts object %}
  • {{ unit.translation.language }}
  • {% trans "translate" %}
  • {% endblock %} {% block content %} {% perm 'unit.edit' unit as user_can_translate %} {% perm 'suggestion.add' unit.translation as user_can_suggest %} {% perm 'suggestion.accept' unit as user_can_accept_suggestion %} {% perm 'suggestion.vote' unit.translation as user_can_vote_suggestion %} {% perm 'machinery.view' unit.translation as user_can_use_mt %} {% perm 'source.edit' unit.translation as user_can_edit_source %} {% perm 'screenshot.add' project as user_can_add_screenshot %} {% perm 'comment.add' project as user_can_add_comment %} {% perm 'glossary.add' project as user_can_add_dictionary %} {% if user_can_translate %} {% trans "Zen" %} {% endif %} {% include "show-component-state.html" with object=unit.translation.component %} {% with unit.get_comments as comments and unit.nearby as nearby %}
      Ctrl+Enter{% trans "Save" %} Ctrl+Shift+Enter{% trans "Unmark review needed flag and save" %} Alt+PageUp/PageDown/Home/End{% trans "Strings navigation" %} Ctrl+E{% trans "Focus translation editor" %} Ctrl+Q{% trans "Focus comment editor" %} Ctrl+M{% trans "Shows machine translation tab" %} Ctrl+J{% trans "Shows nearby strings tab" %} Ctrl+S{% trans "Shows search tab" %} Ctrl+O{% trans "Copies source string" %} Ctrl+Y{% trans "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 %}
    {% perm 'unit.edit' 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.component.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.component.project.source_language search_match=search_query num_plurals=unit.translation.plural.number %}
    {% else %} {% if unit.comment %}
    {% format_translation unit.comment unit.translation.component.project.source_language %}
    {% endif %} {% if unit.source_info.context %}
    {% format_translation unit.source_info.context unit.translation.component.project.source_language %}
    {% endif %} {% if not user.profile.hide_source_secondary or not secondary %}
    {% if unit.context %}
    {{ unit.context }}
    {% endif %} {% with unit.translation.component.get_editable_template as edit_template %} {% if edit_template %} {% perm 'unit.edit' edit_template as user_can_edit_template %} {% if user_can_edit_template %} {% endif %} {% endif %} {% endwith %} {% format_translation unit.source unit.translation.component.project.source_language search_match=search_query num_plurals=unit.translation.plural.number unit=unit %}
    {% endif %} {% endif %} {% crispy form %}
    {% for item in nearby %} {% if unit.translation.is_template %} {% else %} {% endif %} {% endfor %}
    {% if unit.translation.is_template %}{% trans "Context" %}{% else %}{% trans "Source" %}{% endif %}{% trans "Translation" %}{% trans "State" %}
    {{ item.position }}{% format_translation item.context unit.translation.component.project.source_language %}{% format_translation item.source unit.translation.component.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 %} {% perm 'suggestion.delete' suggestion unit.translation as user_can_delete_suggestion %} {% if user_can_delete_suggestion %} {% if has_antispam %} {% endif %} {% 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" with object=unit.translation %} {% 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.component.project checks user %} {% if comments %}
    {% trans "Comments" %} {{ comments.count }}
    {% endif %}
    {% endif %} {% endwith %}
    {% csrf_token %} {{ addword_form.words }}

    {% trans "Glossary" %}

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

    {% 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 or unit.source_info.context or user_can_edit_source %} {% if user_can_edit_source and not unit.source_info.context and not unit.context %} {% endif %} {% if unit.source_info.context %} {% endif %} {% if unit.context %} {% endif %} {% endif %} {% if unit.all_flags or user_can_edit_source %} {% 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 %}
    {% if user_can_edit_source %} {% endif %} {% trans "Context" %}
    {% trans "No context currently associated!" %}
    {{ unit.source_info.context }}
    {% format_translation unit.context unit.translation.component.project.source_language search_match=search_query simple=True %}
    {% if user_can_edit_source %} {% endif %} {% trans "Flags" %}
    {% if unit.all_flags %} {{ unit.all_flags|join:", " }} {% else %} {% trans "No flags currently set!" %} {% endif %}
    {% if user_can_edit_source %} {% endif %} {% trans "String priority" %}
    {{ unit.source_info.get_priority_display }}
    {% trans "Failing checks" %}
    {% show_checks unit.translation.component.project checks user %}
    {% endwith %} {% endblock %}