Cody Cook 4c2857b445
Some checks failed
SonarQube Scan / SonarQube Trigger (push) Failing after 5m30s
I'm in a rush to release so I am adding features that are needed to make it usable.
2025-02-17 22:03:33 -08:00

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];
}