. */ // available languages $langsArr = [ "en" => "English", "pl" => "Polski", "de" => "Deutsch", "hu" => "Magyar", "fr" => "Français", "it" => "Italiano", "es" => "Español" ]; // 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 ($config::$lang != "en" && array_key_exists($config::$lang, $langsArr)) { require_once(ROOT_DIR . "/lang/{$config::$lang}.php"); } ?>