Automatic browser language detection?

Can Dolphin 6.x automatically detect the language and redirect the user to the according localization? That would me much smarter than the manual language selection.

Thanks!

Dirk

Quote · 11 May 2010

The script cannot do this by default.  However, there are some mods out there that can do this.  I personally had a developer do this for me, along with making email templates, site news, and polls translatable. He made the language switch according to browser settings.

The developer who did this is: citizenkane

Taking Dolphin and Making Profitable Websites Since 2009 :)
Quote · 11 May 2010

The script cannot do this by default.  However, there are some mods out there that can do this.  I personally had a developer do this for me, along with making email templates, site news, and polls translatable. He made the language switch according to browser settings.

The developer who did this is: citizenkane

LeonidS is CitizenKane. It's one of the pseudo-accounts he uses when he doesn't want to be affiliated with his real account.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 11 May 2010

OK, found the solution myself:

1. create a copy of your index.php and call it e.g. start.php

2. use this code in your index.php as a language detection tool to call the according localized start page correctly:

<script type=text/
var language = navigator.language
else
var language = navigator.browserLanguage
if (language.indexOf('en') > -1) document.location.href = 'http://www.yoursitename.com/start.php/?lang=en';
else if (language.indexOf('de') > -1) document.location.href = 'http://www.yoursitename.com/start.php?lang=de';
else
document.location.href = 'http://www.filiyou.com/start.php/?lang=en';
// -->
</script>

not a big deal at all.

Dirk

Quote · 12 May 2010

Ahh, interesting.  Thanks for sharing.

Taking Dolphin and Making Profitable Websites Since 2009 :)
Quote · 12 May 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.