dolphin automatically in the browser language

Hello,

how can my dolphin page be automatically in the browser language of the user

is shown.

Quote · 24 May 2019

Hello Jurgen!

 

Please specify your request. Dod you mean you have the new Dolphin page and you need to set it according to browser settings? But it is already in Dolphin language detector. The following code in inc/languages.inc.php is responsible for this action (function getCurrentLangName):

   if( !$sLang && !empty($_GET['lang']) ) $sLang = tryToGetLang( $_GET['lang'], $isSetCookie );
    if( !$sLang && !empty($_POST['lang']) ) $sLang = tryToGetLang( $_POST['lang'], $isSetCookie );
    if( !$sLang && !empty($_COOKIE['lang']) ) $sLang = tryToGetLang( $_COOKIE['lang'] );
    if( !$sLang && ($sLangProfile = getProfileLangName()) ) $sLang = tryToGetLang( $sLangProfile );
 if( !$sLang && !empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) ) $sLang = tryToGetLang( $_SERVER['HTTP_ACCEPT_LANGUAGE'] );
    if( !$sLang ) $sLang = tryToGetLang( getParam( 'lang_default' ) );
    if( !$sLang ) $sLang = tryToGetLang( BX_DOL_LANGUAGE_DEFAULT );

 The bold line detects the language form the browser settings

Quote · 24 May 2019

 

Hallo Jürgen!

 

Bitte spezifizieren Sie Ihre Anfrage. Meinst du, du hast die neue Dolphin-Seite und musst sie den Browsereinstellungen anpassen? Aber es ist schon im Dolphin-Sprachdetektor. Der folgende Code in inc / languages.inc.php ist für diese Aktion verantwortlich (Funktion  getCurrentLangName ):

if (! $ sLang &&! empty ($ _ GET ['lang'])) $ sLang = tryToGetLang ($ _GET ['lang'], $ isSetCookie); if (! $ sLang &&! empty ($ _POST ['lang'])) $ sLang = tryToGetLang ($ _POST ['lang'], $ isSetCookie); if (! $ sLang &&! empty ($ _COOKIE ['lang'])) $ sLang = tryToGetLang ($ _COOKIE ['lang']); if (! $ sLang && ($ sLangProfile = getProfileLangName ())) $ sLang = tryToGetLang ($ sLangProfile);
 if (! $ sLang &&! empty ($ _ SERVER ['HTTP_ACCEPT_LANGUAGE'])) $ sLang = tryToGetLang ($ _SERVER ['HTTP_ACCEPT_LANGUAGE']);
if (! $ sLang) $ sLang = tryToGetLang (getParam ('lang_default')); if (! $ sLang) $ sLang = tryToGetLang (BX_DOL_LANGUAGE_DEFAULT);

 Die fette Linie erkennt die Sprache aus den Browsereinstellungen

 my girlfriend has just tested with her Thai phone is all okay thank you

Quote · 24 May 2019
 
 
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.