Closed (won't fix)
Project:
Drupal core
Version:
6.15
Component:
locale.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Jan 2009 at 05:45 UTC
Updated:
1 Jun 2010 at 12:20 UTC
Hi,
My site default language (admin/settings/language) is set to Thai and in Language negotiation settings I have "Path prefix with language fallback".
For anonymouse users, the switcher link for English points to http://localhost/, which would get displayed in Thai because the site default language is Thai.
For a logged in user who has default language set to Thai in user/xxx/edit, the switcher link for English also points to http://localhost/, which would get displayed in Thai because the default language is Thai.
So, there seems to be no way to switch the interface to English for these users. Am I doing something wrong or is this a bug?
Comments
Comment #1
danoguru commentedI have the same problem, it seems that if you have a multi language site, you still have to use English as the default language, since english has not a language string ("en"). If you select language negotiation "only path prefix" it will let users to really choose a language, instead of falling back to browser language or user defined language.
But this is not a solution to this problem, since I want another language to be default. When I choose german as default language it will be selected both in "http://www.example.com/" and "http://www.example.com/de".
Questions: How can I have a multi-language-site (using i18n mudule) with default language other than english.
thanx for help in advance!
Comment #2
danoguru commentedok, I solved this issue by adding a path prefix for english
http://www.example.com/en/admin/settings/language/edit/en
Comment #3
betancourt commentedThanks for the help. It solved my issue
Comment #4
damien tournoud commentedComment #5
bbenone commentedAh, thanks for that suggestion. It worked for me too. I spun my wheels for hours trying to figure this one out.
This really should just be set automatically. I'm helping a friend with their site which was deployed in Spanish, and has been translated to English, French & German. The English translation was not available, unless you created an account and then set your account default language to English. Anonymous users browsing the site (99% of the hits) had no way to switch to English; but they could to any other language. Makes no sense.
Also, as far as I can tell, having this set automatically wouldn't hurt anyone, as it could be ignored for those that have their default language set as English.
It's still occurring as of 6.15, so I am updating the version number on this issue.
Comment #6
jmroth commentedYep this definitely would need to be fixed. (-> add path prefix for english to standard installation)
Comment #7
jmroth commentedUps well I have the problem in 6.6 but I believe you it is still there in 6.15 ;-)
Reverting...
Comment #8
dddave commentedAdding the path prefix would be a nice thing for sure and it would prevent dozens of support requests and issues a week. However this would be a feature request (this isn't a bug) and D6 won't get any new features. Any feature requests have to be against D8 at the moment (as D7 is feature frozen) and I think this problem is solved by then.
So this issue can be closed.
Comment #9
guti commentedThere is a serious drawback to this solution: you lose the ability to browse the website in the standard language without always hving the /en language prefix in the path.
Also, the content of www.example.com and www.example.com/en will be identical, resulting in reduced search engine ranking due to duplicate content.