. */ // available languages $langsArr = [ "en" => "English", "pl" => "Polski", "de" => "Deutsch", "hu" => "Magyar", "fr" => "Français", "it" => "Italiano", "es" => "Español", "nl" => "Nederlands", "zh" => "中文" ]; // always load en base require_once(ROOT_DIR . "/lang/en.php"); // override with translated strings if needed // missing strings will be displayed in English if (uConfig::$lang != "en" && array_key_exists(uConfig::$lang, $langsArr)) { require_once(ROOT_DIR . "/lang/" . uConfig::$lang . ".php"); } // choose password messages based on config $lang['passrules'] = isset($lang["passrules_" . uConfig::$pass_strength]) ? $lang["passrules_" . uConfig::$pass_strength] : ""; $lang['passlenmin'] = sprintf($lang["passlenmin"], uConfig::$pass_lenmin); ?>