Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Default language doesn works


sniperfox

Recommended Posts

Posted

Hey people,

 

I set my default language: portuguese. But always when I renter in the site again, the language is english instead of portuguese. someone can help me?

Posted
Hey people,

 

I set my default language: portuguese. But always when I renter in the site again, the language is english instead of portuguese. someone can help me?

 

somebody can help me?

Posted
I have the same problem !!!!!

 

Anybody can help us??

 

Thanks.

 

 

 

In catalog/includes/aplication_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 remove: $lng->get_browser_language();

 

but I did not verify if generate a bug.

Please backup aplication_top.php.

 

Regards.

Posted

Have a look in your default language file and look for a piece of code similar to

// if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language)

define('LANGUAGE_CURRENCY', 'USD');

 

Alter the USD to your default language.

REMEMBER BACKUP, BACKUP AND BACKUP

Posted
Have a look in your default language file and look for a piece of code similar to

 

Alter the USD to your default language.

 

 

Allready

 

define('LANGUAGE_CURRENCY', 'RON');

 

Not work :(

 

 

Until now, the only solution I have found is to remove: $lng->get_browser_language();

Posted

I resolve, seting in my browser (Internet Explorer) the idioms english for portuguese in tools->options->general->idioms

So, just set the language in your browser for the same default language from the oscommece

Posted
I resolve, seting in my browser (Internet Explorer) the idioms english for portuguese in tools->options->general->idioms

So, just set the language in your browser for the same default language from the oscommece

 

 

It is a solution, but not everybody have in IE this setting (your default language). For you it's ok but for your customers not.

 

Regards!

Archived

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

×
×
  • Create New...