I import another language to my site and put it in default. but when you log off and clean the cache and averything the default language in the Site is the English. But when i check the configuration siad the default is the language i selected.
I import another language to my site and put it in default. but when you log off and clean the cache and averything the default language in the Site is the English. But when i check the configuration siad the default is the language i selected. www.tumundo247.com - www.rampletea.com - www.clasificadosnetwork.com |
anyone? I import another language to my site and put it in default. but when you log off and clean the cache and averything the default language in the Site is the English. But when i check the configuration siad the default is the language i selected.
www.tumundo247.com - www.rampletea.com - www.clasificadosnetwork.com |
OK, I think the way someone said before is that by default dolphin will use the language based on location of user - I could be totally wrong, as It was a post I read a long time ago, and am not sure of all the details. Now - when i added a french language to my site - at first I did get the english language. But once i changed it to french at the very bottom, it stayed as french. This was in Firefox. I opened my site in Chrome and it went back to english. But if I close Firefox and reopen it and go to my site - it stays in French. So - I am gonna take a shot in the dark and say that Dolphin does use the default language of the user, and I would guess if none exists it would default to English. Once the user selects the language for them, it will be saved in as a language cookie. So clearing your browser cookies will also default your site back to english. I hope that makes sense. caredesign.net |
@Phan - OK, I have found a resolution for you - not exactle sure it is the proper way or if anything else will act up, but its what I have found, tried, and it works for me. inc/language.inc.php around line 43 - comment out the following by adding // in front of it: if( !$sLang && !empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) ) $sLang = tryToGetLang( $_SERVER['HTTP_ACCEPT_LANGUAGE'] ); so it looks like: // if( !$sLang && !empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) ) $sLang = tryToGetLang( $_SERVER['HTTP_ACCEPT_LANGUAGE'] ); caredesign.net |
oh crap, yes thats i want.
Question why i need to modified a code when the Site Language exist like a configuration in the script? that does not make sense at all :s and that code i comment what does? @Phan - OK, I have found a resolution for you - not exactle sure it is the proper way or if anything else will act up, but its what I have found, tried, and it works for me. inc/language.inc.php around line 43 - comment out the following by adding // in front of it: if( !$sLang && !empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) ) $sLang = tryToGetLang( $_SERVER['HTTP_ACCEPT_LANGUAGE'] ); so it looks like: // if( !$sLang && !empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) ) $sLang = tryToGetLang( $_SERVER['HTTP_ACCEPT_LANGUAGE'] );
www.tumundo247.com - www.rampletea.com - www.clasificadosnetwork.com |
this is the way I understand it: If there is no cookie set for language, then the site defaults to their native browser language or english. In which case, the user would have to select their language. After they select their language, then it creates a language cookie and the site will always show in the selected language unless browser cookies are deleted. So - commenting out that line is a removal of the "find out what language the browser is in" and will allow the admin default language to kick in. caredesign.net |
got it.
if in spain the browser setting is in spanish then dolphin change to Spanish language if not stay with the default (English) this is the way I understand it: If there is no cookie set for language, then the site defaults to their native browser language or english. In which case, the user would have to select their language. After they select their language, then it creates a language cookie and the site will always show in the selected language unless browser cookies are deleted. So - commenting out that line is a removal of the "find out what language the browser is in" and will allow the admin default language to kick in.
www.tumundo247.com - www.rampletea.com - www.clasificadosnetwork.com |
if in spain the browser setting is in spanish then dolphin change to Spanish language if not stay with the default (English)
Yes - unless there is no spanish language file, then I think it would resolve back to the english language file.. Again, this is how I understand it and I could be totally wrong. caredesign.net |