Set current backend language as frontend language
authorNicole Cordes <cordes@cps-it.de>
Tue, 30 Apr 2013 22:10:30 +0000 (00:10 +0200)
committerNicole Cordes <cordes@cps-it.de>
Tue, 30 Apr 2013 22:10:30 +0000 (00:10 +0200)
ChangeLog
Classes/Service/CommunicationService.php

index a188f94..50cf7a6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-05-01 Nicole Cordes <cordes@cps-it.de>
+
+       * Set current backend language as frontend language
+
 2013-02-18 Nicole Cordes <cordes@cps-it.de>
 
        * Fixed typo3 version dependency
index fd65bc1..b3c2ee7 100644 (file)
@@ -158,6 +158,10 @@ class tx_vcc_service_communicationService implements t3lib_Singleton {
                $GLOBALS['TSFE']->getCompressedTCarray();
                $GLOBALS['TSFE']->initTemplate();
                $GLOBALS['TSFE']->getConfigArray();
+               if (TYPO3_MODE == 'BE') {
+                               // Set current backend language
+                       $GLOBALS['TSFE']->getPageRenderer()->setLanguage($GLOBALS['LANG']->lang);
+               }
 
                TSpagegen::pagegenInit();
        }