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?

CommentFileSizeAuthor
#1 languagedetect-D6.patch5.81 KBGuyveR800
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

GuyveR800’s picture

Assigned: Unassigned » GuyveR800
Status: Active » Needs review
FileSize
5.81 KB

I 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.

Xano’s picture

Version: 6.x-dev » 7.x-dev
s.Daniel’s picture

Xano’s picture

We'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 :-)

alexanderpas’s picture

Status: Needs review » Closed (duplicate)

marking this one as duplicate of #282178: Language negotiation overhaul

hba’s picture

After 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!

mean0dspt’s picture

I 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

mean0dspt’s picture

I 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

Kevin P Davison’s picture

I 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!

nielses’s picture

Thank 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