[TASK] Add clear l10n cache when the user clear all cache
[Packages/TYPO3.CMS.git] / typo3 / sysext / lang / ext_localconf.php
index 26ec14a..02e224c 100644 (file)
@@ -15,6 +15,9 @@ if (!isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][
 if (isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['lang']['cache']['clear_menu']) && $GLOBALS['TYPO3_CONF_VARS']['SYS']['lang']['cache']['clear_menu']) {
                // Register Clear Cache Menu hook
        $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['additionalBackendItems']['cacheActions']['clearLangCache'] = 'EXT:lang/hooks/clearcache/class.tx_lang_clearcachemenu.php:&tx_lang_clearcachemenu';
+} else {
+               // Clear l10n cache when the user clears all caches
+       $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc']['clearLangCache'] = 'EXT:lang/hooks/clearcache/class.tx_lang_clearallcache.php:tx_lang_clearcache->clearCache';
 }
 
        // Register Ajax call