#92337Translate labels in User TSconfig options.bookmarkGroups
Description
Please reopen #15760 from 2006-03-03
> Michael Stucki over 14 years ago (https://forge.typo3.org/issues/15760#note-5)
> We decided to postpone this for 4.5
In all currently supported TYPO3 versions including master it’s impossible to use translated bookmark/shortcut labels in User TSconfig options.bookmarkGroups:
# User TSconfig
options.bookmarkGroups {
# Replace default bookmark group 'Miscellaneous'
5 = LLL:EXT:myext/Resources/Private/Language/locallang.xlf:bookmark_group_5new
# Re-add default bookmark group 'Miscellaneous'
6 = LLL:EXT:core/Resources/Private/Language/locallang_misc.xlf:bookmark_group_5
}
- if (!empty($label)) {
- $shortcutGroups[$groupId] = (string)$label;
+ if (!empty($label)) {
+ if (strpos((string)$label, 'LLL:') === 0) {
+ $label = $languageService->sL((string)$label);
+ }
+ $shortcutGroups[$groupId] = (string)$label;