Multilingual Drupal 6 + Multilingual Gallery2 (G2) intergration issue

timezero

Joined: 2009-07-17
Posts: 2
Posted: Fri, 2009-07-17 07:34

Hi Everyone!

I am using Drupal 6.13 together with Gallery 2.3 and the i18n Internationalization module 1.1 running a multi-language site. It works great except for one thing. The user can only switch in between the two languages on the site using the language switcher in the main photo album of G2 but not in any of the sub-albums.

The language switcher renders the URLs in the following manner:

Main gallery:
English, http://www.example.com/gallery
Chinese, http://www.example.com/zh-hans/gallery

Sub-album:
English, http://www.example.com/?q=gallery&g2_itemId=34
Chinese, http://www.example.com/zh-hans/gallery/34

Seems that the correct URL for the Chinese version of the sub-album instead is:
http://www.example.com/zh-hans/gallery&g2_itemId=34

I also noticed that the Sub-albums names won't translate in Drupals navigation menu, they will only show up in English and they will override the current language in use and change the site language to English when clicking on them.

I was wondering if anyone knows if this is a known problem or if it could be something wrong with my configuration?

Update:

I tried the Consistent Language Interface module 2.1 and it will translate the sub-albums correctly except for the sub-album's names won't switch to Chinese in the navigation menu and when clicking on them the site will switch to English.

Login or register to post comments
timezero

Joined: 2009-07-17
Posts: 2
Posted: Fri, 2009-07-17 08:15

I manually created a separate menu entry in the Navigation block for one of my sub-albums, marking it as Chinese. However I could not point it to the correct URL gallery&g2_itemId=34 in the Drupal interface but had to point it to /gallery/34 instead.

The menu item shows up as Chinese in the Chinese version of the website but it points to http://www.example.com/zh-hans/gallery/34 instead of http://www.example.com/zh-hans/gallery&g2_itemId=34, which unfortunately results that the page is being rendered in English.

Login or register to post comments
overlander

Joined: 2009-10-07
Posts: 4
Posted: Wed, 2009-10-07 08:02

Confirm exactly the same issue with:

Drupal 613
Gallery2.3
i18n 6.x.1.1

I goes wrong at album level - clicking the album leads to a page
that doesn't exist. The URL is

http://site.ext/en/v/album (English or whatever language)

Normally it's

http://site.ext/v/album

It seems this is an integration issue between i18n and Gallery2?

What does work is language switching on the top level album in Gallery 2.
The i18n language switcher manages to switch the language in Gallery2.

I'm trying to work towards 1 language album, while keeping the drupal menu
system around embedded Gallery2 in the selected language.

Anyone here with a solution?

Login or register to post comments
overlander

Joined: 2009-10-07
Posts: 4
Posted: Wed, 2009-10-07 08:07

In the Drupal i18n forum, there's a shortcut / temp solution

http://drupal.org/node/245143

Login or register to post comments
overlander

Joined: 2009-10-07
Posts: 4
Posted: Wed, 2009-10-07 09:02

Temp workaround, to show the G2 pics in the other language:

In G2 admin through Drupal, goto url rewrite
There I changed

show item: v/%path%

into

show item: %language%/gallery

At least the pics show up now as

http://site.ext/en/gallery?g2_itemId=50

or

http://site.ext/fr/gallery?g2_itemId=50

Problem is that the primary menu defaults to the first drupal language
when in the gallery

Login or register to post comments