- Installed Drupal 6.2
- Downloaded and imported Polish translation
- Selected Polish as default language
- works as expected - In admin's profile selected English
- completely no effect!
Please see:
http://drupal.org/node/231114
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | language.inc_.patch | 447 bytes | Wojtek Kruszewski |
Comments
Comment #1
damien tournoud commentedWhat is your setting for the "language negociation" option? It has to be "None" for the user-specific language to be applied in all cases.
Comment #2
Wojtek Kruszewski commentedI left the "language_negotiation" setting as "None".
I think the problem is in language.inc file, in language_initialize function.
There is a switch block checking for language negotiation value. If it's set to LANGUAGE_NEGOTIATION_NONE it returns language_default().
Right after the switch block there's a code that checks for user language setting. I guess that this code should be executed, when language negotiation is set to none, so I commented out appropriate case statement.
Patch attached (against Drupal 6.2).
Comment #3
alliax commentedI have a drupal 6.2 in multi install.
I use it to create french (only) and english (only) websites on the same base files.
When I create french sites, I then go to admin user options to change the interface to english, but it doesn't work, it always appear in french.
When I create english sites, the admin user is in english too of course, and I never tried to change it to french.
I think the issue is not important for a lot of users because the vast majority will only ever want english, and for those who want to create a site in another language, they'll be more than happy to have everything in their language. Only a small part of webmasters want to have everything in english for them to manage a site in another language, and also maybe those who have multi languages sites..
For me it's very important because I don't like switching languages for admin tasks, I prefer to have everything in english whatever the main language for the site is.
Comment #4
damien tournoud commentedOk, so this is just a plain duplicate of #222401: Code block never executes in language_initialize(), that already has a patch.
Comment #5
Wojtek Kruszewski commentedYou're right. I see you reached the same solution.
Thank you!
Comment #6
mmaul commentedThank you thank you thank you! Whenever I set up German language sites, the German admin section is driving me nuts. Let’s hope that this makes it into the next D6 release.
Comment #7
karimbolivia commentedWojtek.
Thanks for your patch. Works nice in Drupal 6.6 but only with Authenticated user but not with Anonymous user.
Is there something I missed?
Thx and best regards from Bolivia
Comment #8
alliax commentedAnonymous users don't have a choice because they don't have an account! That's the expected behavior : changing one's default language in one's user account should make drupal show interface in this language.
Comment #9
alliax commentedI've lost all hopes of it being implemented in any next D6 release when you read higher level drupal developpers, they're stubborn and only talk about trying to get back the CORRECT behavior into Drupal7. Their reason is because this new stupid way was BY DESIGN in D6 and not a bug, hahaha!
Comment #10
stefanhapper commentedThe real problem is that only part of the admin interface / modules is translated so you end up with a mix of English and a second language for the admin which is not nice. I very much support the ability to select an admin language (or better to take the language set in the user options)
Comment #11
Ivanhoe123 commentedThank you very much!
So far this solution works better than the Administrator Language module (http://drupal.org/project/admin_language)