[BUGFIX] Labels for grouping bookmarks are missing 55/17955/2
authorBindea Silviu <silviu.bindea@arxia.com>
Sat, 2 Feb 2013 13:55:25 +0000 (15:55 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 2 Feb 2013 17:18:41 +0000 (18:18 +0100)
Using function sL to load locallang with labels for bookmarks

Fixes: #44691
Releases: 6.1, 6.0
Change-Id: I509aa06e379e1397fea50c6a2c137db3994eff2a
Reviewed-on: https://review.typo3.org/17955
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/backend/Classes/Toolbar/ShortcutToolbarItem.php

index 010efd9..b614127 100644 (file)
@@ -316,7 +316,7 @@ class ShortcutToolbarItem implements \TYPO3\CMS\Backend\Toolbar\ToolbarItemHookI
                foreach ($this->shortcutGroups as $groupId => $groupLabel) {
                        $label = $groupLabel;
                        if ($groupLabel == '1') {
-                               $label = $GLOBALS['LANG']->getLL('bookmark_group_' . abs($groupId), 1);
+                               $label = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_misc.xlf:bookmark_group_' . abs($groupId), 1);
                                if (empty($label)) {
                                        // Fallback label
                                        $label = $GLOBALS['LANG']->getLL('bookmark_group', 1) . ' ' . abs($groupId);
@@ -324,7 +324,7 @@ class ShortcutToolbarItem implements \TYPO3\CMS\Backend\Toolbar\ToolbarItemHookI
                        }
                        if ($groupId < 0) {
                                // Global group
-                               $label = $GLOBALS['LANG']->getLL('bookmark_global', 1) . ': ' . (!empty($label) ? $label : abs($groupId));
+                               $label = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_misc.xlf:bookmark_global', 1) . ': ' . (!empty($label) ? $label : abs($groupId));
                                if ($groupId == -100) {
                                        $label = $GLOBALS['LANG']->getLL('bookmark_global', 1) . ': ' . $GLOBALS['LANG']->getLL('bookmark_all', 1);
                                }