I am trying to activate translation for panels on a bilingual website and I realized it was not possible to do so. The only information really relevant is from the following issue in the Panels module but it basically asks i18n developers to decide what to do wrt that issue.

I have tried what is suggested in this comment for translating views, but somehow it doesn't seem to be working. I got mypanel_en and mypanel_fr, each with an alias (en/mypanel => mypanel_en, fr/mypanel => mypanel_fr), but when I switch it still displays the same panel e.g. if I'm in en/mypanel and swith to french, the browser will end up displaying fr/mypanel_en instead of the french version.

Any suggestions, ideas, etc? (Note that if necessary I'd be ready to code a module (i18n_panels???) but in that case I would need strong support from the i18n team as I have never developed for i18n)

CommentFileSizeAuthor
#2 i18npanels.diff5.28 KBJacobSingh
#1 i18npanels.diff5.28 KBJacobSingh

Comments

JacobSingh’s picture

Version: 5.x-2.1 » 5.x-2.x-dev
Category: support » feature
Status: Active » Needs review
StatusFileSize
new5.28 KB

I've developed something which supports i18n for custom areas. There are other patches out there for panels to support node based i18n, but this is a good start. I've used it on sites where I need a view header, and I can't use views (obviously).

Here it is (added as a new i18n contrib mod).

JacobSingh’s picture

StatusFileSize
new5.28 KB

Here's another one with a simple settings page to convert existing custom panel areas to the i18n format. If someone wants to write a readme or something, would be cool. But I think the code is RTBC

jose reyero’s picture

Status: Needs review » Fixed

Hi Jacob, this looks good and contrib modules are welcomed.

Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

eidoscom’s picture

Component: Code » Blocks

committed #2 to dev or elsewhere??

eidoscom’s picture

sorry...... I'm searching for this on drupal 7 :(