Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem with Languages


Guest

Recommended Posts

hello all,

 

How can i enforce the deault language for a website?

 

Currently i have english and french and want to make French the default.

 

In the admin backend, I set french to be the default language and verified

it by checking in the configuration table.

 

After this, it STILL continues to load english as the default language.

 

Does anyone have any pointers for me?

 

Cheers,

 

Paul :blink:

Link to comment
Share on other sites

In catalog/includes/application_top.php around line 274 change this:

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

to this:

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

 

Works for me

 

The_Bear

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...