I am maintaining a Japanese and English site.
Last year I was able to view my site in English and Japanese by clicking the language switch or putting /ja or /en at the URL .
This year (I suspect it was after I upgraded to Drupal 6.15), I can only view Japanese version with a Japanese browser
(and the English version with an English browser), no matter I click the language switch button (Actually, the URL has changed
to example.com/ja or example.com/en after I clicked the button) the language will not change.
If a user login with Japanese as his default language, he can only view the Japanese version (no matter what language the browser is.
In the same way, if a user login with English as his default language, he can only view the English even in a Japanese browser.
Please help me to find out what the problem is. Thank you very much.
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | cachekuni.JPG | 169.22 KB | Anonymous (not verified) |
| #14 | cachekuni2.JPG | 119.79 KB | Anonymous (not verified) |
Comments
Comment #1
linksunten commentedWe confirm this bug. It renders the multilanguage support of our website useless. This error occurs with Drupal 6.12, too.
Comment #2
brucepearson commentedI'm not sure what would cause this but I would check your language negotiation settings: /admin/settings/language/configure
Try "Path prefix only".
Comment #3
linksunten commentedIt is set to "Path prefix with language fallback". It worked before and we did not change it. In fact, it is set to "Pfadpräfix mit Rückfallsprache" but we cannot view /en/admin/settings/language/configure in English. :-(
Comment #4
andrewpao commentedI tried the "Path prefix only", and it doesn't work.
Comment #5
brucepearson commentedwhat is your sites url so I can have a look?
Comment #6
andrewpao commentedI reviewed what I have done last year end.
I discovered that I have installed the automated logout module.
After I unchecked the module, I can change the language again.
So maybe we need to write a bug report for the automated logout module.
So linksunten, have you installed the automated logout module too?
Thank you for taking care of this issue, brucepearson. Let's see if linksunten has the same problem too.
By the way, before I found the real problem and unchecked the automated logout module, putting the language configure to "Path Prefix Only" instead of "Path prefix with language fallback" make the site only show up only the default language (in my case, Japanese) no matter what the browser's language is. Just for your reference.
Comment #7
andrewpao commentedI tried to put back the "automated logout" to version 6.x-2.2 and it has no problem with the language switch. But it says it has a security update and must be update to 6.x-2.3. But 6.x-2.3 does not work well with the i18n module.
Comment #8
andrewpao commentedI have made another bug report for the automated logout:
http://drupal.org/node/685450
Comment #9
linksunten commentedYes, we did install automated logout. Yes, after deactivating the automated logout module the language negotation works again. Thank you very much!
Comment #10
andrewpao commentedInstalling Automated logout 6.x-2.x dev should fix the problem.
Comment #11
finex commentedI'm having the same problem without automatic logout.
Comment #12
finex commentedI've solved following this: http://drupal.org/node/357670#comment-1392030
Comment #13
finex commentedI've speak too early... that workaround doesn't works. If I set even the default language with a prefix, it works, if the default language doesn't have a prefix, the problem is not solved :-(
Comment #14
Anonymous (not verified) commentedI have the same issue with Druapl 6.15.
My language negotiation is set to 'Path prefix with language fallback.'
But when a user on a Japanese OS machine/browser comes to my front page he always gets in in Japanese. It should be displayed in English, since that is the default.
Even worse, using the language switcher doesn't seem to work. I'm assuming the problem is because the default language doesn't have a language prefix and that cause Drupal to use it's 'fallback', which is to use the browser's language.
You can test this on my site at www.cachekuni.com
If you access the site using a Japanese broswer, you will get the front page in Japanese. It should be in English. If you try to use the language switcher, it will not work either.
Comment #15
brucepearson commentedIf you have 'Path prefix with language fallback' three things are checked:
1) If the user is logged in it then returns users language setting
2) If the user is not logged in then it will use the language from the browser if it can get this
3) Finally it will use the default language.
You need to use 'Path prefix' if you don't want it to use these fallbacks.
Comment #16
Anonymous (not verified) commentedThanks for the quick reply and thanks for visiting my site.
What you say makes sense, but why doesn't the language switcher work? I would have thought that it would force Drupal to display in what ever language the user choses.
Comment #17
finex commentedI'd like to set the default language without a prefix but with the fallback enabled. Is it possible?
Comment #18
jose reyero commentedAfter reading through the thread, specially #6, this looks like related to other modules or your language negotiation settings (that's Drupal core).
So I'm closing this one. Feel free to reopen if you are positive this is caused by i18n (Easy: try without i18n, try with i18n).