{% extends "admin/change_form.html" %} {% load i18n admin_urls admin_modify lotus %} {% comment %} NOTE: We override the whole object-tools block since we add stuff in and around "object-tools-items", also this enable us to share results from tag "translation_siblings" instead of executing it twice. {% endcomment %} {% block object-tools %} {% if change %} {% if not is_popup %} {% translation_siblings original preview=True as sibling_stats %} {% check_object_lang_availability original as object_lang_availability %} {% if not object_lang_availability.is_available %}

{% blocktranslate with object_lang=original.language available_langs=object_lang_availability.language_keys|join:", " %}Category language '{{ object_lang }}' is not in available project languages: {{ available_langs }}. In this state, this category won't reachable from your site.

You may be able to edit this category but it will change language to an available one and you may have to change some related fields.{% endblocktranslate %}

{% endif %} {% if sibling_stats.siblings %}

{% blocktrans %}Existing language(s) for this category:{% endblocktrans %} {% for sibling in sibling_stats.siblings %} {% get_language_info for sibling.language as lang %} {{ lang.name_translated }} {% if not forloop.last %} |{% endif %} {% endfor %}

{% endif %} {% endif %} {% endif %} {% endblock %}