From 547439c02d719da87668041df2f630815f33d068 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 26 Dec 2016 17:21:32 +0100 Subject: [PATCH] Set interface language depending on page language --- .../install/files/lib/system/request/RequestHandler.class.php | 4 ++++ 1 file changed, 4 insertions(+) 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']); } -- 2.20.1