Drupal Association members fund grants that make connections all over the world.
The multilanguage support of panels is a bit limited. The only way to translate a static panel page title is to create a custom block, then use i18n module to translate that block, then include this block in the panel and configure Panels "Title Type" to "From pane", then finally assign the page title to the custom block.
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.
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.