[BUGFIX] ModuleTemplate: Use translated language labels 66/44966/3
authorMichael Oehlhof <typo3@oehlhof.de>
Thu, 26 Nov 2015 21:37:57 +0000 (22:37 +0100)
committerMarkus Klein <markus.klein@typo3.org>
Thu, 26 Nov 2015 22:58:50 +0000 (23:58 +0100)
Resolves: #71871
Releases: master
Change-Id: I79914c4940e04c9f958d5496f581f71ae74859d6
Reviewed-on: https://review.typo3.org/44966
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/backend/Classes/Template/ModuleTemplate.php

index 655a758..1d918cb 100644 (file)
@@ -296,7 +296,7 @@ class ModuleTemplate
         // Yes, hardcoded on purpose
         $this->pageRenderer->setXmlPrologAndDocType('<!DOCTYPE html>');
         $this->pageRenderer->setCharSet('utf-8');
-        $this->pageRenderer->setLanguage('default');
+        $this->pageRenderer->setLanguage($GLOBALS['LANG']->lang);
         $this->pageRenderer->addMetaTag('<meta name="viewport" content="width=device-width, initial-scale=1">');
     }