From: Marcel Werk Date: Mon, 26 Dec 2016 16:21:32 +0000 (+0100) Subject: Set interface language depending on page language X-Git-Tag: 3.0.0_RC_3~41 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=547439c02d719da87668041df2f630815f33d068;p=GitHub%2FWoltLab%2FWCF.git Set interface language depending on page language --- diff --git a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php index fb99967da0..446ffe75a1 100644 --- a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php @@ -162,6 +162,10 @@ class RequestHandler extends SingletonFactory { 'languageID' => $routeData['cmsPageLanguageID'] ]; + if ($routeData['cmsPageLanguageID'] && $routeData['cmsPageLanguageID'] != WCF::getLanguage()->languageID) { + WCF::setLanguage($routeData['cmsPageLanguageID']); + } + unset($routeData['cmsPageID']); unset($routeData['cmsPageLanguageID']); }