dj_mix_hosting_software/includes/lang_loader.php

12 lines
256 B
PHP

<?php
$lang = $_SESSION['lang'] ?? $config['app']['locale'];
if (!isset($_SESSION['lang'])) {
$_SESSION['lang'] = $lang;
}
if (isset($_GET['lang'])) {
$lang = $_GET['lang'];
$_SESSION['lang'] = $lang;
}
$locale = loadLocale($lang);