Hi all,
I've had no luck so far getting Gallery module to work with Drupal when i18n is enabled. Has anyone ever get these two working when i18n is enabled?
I'm running:
Drupal : 5.6
Gallery: 2-2-4
Gallery Module: 5.x-2.2
Gallery2 is located in mysite.com/gallery2
Gallery module is enabled and it's working fine when i18n is disabled but after enabling i18n, the link looks like this and it doesn't work:
http://mysite.com/en/en/index.php?q=gallery
Here is what I have done so far:
1: Enabling and disabling URL rewrite in Gallery: Doesn't help to resolve this issue
2. Tried both manual and automatic configuration of Gallery module
3. If I disable i18n, gallery module works fine
4. Gallery Image block and Gallery Grid block works perfectly fine but not the link to the image. I noticed the image from the block is accessing Image directly from /gallery/
http://mysite.com/gallery2/main.php?g2_view=core.DownloadItem&g2_itemId=...
But the link to Image block looks like this:
http://mysite.com/en/en/index.php?q=gallery&g2_itemId=25
I don't know why there are two "en" in the link above but even if I remove one of the "en" from the URL, it still doesn't work.
I have to mention that sometimes, I can see the embedded photos inside Drupal but not the photo album. Do I need to manually modify .htaccess?
The only note I found in installation document is this:
http://codex.gallery2.org/Integration:Drupal:Installation
If you plan to create a multilingual site (e.g. using the i18n module in Drupal), do NOT prefix the paths with "%language%".
I appreciate any help,
--Nader
Comments
Comment #1
steinmb commentedHi
I have tried the same as you are working with, and gave it up. Enabling i18n brakes everything. When you have rewrite enabled the install script don't seems detect i18n usage.
I have not dived into the code, but if someone feels like it, I'm willing to take time testing the patches. We need to fix this as D6 has parts of i18n built in.
--
Stein Magne
Comment #2
profix898 commentedThe 5.x-2.0 release definitely worked with i18n (but not with localizer, etc.). After we had several issues with it, I installed it on two of my test sites and it worked. I dont think anything related changed since then, but honestly I havent tried for a while. The D6 version of gallery module is not 100% ready for multi-language support. However, as major parts of i18n are in D6 core we will work on that soon.
Comment #3
naderat commentedI tested Drupal 5.6 with Gallery module 5.x-2.0 and still same problem. I'm not using localizer.
Comment #4
vm commentedWhich basically means, as they improve Gallery for D6 it will also improve for D5 multilanguage support.
Comment #5
Czessi commentedTested with Drupal 5.7, Gallery 2.2.4 and Gallery Module 5.x-2.2 => same problem. Localizer is not in use.
Comment #6
naderat commentedHi Thilo,
I noticed you have implemented Gallery and Drupal with i18n enabled in your website:
http://www.profix898.de/de/gallery
Could you please let me know how did you configure it? Did you have to manually update .htaccess file?
Comment #7
Greggus commentedDruapal: 5.7
Gallery: 5.x-2.2
Language: set to polish by default
I have no problem with gallery module with i18n enabled. Actually I have 2 sites running with default laungage set to polish - both with no problems. One of them you can see it at www.gim52.pijarzy.pl and the second is under development.
The only problem I have is that clean url (short url) can not be enabled in gallery itself. This causes "Page not found" error while clicking on picture in block. I don't know if it is caused by i18n...
Comment #8
naderat commentedHi Greggus,
I checked out your website and it's not purely multilingual. Meaning, there is no language code as part of your URL. For example, look at "en" in the following URL:
http://www.example.com/en/node/1
If you're having a website with just one language, the language code is not needed as part of URL and this bug occurs when you do have language code in URL.
Comment #9
managelox commentedHi Naderat,
Just to say I had the same problem with Gallery2 and i18n on Drupal 5.7 with Localizer enabled.
I solved it by only installing G2 first and then i18n after.
Maybe G2 installation get confused when i18n is already activated ?
Cheers
Comment #10
steinmb commentedClosing this due to inactivity.