get()); $path_raw_full = implode("/", $path_raw); Url_redirect::path_modify($path_raw_full); } // LANGUAGE MANAGER // // hack: fake get param from url path $_GET["lang"] = $param_lang; // initialize Data::$lang_object = new Lang(list: ["de", "en"], default: "de"); Data::$lang = Data::$lang_object->get(); // load dict Data::$dict = new Lang_Dict(Data::$lang_object); require("./page/strings.php"); // BUILD ALTERNATE LANGUAGE URLS // // get content path $content_path_raw = Request::path_raw(); $content_path_raw = array_splice($content_path_raw, 1); // prepend lang codes foreach(["de", "en"] as $one_lang_code){ $path_raw = $content_path_raw; array_unshift($path_raw, $one_lang_code); Data::$alternate[$one_lang_code] = Url::path_modify(implode("/", $path_raw)); } ?>