{% extends "wiki/base.html" %} {% from "includes/error_list.html" import errorlist %} {% from "includes/common_macros.html" import content_editor %} {% set title = _('Translate Article | {document}')|f(document=parent.title) %} {% block title %}{{ page_title(title) }}{% endblock %} {% block bodyclass%}translate{% endblock %} {% block extrahead %} {{ css('home') }} {% endblock %} {% block site_css %} {{ super() }} {{ css('wiki-edit') }} {{ css('jquery-ui') }} {% endblock %} {% block content %} {% set language = settings.LANGUAGES_DICT[locale.lower()] %}
{{ csrf() }}

{{ _('Translating {title}')|fe(title=parent.title) }}

{{ _('Translating article to {locale}' )|f(locale=language) }}.
{% include 'wiki/includes/page_buttons.html' %}
{% include 'wiki/includes/translate_description.html' %} {% if revision_form %}
{{ _('Translate Content') }} {{ errorlist(revision_form) }} {# TODO: restore keywords and summary when we restore search app
  • {{ _('Keywords:') }}
    {{ based_on.keywords }}
    {{ revision_form.keywords|safe }}
  • {{ _('Search result summary:') }}
    {{ based_on.summary }}
    {{ revision_form.summary|safe }}
#} {% if document.current_revision and document.current_revision.based_on %} {% if parent.current_revision != document.current_revision.based_on %} {# Diff between the English version the current translation is based on and the current English version. #} {% set revision_from = document.current_revision.based_on %} {% set revision_to = parent.current_revision %} {% include 'wiki/includes/revision_diff.html' %} {# TODO: 'change revisions' link and modal selector #} {% endif %} {% endif %}

{{ _('Approved {default_locale} version:')|f(default_locale=settings.LANGUAGES_DICT[settings.WIKI_DEFAULT_LANGUAGE.lower()]) }}

{{ based_on.content|safe }}

{{ _('Tags') }}

{% set parent_tags = parent.tags.all() %}
{% if parent_tags | length %} {% else %}

{{ _('This document has no tags.') }}

{% endif %}
{% include 'wiki/includes/guide_links.html' %}

{{ _('{locale} translation:')|f(locale=language) }}

{{ content_editor(revision_form.content) }}
{{ revision_form.hidden_fields()|join|safe }}
 

{{ _('Tags') }}

{% trans url=devmo_url('Project:MDN/Contributing/Tagging_standards') %} Categorize the article. It will make the article findable under the right filters in the search engine. Read the Tagging Guide. {% endtrans %}

{{_('Localization flags')}}

{{ revision_form.localization_tags|safe }}
{% include 'wiki/includes/revision_comment.html' %} {% include 'wiki/includes/review_tags.html' %}
{% endif %}
{% include 'wiki/includes/wiki_notifier.html' %}
{% include 'wiki/includes/attachment_list.html' %} {% endblock %} {% block js %} {{ js('jquery-ui') }} {% include 'wiki/includes/tag_suggestions.html' %} {% include 'wiki/includes/ckeditor_scripts.html' %} {{ js('wiki-edit') }} {% endblock %}