<commit_before>{% extends "layout_fluid.html" %}
{% load breadcrumb %}
{% load i18n %}

{% block title %}{% trans "Administration" %}{% endblock %}
{% block h1 %}{% trans "Administration" %}{% endblock %}
{% block page_id %}Administration{% endblock %}

{% block content %}

  <div class="container-fluid">

    <div class="row">

      {% include "administration/sidebar.html" %}

      <div class="col-md-10">

        <h3>{% trans "Language" %}</h3>

        {% get_current_language as LANGUAGE_CODE %}
        {% get_available_languages as LANGUAGES %}
        {% get_language_info_list for LANGUAGES as languages %}

        <form action="{% url 'set_language' %}" method="post">

          {% csrf_token %}
          <input name="next" type="hidden" value="{% url 'main.views.home' %}" />

          <p>{% trans "Select one of the following languages available:" %}</p>

          <div class="form-group">

            {% for language in languages %}
              <div class="radio">
                <label>
                  <input type="radio" name="language" value="{{ language.code }}"{% if language.code == LANGUAGE_CODE %} checked="checked"{% endif %}>
                  {{ language.name_local|capfirst }} ({{ language.code }})
                </label>
              </div>
            {% endfor %}

            <span class="help-block">
              {% trans "Your choice will be recorded in the internal session store which doesn't not retain data forever." %}
            </span>

          </div>

          <div class="form-group">
            <button type="submit" class="btn btn-primary">{% trans 'Change' %}</button>
          </div>

        </form>

      </div>

    </div>

  </div>

{% endblock %}<commit_msg>Dashboard: fix language screen wording<commit_after>{% extends "layout_fluid.html" %}
{% load breadcrumb %}
{% load i18n %}

{% block title %}{% trans "Administration" %}{% endblock %}
{% block h1 %}{% trans "Administration" %}{% endblock %}
{% block page_id %}Administration{% endblock %}

{% block content %}

  <div class="container-fluid">

    <div class="row">

      {% include "administration/sidebar.html" %}

      <div class="col-md-10">

        <h3>{% trans "Language" %}</h3>

        {% get_current_language as LANGUAGE_CODE %}
        {% get_available_languages as LANGUAGES %}
        {% get_language_info_list for LANGUAGES as languages %}

        <form action="{% url 'set_language' %}" method="post">

          {% csrf_token %}
          <input name="next" type="hidden" value="{% url 'main.views.home' %}" />

          <p>{% trans "Select one of the following languages available:" %}</p>

          <div class="form-group">

            {% for language in languages %}
              <div class="radio">
                <label>
                  <input type="radio" name="language" value="{{ language.code }}"{% if language.code == LANGUAGE_CODE %} checked="checked"{% endif %}>
                  {{ language.name_local|capfirst }} ({{ language.code }})
                </label>
              </div>
            {% endfor %}

            <span class="help-block">
              {% trans "Your choice will be recorded in the internal session store which does not retain data forever." %}
            </span>

          </div>

          <div class="form-group">
            <button type="submit" class="btn btn-primary">{% trans 'Change' %}</button>
          </div>

        </form>

      </div>

    </div>

  </div>

{% endblock %}
{'fraction_non_alphanumeric': 0.1659988551803091, 'fraction_numerical': 0.004006868918145392, 'mean_word_length': 2.209366391184573, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4820492', 'n_tokens_mistral': 1120, 'n_tokens_neox': 976, 'n_words': 260}