Issue Feature Closed

#46017Language switcher for pagetree in Backend

Frank Frewer 03/04/13, 14:30 updated 06/11/24, 16:06

Description

For multi language sites it is not really convenient that the pagetree shows the page titles only in the default system language.

The attached patch (against TYPO3 4.5.23 – because I needed it for a site runing with this version) implements a language switcher (dropdown box) in the toppanel. That are the feature:
- Automatically refresh the pagetree after changing with page titles from pages_language_overlay (or with default title, if “Standard” is selected).
- Show the title in default language inside the tooltip while hovering over the title.
- With a alternative language selected, editing the page title will override the title field in pages_language_overlay.
- If there is no alternative page title in the selected language, show the page title in default language wrapped with square brackets. That provides a nice overview of page titles which have to be translated.
- In this case, editing the title between the square brackets will override the title field in pages.
- Editing the title while deleting the square brackets will create a new record in pages_language_overlay with the selected language. (Show a hint to this possibility inside the tooltip).
- Filtering with a search word will search in pages_language_overlay, not in pages.
- Switching the selected language while filtering will refresh the filtering tree in the new selected language.
- If there is only the default system language defined, the language switcher will not be shown.
- Setting options.pageTree.hideLanguageSelection = 1 in user TSConfig will hide the language switcher for thie user.

This issue is related to Feature #28441 (http://forge.typo3.org/issues/28441). The old issue is for TYPO3 4.6. So I opened a new one.

Reviews 1