{% requireEdition CraftPro %} {% requireAdmin %} {% extends "_layouts/cp" %} {% set title = "Content Locales"|t %} {% import "_includes/forms" as forms %} {% includejsresource "js/locales.js" %} {% includecssresource "css/locales.css" %} {% includeTranslations "Are you sure you want to delete “{name}” and all its associated content?", "Name", "Locale ID", "Reorder", "Delete", "New locale added.", "Unable to add the new locale.", "What do you want to do with any content that is only available in {language}?", "Transfer it to:", "Delete it", "Delete {language}" %} {% set crumbs = [ { label: "Settings"|t, url: url('settings') } ] %} {% block content %}
{% endblock %} {% includejs %} new Craft.Locales( { {%- for locale in craft.i18n.getAllLocales() %} {%- if not loop.first %},{% endif -%} '{{ locale.id }}': '{{ locale.name }}' {%- endfor -%} }, [ {%- for locale in craft.i18n.getSiteLocales() %} {%- if not loop.first %},{% endif -%} '{{ locale.id }}' {%- endfor -%} ]); {% endincludejs %}