[TASK] Fix localization handling to support XLIFF
authorChristopher <chrissitopher@gmx.de>
Sun, 17 Jul 2011 16:28:03 +0000 (18:28 +0200)
committerChristopher <chrissitopher@gmx.de>
Sun, 17 Jul 2011 16:28:03 +0000 (18:28 +0200)
Due to the change in localization handling within the Core, we need
some updates.

Thanks to Dominique Feyer.

Change-Id: I48bd12d4fa8a7718b1842e044fa6d0a294028f30
Resolves: #27416

typo3/sysext/linkvalidator/modfuncreport/class.tx_linkvalidator_modfuncreport.php

index ebe5e9c..ab6d271 100644 (file)
@@ -233,30 +233,30 @@ class tx_linkvalidator_ModFuncReport extends t3lib_extobjbase {
        protected function createTabs() {
                $panelCheck = '';
                if ($this->modTS['showCheckLinkTab'] == 1) {
-                       $panelCheck = '{
-                      title: TYPO3.lang.CheckLink,
-                      html: ' . json_encode($this->flush()) . '
-                       }';
+                       $panelCheck = "{
+                      title: TYPO3.l10n.localize('CheckLink'),
+                      html: " . json_encode($this->flush()) . ",
+                       }";
                }
 
                $this->render();
-               $js = 'var panel = new Ext.TabPanel( {
-                       renderTo : "linkvalidator-modfuncreport",
-                       id: "linkvalidator-main",
+               $js = "var panel = new Ext.TabPanel( {
+                       renderTo: 'linkvalidator-modfuncreport',
+                       id: 'linkvalidator-main',
                        plain: true,
                        activeTab: 0,
-                       bodyStyle: "padding:10px;",
+                       bodyStyle: 'padding:10px;',
                        items : [
                        {
                                autoHeight: true,
-                               title: TYPO3.lang.Report,
-                               html: ' . json_encode($this->flush(TRUE)) . '
+                               title: TYPO3.l10n.localize('Report'),
+                               html: " . json_encode($this->flush(TRUE)) . "
                        },
-                       ' . $panelCheck . '
+                       " . $panelCheck . "
                        ]
 
                });
-               ';
+               ";
                $this->pageRenderer->addExtOnReadyCode($js);
        }