Some checks failed
SonarQube Scan / SonarQube Trigger (push) Failing after 5m30s
18 lines
334 B
PHP
18 lines
334 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);
|
|
|
|
function langPrintString($string, $lang)
|
|
{
|
|
echo $lang[$string];
|
|
} |