[BUGFIX] ModuleTemplate: Use translated language labels
[Packages/TYPO3.CMS.git] / 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">');
     }