Dolphin site default language

Hello. Although I have created a new language and it compiles fine and i have set it to default site language, and the site displays itself with the new language, when someone new accesses the website the site is still in ENGLISH
I have set the new language to site default but still the website is in english
if you access it you can see it displays in english. Although there is a second language installed. And it works fine. I need the script to display itself in the second language at all time.
Please help me
Quote · 20 Oct 2010

Hi there,

did you find a solution to your issue ? I am running 7.0.7 and default language is always english. I think it is overwritten by browser localization.

Regards

Quote · 16 Aug 2011

It looks like a bug. You can follow the ticket here: http://www.boonex.com/trac/dolphin/ticket/2622

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 16 Aug 2011

Actually i traced the issue and i am posting here as it might not be a bug.

in languages.inc.php in method getCurrentLangName we have these lines :

if( !$sLang && !empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) ) $sLang = tryToGetLang( $_SERVER['HTTP_ACCEPT_LANGUAGE'] );
if( !$sLang ) $sLang = tryToGetLang( getParam( 'lang_default' ) );
if( !$sLang ) $sLang = tryToGetLang( 'en' );

so the application will take the browser language first, then the default and then english. Personally i commented out browser detection. I think it is not a bug but a feature request to place an option to language settings, to overwrite or not browser localization.

Regards

Quote · 16 Aug 2011

Works like a charm! Thanks!

Quote · 4 Jul 2015
 
 
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.