Feature #46017
closedLanguage switcher for pagetree in Backend
Added by Frank Frewer over 11 years ago. Updated 6 months ago.
0%
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.
Files
patch_4.5.23_4.5.23_changed.diff (31.6 KB) patch_4.5.23_4.5.23_changed.diff | Frank Frewer, 2013-03-04 14:32 | ||
pagetree-is.png (274 KB) pagetree-is.png | Felix Kopp, 2013-03-18 17:20 | ||
pagetree-should.png (208 KB) pagetree-should.png | Felix Kopp, 2013-03-18 17:20 | ||
pagetree-flyout.png (210 KB) pagetree-flyout.png | Felix Kopp, 2013-03-18 17:57 | ||
01-english-selected.png (28.4 KB) 01-english-selected.png | Ingo Renner, 2013-03-21 05:39 | ||
02-language-switcher-open.png (27.6 KB) 02-language-switcher-open.png | Ingo Renner, 2013-03-21 05:39 | ||
03-german-hovered.png (27.8 KB) 03-german-hovered.png | Ingo Renner, 2013-03-21 05:39 | ||
tree_language_switcher.psd (400 KB) tree_language_switcher.psd | Ingo Renner, 2013-03-21 05:39 | ||
new_language_selector.png (119 KB) new_language_selector.png | Alexander Opitz, 2015-09-21 08:50 |
Updated by Frank Frewer over 11 years ago
Here the patch...
Updated by Michael Stucki over 11 years ago
Thanks for your patch, Frank!
This is a new feature and for policy reasons, it won't be added to 4.5 anymore.
Would you mind porting the patch against TYPO3's master branch?
Let me know if you need any help with this.
Updated by Michael Stucki over 11 years ago
- Status changed from New to Needs Feedback
Updated by Frank Frewer over 11 years ago
I will send a new change request on gerrit - my first time, so I hope everything will be okay.
In my patch for 4.5 were some issues with dragging pages which I fixed for the master branch.
In general I know about the "policy reasons" not to add new feature to older versions. But somewhere I read that exceptions to this have to be discussed on a case-to-case basis with the corresponding release managers.
Maybe that is a case to discuss??? The main development is done. And for multi language sites in my opinion its a really missing feature. 4.5 is LTS-Version, so a lot of sites will run for several reasons under this version until the end of maintenance.
Updated by Gerrit Code Review over 11 years ago
- Status changed from Needs Feedback to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18751
Updated by Gerrit Code Review over 11 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18751
Updated by Gerrit Code Review over 11 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18751
Updated by Michael Stucki over 11 years ago
Hi Frank,
thanks for your patch! I didn't test it yet but fixed a few (tiny) issues.
I will send a new change request on gerrit - my first time, so I hope everything will be okay.
It looks good!
In my patch for 4.5 were some issues with dragging pages which I fixed for the master branch.
In general I know about the "policy reasons" not to add new feature to older versions. But somewhere I read that exceptions to this have to be discussed on a case-to-case basis with the corresponding release managers.
I don't think that this qualifies as such a case. In fact we don't do it unless there is a really good reason (like security issues). But ...
Maybe that is a case to discuss??? The main development is done. And for multi language sites in my opinion its a really missing feature. 4.5 is LTS-Version, so a lot of sites will run for several reasons under this version until the end of maintenance.
... feel free to bring it up for discussion on the core mailing list.
Greetings, Michael
Updated by Felix Kopp over 11 years ago
- File pagetree-is.png pagetree-is.png added
- File pagetree-should.png pagetree-should.png added
This is the current implementation:
Following the setup, this should be the structure:
Updated by Gerrit Code Review over 11 years ago
Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18751
Updated by Gerrit Code Review over 11 years ago
Patch set 5 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18751
Updated by Ingo Renner over 11 years ago
- File 01-english-selected.png 01-english-selected.png added
- File 02-language-switcher-open.png 02-language-switcher-open.png added
- File 03-german-hovered.png 03-german-hovered.png added
- File tree_language_switcher.psd tree_language_switcher.psd added
Hey, I hope I'm not too late to the discussion. I think the idea is great! However, I'd like to propose an improved version to the selector of which I think it would fit better with the existing "New page" and "Filter" menus...
English is the currently selected language:
Switching the language, listing all system languages available:
Selecting german (hovered state). After clicking the menu entry, the german flag would replace the english flag (and reload the tree in german of course).
Updated by Lars Zimmermann over 11 years ago
I generally like the idea and think it's a very useful feature.
I also like the simple integration of Ingo's proposal, because it offers the best usability and graphics experience.
So +1 from me for the idea and +1 for Ingo Renner's proposal.
cheers
lars
Updated by Jens Hoffmann over 11 years ago
+1 for Ingo's suggestion.
Greez Jens
Updated by Frank Frewer over 11 years ago
Thinking about how to implement Ingo's suggestion I found a (little?) problem. Per default there is no flag icon defined for the default system language. Which icon could I take in case that mod.SHARED.defaultLanguageFlag is not set in user TSConfig?
Updated by Henrik Ziegenhain over 11 years ago
Good point - I would suggest to use the Union Jack (standard language used in translation files is also english) or the "mixed" one for all languages
Updated by Ingo Renner over 11 years ago
I would also go for the mixed one, I think there was also one with less saturation...
Updated by Andreas Kießling over 11 years ago
While i really like the look with the flags: what about setups with like 20 and more languages? Will the list just expand forever?
I have a projekt with around that number of languages/workspaces and the menu for the workspaces isn't really nice to use for admins. E.g: sorting is not alphabetic, the height is fixed to the amount of entries. A regular editor of course only sees a limited amount of workspaces.
Updated by Ingo Renner over 11 years ago
Patches are welcome. (not a joke or meant bad in any way!)
Updated by Gerrit Code Review over 11 years ago
Patch set 6 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18751
Updated by Gerrit Code Review over 11 years ago
Patch set 7 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18751
Updated by Steffen Ritter over 11 years ago
What about the following case:
- multi-tree setup with different languages (user might have a db-mount to only one tree and would see other languages)
- user is restricted to some languages (and should not be allowed to see others)
Updated by Jigal van Hemert over 11 years ago
It looked nice at first, but further testing revealed a list of problems which don't seem to be solvable very quickly:
- after switching languages the Filter Tree feature doesn't search in the translated tree
- if you switch languages with a temporary mountpoint active the option to remove the mountpoint again will be removed (only empty area left)
- if after the previous action you use the Filter Tree feature the mountpoint message is displayed again, but after clearing the search field the message + area are gone completely. You need to re-login to get it back
- if you use the Filter Tree feature with a different language some pages will be shown as subpages of themselves.
With feature freeze around the corner it doesn't seem likely that the issues can be solved (keeping the complexity of the pagetree code in mind).
Updated by Gerrit Code Review over 11 years ago
Patch set 8 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18751
Updated by Gerrit Code Review over 11 years ago
Patch set 9 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18751
Updated by Gerrit Code Review over 11 years ago
Patch set 10 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18751
Updated by Gerrit Code Review over 11 years ago
Patch set 11 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18751
Updated by Gerrit Code Review over 11 years ago
Patch set 12 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18751
Updated by Gerrit Code Review over 11 years ago
Patch set 13 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18751
Updated by Claus Harup over 11 years ago
Hi all
This is exactly what I am looking for, but I cant figure out, if it is in the core of TYPO3 6.1.x, or is it in the roadmap of becoming a feature in TYPO3 6.2.x?
Greatings
Claus
Updated by Frank Frewer over 11 years ago
Hi Claus,
no, it is not in 6.1. - see Jigal's comments above.
He didn't review his vote (on Gerrit) until now. I'll ask him if there is a special reason.
Updated by Philipp Gampe over 11 years ago
- Category set to Backend User Interface
- TYPO3 Version changed from 4.5 to 6.2
- Complexity set to hard
Jigal removed his vote.
Updated by Gerrit Code Review about 11 years ago
Patch set 14 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18751
Updated by Gerrit Code Review about 11 years ago
Patch set 15 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18751
Updated by Gerrit Code Review about 11 years ago
Patch set 16 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18751
Updated by Gerrit Code Review about 11 years ago
Patch set 17 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18751
Updated by Gerrit Code Review about 11 years ago
Patch set 18 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18751
Updated by Gerrit Code Review over 10 years ago
Patch set 19 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/18751
Updated by Gerrit Code Review over 10 years ago
Patch set 20 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/18751
Updated by Gerrit Code Review over 10 years ago
Patch set 21 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/18751
Updated by Gerrit Code Review about 10 years ago
Patch set 22 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/18751
Updated by Gerrit Code Review almost 10 years ago
Patch set 23 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/18751
Updated by Mathias Schreiber almost 10 years ago
- Target version changed from 7.0 to 7.1 (Cleanup)
Updated by Christian Baer over 9 years ago
Has this feature already found its way into 7.1?
I'd like to implement it for 6.2, has anyone done this?
Updated by Benni Mack over 9 years ago
- Target version changed from 7.1 (Cleanup) to 7.4 (Backend)
Updated by Susanne Moog over 9 years ago
- Target version changed from 7.4 (Backend) to 7.5
Updated by Gerrit Code Review about 9 years ago
Patch set 24 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/18751
Updated by Gerrit Code Review about 9 years ago
Patch set 25 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/18751
Updated by Gerrit Code Review about 9 years ago
Patch set 26 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/18751
Updated by Gerrit Code Review about 9 years ago
Patch set 27 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/18751
Updated by Gerrit Code Review about 9 years ago
Patch set 28 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/18751
Updated by Gerrit Code Review about 9 years ago
Patch set 29 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/18751
Updated by Gerrit Code Review about 9 years ago
Patch set 30 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/18751
Updated by Alexander Opitz about 9 years ago
With Patch Set 30
Updated by Frank Frewer about 9 years ago
At the moment I only can reproduce the space below the language listing.
I didn't found the Icon you used for South East Europe / Central asia in the icon list.
Is that a custom icon?
If so, please try to add !important to the background-position like I did for all flags in
typo3/sysext/core/Resources/Public/Css/flags.css
Which Browser did you use?
Updated by Gerrit Code Review about 9 years ago
Patch set 31 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/18751
Updated by Gerrit Code Review about 9 years ago
Patch set 32 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/18751
Updated by Gerrit Code Review about 9 years ago
Patch set 33 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/18751
Updated by Gerrit Code Review about 9 years ago
Patch set 34 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/18751
Updated by Gerrit Code Review about 9 years ago
Patch set 35 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/18751
Updated by Benni Mack about 9 years ago
- Target version changed from 7.5 to 7 LTS
Updated by Gerrit Code Review about 9 years ago
Patch set 36 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/18751
Updated by Gerrit Code Review about 9 years ago
Patch set 37 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/18751
Updated by Gerrit Code Review about 9 years ago
Patch set 38 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/18751
Updated by Benni Mack about 9 years ago
- Target version changed from 7 LTS to 8 LTS
Updated by Gerrit Code Review about 9 years ago
Patch set 39 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/18751
Updated by Christian Kuhn almost 8 years ago
- Status changed from Under Review to New
Updated by Riccardo De Contardi over 7 years ago
- Target version changed from 8 LTS to 9.0
Updated by Chris Müller about 5 years ago
- Related to Feature #89524: Allow searching for localized pages in the page tree live search added
Updated by Oliver Bartsch about 5 years ago
- Related to Feature #89582: Introduce translated page tree added
Updated by Georg Ringer 6 months ago
- Status changed from New to Closed
closing in favor of #89582 - still valid