[TASK] Rename cache t3lib_l10n to l10n 34/26934/2
authorGeorg Ringer <georg.ringer@gmail.com>
Mon, 20 Jan 2014 05:32:35 +0000 (06:32 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Tue, 21 Jan 2014 04:59:34 +0000 (05:59 +0100)
As t3lib doesn't exist anymore, get rid of this naming schema.

Change-Id: I525db9a511813e1e517c1363e29894b34b80ad48
Resolves: #55149
Releases: 6.2
Reviewed-on: https://review.typo3.org/26934
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Christian Kuhn
Reviewed-by: Marcin S?gol
Tested-by: Marcin S?gol
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/core/Classes/Localization/LocalizationFactory.php
typo3/sysext/core/Configuration/DefaultConfiguration.php
typo3/sysext/core/Tests/Unit/Localization/Parser/LocallangXmlParserTest.php
typo3/sysext/core/Tests/Unit/Localization/Parser/XliffParserTest.php
typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php

index cabc83f..ad5e7b1 100644 (file)
@@ -71,7 +71,7 @@ class LocalizationFactory implements \TYPO3\CMS\Core\SingletonInterface {
         * @return void
         */
        protected function initializeCache() {
-               $this->cacheInstance = $GLOBALS['typo3CacheManager']->getCache('t3lib_l10n');
+               $this->cacheInstance = $GLOBALS['typo3CacheManager']->getCache('l10n');
        }
 
        /**
index 0a99d5b..822d9a4 100644 (file)
@@ -188,7 +188,7 @@ return array(
                                        'options' => array(),
                                        'groups' => array('pages', 'all')
                                ),
-                               't3lib_l10n' => array(
+                               'l10n' => array(
                                        'frontend' => 'TYPO3\CMS\Core\Cache\Frontend\VariableFrontend',
                                        'backend' => 'TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend',
                                        'options' => array(
index 9d0b5a6..b0e0cd0 100644 (file)
@@ -63,7 +63,7 @@ class LocallangXmlParserTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
                $GLOBALS['TYPO3_CONF_VARS']['SYS']['lang']['format']['priority'] = 'xml';
                \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Localization\\LanguageStore')->initialize();
                        // Clear localization cache
-               $GLOBALS['typo3CacheManager']->getCache('t3lib_l10n')->flush();
+               $GLOBALS['typo3CacheManager']->getCache('l10n')->flush();
        }
 
        /**
index 1980357..e555aba 100644 (file)
@@ -70,7 +70,7 @@ class XliffParserTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
                $GLOBALS['TYPO3_CONF_VARS']['SYS']['lang']['format']['priority'] = 'xlf';
                \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Localization\\LanguageStore')->initialize();
                        // Clear localization cache
-               $GLOBALS['typo3CacheManager']->getCache('t3lib_l10n')->flush();
+               $GLOBALS['typo3CacheManager']->getCache('l10n')->flush();
        }
 
        /**
index 22f691b..525ade9 100644 (file)
@@ -2395,11 +2395,11 @@ class GeneralUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
                $file = PATH_site . 'typo3temp/' . $unique . '.xml';
                Utility\GeneralUtility::writeFileToTypo3tempDir($file, $xml);
                // Make sure there is no cached version of the label
-               $GLOBALS['typo3CacheManager']->getCache('t3lib_l10n')->flush();
+               $GLOBALS['typo3CacheManager']->getCache('l10n')->flush();
                // Get default value
                $defaultLL = Utility\GeneralUtility::readLLfile('EXT:lang/locallang_core.xlf', 'default');
                // Clear language cache again
-               $GLOBALS['typo3CacheManager']->getCache('t3lib_l10n')->flush();
+               $GLOBALS['typo3CacheManager']->getCache('l10n')->flush();
                // Set override file
                $GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:lang/locallang_core.xlf'][$unique] = $file;
                /** @var $store \TYPO3\CMS\Core\Localization\LanguageStore */