Language problem

This is strange ... I set my website in Dutch as primary language, removed the link to switch to English, but when I open my site on my tablet, everything is in English.

 

How can I solve that problem ?

Quote · 11 Dec 2014

No one else encountered this problem ?

Quote · 11 Dec 2014

ok, I found something in the forums, but no solution to the problem.

 

My site is default Dutch

 

In the admin panel I set default country : BE

Default site language : Nederlands

 

My server is in the US and it seems (according to the forum I found) that users pick up the server language or the default language they set in their browser.

 

I don't want visitors to see my site in English because there's lots of english keys missing (I just don't need them) or translated in Dutch. It's kind of messy Cry

 

Is there a solution to avoid visitors seeing my site in English ?

Quote · 11 Dec 2014

The default language should work. unless your profile language setting is not default dutch then it's set to EN
Check the profile language setting.
Clear cache and try again.

Quote · 11 Dec 2014

It's not on my PC, but on my tablet where I opened the website for the first time. This means that people will also see my site in English when they visit for the first time.

 

Default language is set to Dutch.

Quote · 11 Dec 2014

you can force the language page onload. but there are other options too.

Quote · 11 Dec 2014

Please, how can I solve this problem ? This is important before I launch my website. Cry

Quote · 11 Dec 2014

 

Please, how can I solve this problem ? This is important before I launch my website. Cry

 Try to change the default country to NL

then empty cache in admin panel and your tabled browser

i have a dutch site with english and german languages enabled but when i browse with my tabled i get the dutch as default

Quote · 11 Dec 2014

That's not the solution. I changed to default NL, cleared caches, still in English.

Quote · 11 Dec 2014

You have stated your language is Dutch. However you have not stated what is the two letter language code that your dutch language file is named.

Many make the mistake of using the two letter country code as a language code. You need to make sure that nl is the language code your using.

https://www.deanbassett.com
Quote · 11 Dec 2014

Maybe this will clarify something ? These are my settings in admin panel.

Quote · 11 Dec 2014

To prevent the server settings from playing a role in determining what is chosen as a language, edit the file inc\languages.inc.php

Look for this at about line 43.

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

Comment out that line by adding // in front of it like so.

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


With that commented out, and assuming no cookie is set and no default language is set in the profile then the next default in line will be dolphins set default.

https://www.deanbassett.com
Quote · 12 Dec 2014

Also make sure your default site language is set to Dutch.

https://www.deanbassett.com
Quote · 12 Dec 2014

You may also want to run the following query in phpMyAdmin which will reset all profiles that have a selected language id set which will force profiles back to the default language until they select something else.

UPDATE `Profiles` SET `LangID`=0

https://www.deanbassett.com
Quote · 12 Dec 2014

Deano, THANKS !

 

Commenting out the line in inc/languages.inc.php worked.

 

They say there are no stupid questions, so ... why are these lines in the script anyway ? Doesn't a website always have a language ?

Quote · 12 Dec 2014
 
 
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.