{% extends "dojango/base.html" %}

{% if not LANGUAGE_CODE %}
    {% load i18n %}
    {% get_current_language as LANGUAGE_CODE %}
    {% get_current_language_bidi as LANGUAGE_BIDI %}
{% endif %}

{% block _dojango_html_lang %} xml:lang="{{ LANGUAGE_CODE }}" lang="{{ LANGUAGE_CODE }}"{% if LANGUAGE_BIDI %} dir="rtl"{% endif %}{% endblock %}
{% block _dojango_meta_content_lang %}<meta http-equiv="content-language" content="{{ LANGUAGE_CODE }}" />{% endblock %}
{% block _dojango_post_dj_config %}
<script type="text/javascript">
    djConfig['locale'] = "{{ LANGUAGE_CODE }}";
</script>
{% endblock %}