Project

General

Profile

Actions

Feature #92337

closed

Translate labels in User TSconfig options.bookmarkGroups

Added by Georg Tiefenbrunn over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2020-09-18
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
no-brainer
Sprint Focus:

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
}

https://github.com/TYPO3/TYPO3.CMS/blob/10.4/typo3/sysext/backend/Classes/Backend/Shortcut/ShortcutRepository.php#L397

-                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;

Related issues 1 (0 open1 closed)

Copied from TYPO3 Core - Feature #15760: Proposal for "options.bookmarkGroups" - Support multilanguagelabelsClosed2006-03-03

Actions
Actions #1

Updated by Georg Tiefenbrunn over 3 years ago

  • Copied from Feature #15760: Proposal for "options.bookmarkGroups" - Support multilanguagelabels added
Actions #2

Updated by Gerrit Code Review over 3 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/65764

Actions #3

Updated by Gerrit Code Review over 3 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/65764

Actions #4

Updated by Oliver Bartsch over 3 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Benni Mack over 3 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF