{% extends "base.html" %} {% load i18n %} {% load icons %} {% load translations %} {% load crispy_forms_tags %} {% load permissions %} {% block extra_meta %} {% endblock %} {% block breadcrumbs %}
  • {{ unit.translation.component.project }}
  • {{ unit.translation.component.name }}
  • {{ unit.translation.language }}
  • {% trans "translate" %}
  • {% endblock %} {% block content %} {% include "show-component-state.html" with object=unit.translation.component %} {% perm 'unit.edit' unit as user_can_translate %} {% perm 'suggestion.add' unit 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 'memory.view' unit.translation as user_can_use_tm %} {% perm 'source.edit' unit.translation as user_can_edit_source %} {% perm 'unit.check' unit.translation as user_can_ignore_check %} {% 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 %} {% icon "flash.svg" %} {% trans "Zen" %} {% endif %} {% icon "settings.svg" %}
    {% with comments=unit.get_comments nearby=unit.nearby nearby_keys=unit.nearby_keys shapings=unit.shapings%}
    {% icon "link.svg" %}

    {% if unit.translation.is_source %}{% trans "Source string" %}{% else %}{% trans "Translation" %}{% endif %} {% if unit.readonly %}{% trans "Read only" %}{% 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 %} {% icon "pencil.svg" %} {% endif %} {% format_translation secondary_unit.target secondary_unit.translation.language secondary_unit.translation.plural search_match=search_query num_plurals=unit.translation.plural.number unit=secondary_unit %}
    {% 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_source %} {% if unit.context %}
    {% format_translation unit.context unit.translation.component.project.source_language search_match=search_query num_plurals=unit.translation.plural.number %}
    {% endif %} {% else %} {% if unit.note %}
    {% format_translation unit.note unit.translation.component.project.source_language %}
    {% endif %} {% if unit.extra_context %}
    {% format_translation unit.extra_context unit.translation.component.project.source_language %}
    {% endif %} {% if not user.profile.hide_source_secondary or not secondary %}
    {% if unit.context %}
    {{ unit.context }}
    {% endif %} {% perm 'unit.edit' unit.source_info as user_can_edit_template %} {% icon "pencil.svg" %} {% 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 %}
    {% include "snippets/embed-units.html" with current_unit=unit units=nearby %}
    {% if nearby_keys %}
    {% include "snippets/embed-units.html" with current_unit=unit units=nearby_keys %}
    {% endif %} {% if shapings %}
    {% include "snippets/embed-units.html" with current_unit=unit units=shapings %}
    {% endif %} {% if unit.suggestions %}
    {% csrf_token %} {% include "snippets/suggestions.html" with suggestions=unit.suggestions %}
    {% endif %} {% if others.total %}
    {% 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" %} {% loading_icon "mt" %}
    {% endif %} {% if user_can_use_tm %}
    {% trans "Translation" %} {% trans "Source" %} {% trans "Origin" %} {% trans "Similarity" %} {% loading_icon "memory" %}
    {% 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.check_set.all as checks %} {% if checks or unit.suggestions or shapings %}

    {% trans "Things to check" %}

    {% if unit.suggestions %}
    {% documentation_icon 'user/translating' 'suggestions' right=True %} {% icon "suggest.svg" %} {% trans "Suggestions" %}

    {% blocktrans count count=unit.suggestions|length %}There is {{ count }} suggestion for this string.{% plural %}There are {{ count }} suggestions for this string.{% endblocktrans %}

    {% trans "View" %}

    {% endif %} {% for check in checks %}
    {% documentation_icon 'user/checks' check.check_obj.doc_id right=True %} {% icon "alert.svg" %} {{ check.get_name }}

    {{ check.get_description }}

    {% with fixup=check.get_fixup_json %} {% if fixup %}

    {% trans "Fix string" %}

    {% endif %} {% endwith %} {% if not check.is_enforced %}

    {% if user_can_ignore_check %} {% trans "Dismiss" %} {% if user_can_edit_source %} {% trans "Dismiss for all languages" %} {% endif %} {% endif %} {% trans "Reset" %}

    {% endif %}
    {% endfor %} {% if comments %}
    {% documentation_icon 'user/translating' 'comments' right=True %} {% icon "comment.svg" %} {% trans "Comments" %}

    {% blocktrans count count=comments|length %}There is {{ count }} comment for this string.{% plural %}There are {{ count }} comments for this string.{% endblocktrans %}

    {% trans "View" %}

    {% endif %} {% if shapings %}
    {% documentation_icon 'user/translating' 'shapings' right=True %} {% icon "shaping.svg" %} {% trans "Shapings" %}

    {% blocktrans count count=shapings|length %}There is {{ count }} shaping for this string.{% plural %}There are {{ count }} shapings for this string.{% endblocktrans %}

    {% trans "View" %}

    {% endif %}
    {% endif %} {% endwith %}

    {% icon "pencil.svg" %} {% loading_icon "glossary-add" %} {% trans "Glossary" %}

    {% include "snippets/glossary.html" %}
    {{ unit.translation.component.project.source_language }} {{ unit.translation.language }}
    {% if user_can_add_dictionary %}
    {% csrf_token %}
    {% endif %}

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

    {% with unit.source_info.screenshots.order as screenshots %} {% if screenshots or user_can_add_screenshot %}
    {% if user_can_add_screenshot %} {% icon "pencil.svg" %}{% endif %} {% trans "Screenshot context" %}
    {% for screenshot in screenshots %} {% include "screenshots/screenshot_show.html" %} {% empty %} {% trans "No screenshot currently associated!" %} {% endfor %}
    {% endif %} {% endwith %} {% if unit.context or unit.extra_context or user_can_edit_source %}
    {% if user_can_edit_source %} {% icon "pencil.svg" %}{% endif %} {% trans "Context" %}
    {% if user_can_edit_source and not unit.extra_context and not unit.context %} {% trans "No context currently associated!" %} {% endif %} {% if unit.extra_context %}

    {{ unit.extra_context }}

    {% endif %} {% if unit.context %} {% format_translation unit.context unit.translation.component.project.source_language search_match=search_query simple=True %} {% endif %}
    {% endif %} {% if unit.labels or user_can_edit_source %}
    {% if user_can_edit_source %} {% icon "pencil.svg" %}{% endif %} {% trans "Labels" %}
    {% for label in unit.labels.all %} {{ label }} {% empty %} {% trans "No labels currently set!" %} {% endfor %}
    {% endif %} {% if unit.all_flags or user_can_edit_source %}
    {% if user_can_edit_source %} {% icon "pencil.svg" %}{% endif %} {% trans "Flags" %}
    {% if unit.all_flags %} {{ unit.all_flags.format }} {% else %} {% trans "No flags currently set!" %} {% endif %}
    {% endif %} {% if unit.location %}
    {% trans "Source string location" %}
    {% get_location_links user.profile unit %}
    {% endif %} {% if unit.comment %}
    {% trans "Comments" %}
    {{ unit.comment }}
    {% endif %}
    {% trans "Source string age" %}
    {{ unit.timestamp|naturaltime }}
    {% if unit.position %}
    {% trans "Translation file" %}
    {% blocktrans with unit.translation.filename as filename and unit.position as position %}{{ filename }}, string {{ position }}{% endblocktrans %}
    {% endif %}
    {% csrf_token %}
    {% endwith %} {% endblock %}