Lines Matching refs:lang
323 "lang" => $setup["head"][1],
331 $languageChooser = manual_language_chooser($config['lang'], $config['thispage']);
348 foreach (Languages::ACTIVE_ONLINE_LANGUAGES as $lang => $text) {
350 if ($lang == $currentlang) {
354 $out[] = "<option value='$lang/$currentpage'$selected>$text</option>";
383 $source_lang = $setup['source']['lang'];
475 function autogen(string $text, string $lang) {
478 $lang = ($lang === "") ? "en" : $lang;
479 $lang = strtolower($lang);
480 if (isset($translations[$lang])) {
481 if (isset($translations[$lang][$text]) && $translations[$lang][$text] !== "") {
482 return $translations[$lang][$text];
484 if ($lang !== "en") {
492 …onFile = __DIR__ . \DIRECTORY_SEPARATOR . "ui_translation" . \DIRECTORY_SEPARATOR . $lang . ".ini";
495 if ($lang !== "en") {
503 $translations[$lang] = \parse_ini_file($translationFile);
505 return autogen($text, $lang);