[BUGIFX] Improve labels in clear cache menu items 88/28588/2
authorFrancois Suter <francois@typo3.org>
Fri, 21 Mar 2014 08:01:48 +0000 (09:01 +0100)
committerJigal van Hemert <jigal.van.hemert@typo3.org>
Fri, 21 Mar 2014 09:23:09 +0000 (10:23 +0100)
With the changes introduced by the new cache grouping system, the
"Clear all cache" menu item in the clear cache menu has become
ambiguous. Labels and tooltips can be improved.

Resolves: #57128
Releases: 6.2
Change-Id: I2c723e3581605f7040f8a1cc1598053155ee80a4
Reviewed-on: https://review.typo3.org/28588
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
Reviewed-by: Ludwig Rafelsberger
Reviewed-by: Stephan GroƟberndt
Reviewed-by: Jigal van Hemert
Tested-by: Jigal van Hemert
typo3/sysext/backend/Classes/Toolbar/ClearCacheToolbarItem.php
typo3/sysext/lang/locallang_core.xlf

index 7b06ecf..816505f 100644 (file)
@@ -89,8 +89,8 @@ class ClearCacheToolbarItem implements ToolbarItemHookInterface {
                if ($backendUser->isAdmin() || $backendUser->getTSConfigVal('options.clearCache.all')) {
                        $this->cacheActions[] = array(
                                'id' => 'all',
-                               'title' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:flushAllCachesTitle', TRUE),
-                               'description' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:flushAllCachesDescription', TRUE),
+                               'title' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:flushGeneralCachesTitle', TRUE),
+                               'description' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:flushGeneralCachesDescription', TRUE),
                                'href' => $this->backPath . 'tce_db.php?vC=' . $backendUser->veriCode() . '&cacheCmd=all&ajaxCall=1' . BackendUtility::getUrlToken('tceAction'),
                                'icon' => IconUtility::getSpriteIcon('actions-system-cache-clear-impact-medium')
                        );
index 9837677..cfcf00b 100644 (file)
@@ -687,11 +687,17 @@ Would you like to save now in order to refresh the display?</source>
                        <trans-unit id="flushAllCachesDescription" xml:space="preserve">
                                <source>Clear all caches, including frontend caches, and extension-specific caches. Compile-time caches / system caches that are needed for TYPO3 to run are not touched.</source>
                        </trans-unit>
+                       <trans-unit id="flushGeneralCachesTitle" xml:space="preserve">
+                               <source>Flush general caches</source>
+                       </trans-unit>
+                       <trans-unit id="flushGeneralCachesDescription" xml:space="preserve">
+                               <source>Clear frontend and page-related caches, plus some backend-related caches.</source>
+                       </trans-unit>
                        <trans-unit id="flushSystemCachesTitle" xml:space="preserve">
                                <source>Flush system caches</source>
                        </trans-unit>
                        <trans-unit id="flushSystemCachesDescription" xml:space="preserve">
-                               <source>Clears all system-related caches. This includes the class loader cache, the cache of all extension configuration files. Rebuilding this cache may take some time.</source>
+                               <source>Clear all system-related caches, including the class loader, localization and extension configuration file caches. Rebuilding this cache may take some time. </source>
                        </trans-unit>
                        <trans-unit id="rm.adminFunctions" xml:space="preserve">
                                <source>Admin functions</source>