Hi you all!
I am running D6.3 in three languages, so I am using i18n. Each language gets its label:
http://mysite.com/en/
http://mysite.com/de/
http://mysite.com/es/
When using g2 embedded, I get always:
http://mysite.com/index.php?q=en/
http://mysite.com/index.php?q=en/
http://mysite.com/index.php?q=en/
Does anybody how can I correct/configurate this?
Thanks!
Comments
Comment #1
vm commentedComment #2
sianla commentedI have the same problem.
I am able to view the page in chinese but when i tried to upload photos or view comments, an error will occur.
gallery when viewed in english: http://xxx/gallery
gallery when viewed in chinese: http://xxx/zh-hans/gallery
However the problem comes when i tried to view comments in chinese: http://xxx/zh-hans/gallery&g2_view=comment.ShowAllComments&g2_itemId=72&...
Comment #3
profix898 commentedMultiple languages are not yet supported in the latest gallery module for Drupal 6. Most of the needed code is already there, but needs finetuning and testing. I hope to work on this in the next few days. Shouldnt be too difficult ... (see http://drupal.org/node/228864)
Comment #4
sianla commentedthanks a lot.
Comment #5
sianla commentedIs there any update for multilanguage?
oh ya sometimes multilanguage works but at other times it doesn't.
Thanks a lot.
Comment #6
metabits commentedI installed last update of gallery module (that of Aug. 5th.) wich it is supposed to fix this issues (as I understand it in http://drupal.org/node/228864) but to me the multilanguage issue it's not fixed at all.
I get the same problem as I wrote (and let me correct the text, sorry!) at the beginning, each language doesn't get their prefix when using the gallery module.
I am running D6.3 in three languages, so I am using locale and i18n. Each language gets its label:
http://mysite.com/en/
http://mysite.com/de/
http://mysite.com/es/
When using g2 embedded, I get always:
http://mysite.com/index.php?q=en/
http://mysite.com/index.php?q=de/
http://mysite.com/index.php?q=es/
Any idea why is this still not working?
Thank you!
psc
Comment #7
metabits commentedI just want to resume and add some issues I've detected... I've been as systematic as possible.
In the next notation [lang] could be "en" "de" or "es", my three languages. Everything else works in Drupal in the three languages and Locale and i18n modules are activated. Clean URLs in Drupal are on and working.
____________________________________________________________________________
1.- With or without clean URLs in embedded Gallery2 enabled
Language prefixes don't get transform in embedded Gallery2. In both cases I get always /index.php?q=[lang]/
I loose all my blocks and primary/secondary links in top of my pages when being in a album or item page in embedded Gallery2. Exceptions to this are the grid block, Languages block and a block I create my self. No navigation block, no primary or secondary blocks on my side bars. Embedded Gallery2 Admin page is displaying everything and the root album (/mygallery2) is also displaying every block.
([lang] could be "en" "de" or "es")
____________________________________________________________________________
2.- Clean URLs in G2 activated:
- With clean URLs in embedded Gallery2 enabled my URLs look like
http://mysite.com/index.php?q=[lang]/mygallery2/whateveralbumoritem
and they return a page not found.
But if I change per hand the query for the language prefix alone, then it works and it links me to the album.
- The Languages block in Drupal it's not working properly. The URLs of Language block are like:
if I'm coming from the english page of embedded Gallery2 (/en/mygallery2)
http://mysite.com/en/index.php%3Fq%3Den/mygallery2/whateveralbumoritem
http://mysite.com/de/index.php%3Fq%3Den/mygallery2/whateveralbumoritem
http://mysite.com/es/index.php%3Fq%3Den/mygallery2/whateveralbumoritem
and they take me to the english version, no matter what language I click in the Languages menu block.
if I'm coming from the german page of embedded Gallery2 (/de/mygallery2)
http://mysite.com/en/index.php%3Fq%3Dde/mygallery2/whateveralbumoritem
http://mysite.com/de/index.php%3Fq%3Dde/mygallery2/whateveralbumoritem
http://mysite.com/es/index.php%3Fq%3Dde/mygallery2/whateveralbumoritem
and they take me to the german version, no matter what language I click in the Languages menu block.
if I'm coming from the spanish page of embedded Gallery2 (/es/mygallery2)
http://mysite.com/en/index.php%3Fq%3Des/mygallery2/whateveralbumoritem
http://mysite.com/de/index.php%3Fq%3Des/mygallery2/whateveralbumoritem
http://mysite.com/es/index.php%3Fq%3Des/mygallery2/whateveralbumoritem
and they take me to the spanish version, no matter what language I click in the Languages menu block.
The admin pages get redirect to the root album in the right language each case.
The root album (mygallery2) get the right links in the Languages block and is redirect to its version in each language.
- The G2 grid block doesn't take me to the item and I get an error:
ACCESS DENIED
warning: Invalid argument supplied for foreach() in /htdocs/mysite.com/drupal/includes/menu.inc on line 376.
You are not authorized to access this page.
([lang] could be "en" "de" or "es")
_______________________________________________________________________________
3.- Clean URLs in G2 NOT activated:
- With clean URLs not enabled my URLs look like
http://mysite.com/index.php?q=[lang]/mygallery2&g2_itemId=30
and fortunately they return the page of the album or item as expected.
- The G2 grid block does work as well and takes me to the item (photo).
- But the Languages block in Drupal cannot take me to the other languages album page. It returns a page not found. The links in the Languages block are of the form:
if I'm coming from the english page of embedded Gallery2 (/en/mygallery2)
http://mysite.com/en/index.php%3Fq%3Den
http://mysite.com/de/index.php%3Fq%3Den
http://mysite.com/es/index.php%3Fq%3Den
if I'm coming from the german page of embedded Gallery2 (/de/mygallery2)
http://mysite.com/en/index.php%3Fq%3Dde
http://mysite.com/de/index.php%3Fq%3Dde
http://mysite.com/es/index.php%3Fq%3Dde
if I'm coming from the spanish page of embedded Gallery2 (/es/mygallery2)
http://mysite.com/en/index.php%3Fq%3Des
http://mysite.com/de/index.php%3Fq%3Des
http://mysite.com/es/index.php%3Fq%3Des
I hope this can help!
I have been reading all the documentation several times and as far as I can tell, my installation is done properly, although it took me some time to understand how to set up everything.
I am using D6.3 and G2.3 and all modules are up to date.
Thanks.
psc
Comment #8
apophis.ch commentedI dont know enough about the gallery2 module and gallery2 itself, however I looked into the fix, and I am very sure this fix never was actually tested...
The original looked like this (Its in gallery_base.inc):
The current version has just copied this attempt into a special case, however the str_replace in the first place is wrong.
I fixed it like that:
In principle this is working, however it looks like this is only the ROOT Album (gallery), and doesn't include the sub albums(gallery/v) [is this part of g2 itself maybe?]. However this leads to the wrong language in most of the cases, since the "prefix" is not recognized by Gallery2, Gallery2 has a manual Language switch which is called g2_language=
So the urls should not look like
/de/gallery/v/
it should look like
/gallery/v/?g2_language=de
This should be possible to fix with a rewrite rule, right? At least I haven't found a rewrite rule for the language.
The fix above at least lets you browse the sub-albums, even though in the standard language, its similar to the hack in http://drupal.org/node/228864 (post 3 I think)
Argh now I wroted all this I see that there is something wrong with the breadcrumbs now...
but for tonight I have enough...
cya
Apophis
Comment #9
metabits commentedI gave up using this module!
The compicated integration on G2 is no worthy for me.
In reality all I want is a module that injects IPTC fields into Drupal Fields, specially Caption field and Keywords, and that for D6!
Thanks anyway for your hepl!
psc