OSCOMMERCE SUPPORT CALL 702-453-3332

 

Help - Search - Members - Calendar
Full Version: Default language set, but still no result.
osCommerce Community Support Forums > osCommerce Online Merchant v2.x > Contributions / Add-Ons > Languages and Zones
Hyrvao
My problem is that I set swedish language as default, but when I come into the site.. it's still english, no idea why.
I've changed the swedish and it works fine so I don't really see where the problem is.

Is there any other place I must change also? I've set currencies to swedish as default.

Thanks
Hyrvao
hari_shyam
QUOTE (Hyrvao @ Jan 25 2008, 02:29 PM) *
My problem is that I set swedish language as default, but when I come into the site.. it's still english, no idea why.
I've changed the swedish and it works fine so I don't really see where the problem is.

Is there any other place I must change also? I've set currencies to swedish as default.

Thanks
Hyrvao


Hi Hyrvao

Do one thing.. clode the window/browser refresh the session and try again.. i think it will work then.. cos the language is stored in the session variables i think you will need to recreate the session for the default language to chip in.

Hari
birddogsgarage
Ive been trying to find the same solution for days

Im not really sure what the default language setting is for because application_top.php tells it to get the browser language

CODE
if (isset($HTTP_GET_VARS['language']) && tep_not_null($HTTP_GET_VARS['language'])) {
      $lng->set_language($HTTP_GET_VARS['language']);
    } else {
      $lng->get_browser_language();
    }


So oyu need to change that code so it doesnt use the browser language but instead use the default language

CODE
if (isset($HTTP_GET_VARS['language']) && tep_not_null($HTTP_GET_VARS['language'])) {
      $lng->set_language($HTTP_GET_VARS['language']);
    } else {
      //$lng->get_browser_language();
      $languages_query = tep_db_query("select configuration_value from configuration where configuration_key='DEFAULT_LANGUAGE'");
      $defLan = tep_db_fetch_array($languages_query);
      $lng->set_language("$defLan");
    }


Worked for me,
Hope it helps you out.
the2003s
QUOTE (birddogsgarage @ Mar 5 2008, 11:49 AM) *
Ive been trying to find the same solution for days

Im not really sure what the default language setting is for because application_top.php tells it to get the browser language

CODE
if (isset($HTTP_GET_VARS['language']) && tep_not_null($HTTP_GET_VARS['language'])) {
       $lng->set_language($HTTP_GET_VARS['language']);
     } else {
       $lng->get_browser_language();
     }


So oyu need to change that code so it doesnt use the browser language but instead use the default language

CODE
if (isset($HTTP_GET_VARS['language']) && tep_not_null($HTTP_GET_VARS['language'])) {
       $lng->set_language($HTTP_GET_VARS['language']);
     } else {
       //$lng->get_browser_language();
       $languages_query = tep_db_query("select configuration_value from configuration where configuration_key='DEFAULT_LANGUAGE'");
       $defLan = tep_db_fetch_array($languages_query);
       $lng->set_language("$defLan");
     }


Worked for me,
Hope it helps you out.


Yep, I had the same problem, and this solution works for me. Thanks birddogsgarage!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.