Wurde von einem Kollegen implementiert.
Für mögliche Rückfragen müsste ich ihn also zuvor kontaktieren.
fe_page.html5:
Code:
<?php
if(strpos($this->replaceInsertTags('{{env::request}}'),$this->replaceInsertTags('{{page::language}}')) !== false) {
$strarr = explode("/",$this->replaceInsertTags('{{env::request}}'));
if(sizeof($strarr) > 1 && strpos($strarr[1],"-") !== false && strlen($strarr[1]) == 5) {
$langarr = explode("-",$strarr[1]);
$newlang = $langarr[0] . "-" . strtoupper($langarr[1]);
$data = $this->replaceInsertTags('{{env::request}}');
$whatIWant = substr($data, strpos($data, "/") + 1);
$whatIWant = str_replace($strarr[1],$newlang,$whatIWant);
\Controller::redirect("/" . $whatIWant);
}
}
else {
}
?>
Lesezeichen