I created a small patch (based on the large patch created by tom.vda http://drupal.org/node/591092) that adds automatic language detection.

Please review and provide feedback.

Comments

pieterdc’s picture

I'm just wondering, why did you change 'en' to 'en-us'?

alduya’s picture

StatusFileSize
new1.91 KB

Sorry, that was project specific code. Re-uploading a corrected patch.

pieterdc’s picture

Version: 6.x-1.9 » 6.x-1.x-dev
Component: Code » User interface
StatusFileSize
new2.44 KB

I extended the patch by changing the language setting field into a select box.
Thus clearly showing the available options / languages.

robbertnl’s picture

Using #3. I can confirm its working here.
i would suggest changing 'nl' => 'nl_BE', to 'nl' => 'nl_NL',

pieterdc’s picture

If Ogone supports 'nl_NL' ?
Which I don't know for sure.
You'd have to test it.

robbertnl’s picture

I am already using nl_NL, besides it's one of the examples of the Ogone documentation