Ticket #2163 (new defect)
Translation sitetree messed up
| Reported by: | mpeel | Owned by: | wakeless |
|---|---|---|---|
| Priority: | medium | Milestone: | 2.4.0 |
| Component: | Sapphire Framework | Version: | 2.2.0 |
| Severity: | medium effort / impact | Keywords: | notformerge |
| Cc: | Hours: |
Description
The Translatable stuff is a bit screwy - for example in the site tree you can't view all children of a page, just the root children.
Here's a patch that goes too far in what it's trying to do :P
Basically, Ingo and I tried to make the translation system use other means than session to communicate that we were creating a new translation for a page, but found this to be too complicated.
This patch should be applied to 2.2.1 and will BREAK the CMS horribly.
My thoughts: Let's revert 70% of this patch, so that only these things stay:
- Changes made to CMSMain::switchlanguage() (because we want to show the whole site tree)
- Adding the marking filters to Hierarchy and Translatable, and editing the SiteTree::CMSTreeClasses() method to check if the node is translated or not.
- Fix Translatable::isTranslatedInto() to return something that actually makes sense.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
