Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Language to Spanish


acabiya

Recommended Posts

Need some help? I changed on the Admin Module the Default language to Spanish BUT the page continues in English.

 

Can some one tell me what is happening?????

Link to comment
Share on other sites

Need some help? I changed on the Admin Module the Default language to Spanish BUT the page continues in English.

 

Can some one tell me what is happening?????

 

Howdy! you need to edit your "catalog/includes/application_top.php". Find

 


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();
}

 

and change it to:

 

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");
}

 

This will allow for OSC to use the variable set on the CP and not use the browser for language selection. Hope this helps. Bendiciones!.

Link to comment
Share on other sites

  • 8 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...