|Issue tags:||i18n compatibility|
The multilanguage support of panels is a bit limited. The only way to publish content language aware is to use access rules. Another issue is that the pane / display titles aren't language aware.
Provide a generalized way to integrate the configuration fields (title & e.g. the content field of the custom content pane) of panes into the multilanguage system.
The most promising way seems to be an integration into the i18n module.
- Review latest patch
- Review the i18n Panels module
- Review dependency: #1277908: Introduce UUIDs onto panes & displays for better exportability & features compatibility
User interface changes
To make such a feature possible panels needs to add those new hooks:
CRUD hooks for panes.
For i18n_panels it would be possible to use
hook_panels_display_save()for insert / update actions of panes.
But catching delete actions would be tricky. Thus I decided to implement this full CRUD set.
While there's already
hook_panels_display_save()the one for deletion was missing.
i18n_panels needs to the new hook to clean up the translatable items.
First I tried to use
hook_panels_pane_content_alter()to integrate i18n_panels but unfortunately then I've to trigger the whole keyword handling again. I think it's better to have this new hook and inject the new title before the keyword handling runs.
Another possibility could be to use
hook_panels_pre_render()but I'm affraid that this could cause unnecessary pane loading.
Original report by cpelham
I can set the content within the panes to appear according to language environment. That's fine. but i cannot figure out how to translate the title or have a translated title show up in a menu. Is there a way. Someone in another issue queue referred to creating translations of whole panels but I don't see how to do this either.