Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I would prefer to use no path prefixes at all, but just have the language fallback feature. This would give me pretty urls without prefixes, browser language for anonymous users, and preferred language for authenticated users. (A cookie-based language selection for anonymous users would be ideal, but not vital.)
Is there some technical difficulty or performance issue that's preventing this from being an option?
Comment | File | Size | Author |
---|---|---|---|
#1 | languagedetect-D6.patch | 5.81 KB | GuyveR800 |
Comments
Comment #1
GuyveR800 CreditAttribution: GuyveR800 commentedI made some changes in bootstrap.inc, language.inc, locale.inc and locale.module for Drupal 6.6 to allow a 5th language negotiation setting, which just does the user setting and browser language checks. I recommend using this setting together with the Active Translation module, which ends up a very elegant solution.
I guess new features belong in D7, but since this seems to be such a straight-forward and low-impact change I'm hoping it could be included in 6.7 anyway.
Comment #2
XanoComment #3
s.Daniel CreditAttribution: s.Daniel commentedRelated discussions:
http://drupal.org/node/222401
http://drupal.org/node/282191
http://drupal.org/node/282189
Related project:
http://drupal.org/project/preserve_language
Comment #4
XanoWe're currently working on this in #282178: Language negotiation overhaul. As far as I can see everything you want is being discussed and taken care of in that thread. If you have any comments on our approach, feel free to post them in that issue :-)
Comment #5
alexanderpas CreditAttribution: alexanderpas commentedmarking this one as duplicate of #282178: Language negotiation overhaul
Comment #6
hba CreditAttribution: hba commentedAfter I upgraded to 6.x the users' language settings weren't honored anymore (#352207: User language isn't honored after upgrade from 5.x to 6.x). The patch in #1 fixes this, thanks a lot!
Comment #7
mean0dspt CreditAttribution: mean0dspt commentedI agree that this is a good option to have, and I'm not really willing to wait for D7 for this option to appear, so I'll attempt this patch
Comment #8
mean0dspt CreditAttribution: mean0dspt commentedI tried this patch and it worked, but the user details edit became unavaliable (the page doesn't load) in Drupal 6.9, so I reverted.
I had to use http://drupal.org/node/222401#comment-844115 instead
Comment #9
Kevin P Davison CreditAttribution: Kevin P Davison commentedI need the i18n "Domain name only" option to INCLUDE "with language fallback." Anyone willing to help $$, as well as help apply the patch to make this whole system work?
Drupal 6.14 and i18n...
Thanks!
Comment #10
nielses CreditAttribution: nielses commentedThank you, GuyveR800. I succesfully applied your patch to Drupal 6.19 and it works exactly the way I would like it. I would expect the "Language detection" behaviour to be the default (i.e. following the user interface language preference from the My Acount page). I first believed it was a bug. After using quite some time searching drupal.org, I finally found your solution.
So my vote to include your patch in the official Drupal release.
Niels