<commit_before><? defined('C5_EXECUTE') or die("Access Denied.");?>
<? if (count($interfacelocales) <= 1) { ?>
<fieldset>
	<?=t("You don't have any interface languages installed. You must run concrete5 in English.");?>
</fieldset>
<? } else { ?>

<form method="post" class="form-horizontal" action="<?=$view->action('save_interface_language')?>">
    <fieldset>

        <div class="form-group">
        <?=$form->label('LANGUAGE_CHOOSE_ON_LOGIN', t('Login'))?>
            <div class="checkbox">
                <label><?=$form->checkbox('LANGUAGE_CHOOSE_ON_LOGIN', 1, $LANGUAGE_CHOOSE_ON_LOGIN)?><?=t('Offer choice of language on login.')?></label>
            </div>
        </div>

        <?
        $args = array();
        if (defined("LOCALE")) {
            $args['disabled'] = 'disabled';
        }
        ?>

        <div class="form-group">
            <?=$form->label('SITE_LOCALE', t('Default Language'))?>
            <div class="checkbox">
                <?=$form->select('SITE_LOCALE', $interfacelocales, $SITE_LOCALE, $args);?><commit_msg>Remove old constant LOCALE<commit_after><? defined('C5_EXECUTE') or die("Access Denied.");?>
<? if (count($interfacelocales) <= 1) { ?>
<fieldset>
	<?=t("You don't have any interface languages installed. You must run concrete5 in English.");?>
</fieldset>
<? } else { ?>

<form method="post" class="form-horizontal" action="<?=$view->action('save_interface_language')?>">
    <fieldset>

        <div class="form-group">
        <?=$form->label('LANGUAGE_CHOOSE_ON_LOGIN', t('Login'))?>
            <div class="checkbox">
                <label><?=$form->checkbox('LANGUAGE_CHOOSE_ON_LOGIN', 1, $LANGUAGE_CHOOSE_ON_LOGIN)?><?=t('Offer choice of language on login.')?></label>
            </div>
        </div>
        <div class="form-group">
            <?=$form->label('SITE_LOCALE', t('Default Language'))?>
            <div class="checkbox">
                <?=$form->select('SITE_LOCALE', $interfacelocales, $SITE_LOCALE);?>
{'fraction_non_alphanumeric': 0.20321931589537223, 'fraction_numerical': 0.004024144869215292, 'mean_word_length': 3.2774193548387096, 'pattern_counts': {'":': 0, '<': 50, '<?xml version=': 0, '>': 58, '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': '3635007', 'n_tokens_mistral': 646, 'n_tokens_neox': 640, 'n_words': 119}