Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Default language settings and different locale PCs


garnet

Recommended Posts

Posted

Hi my site has 2 languages: EN, and BG

Now it is set so BG is the default language, on my home PC it starts as BG, but on my office PC it starts wit EN.

How can I make it to start only in GB everywhere?

Could it have somethig to do that my home PC is set to BG locale, and my office one is set to EN.

Thanks a lot.

OSC beginner

Posted
Hi my site has 2 languages: EN, and BG

Now it is set so BG is the default language, on my home PC it starts as BG, but on my office PC it starts wit EN.

How can I make it to start only in GB everywhere?

Could it have somethig to do that my home PC is set to BG locale, and my office one is set to EN.

Thanks a lot.

 

nobody knows this??? :rolleyes:

OSC beginner

Posted

The language displayed first when you open the site depends on the browser language of your local computer. The only way you can force it is to modify the catalog/includes/application_top.php.

Posted
The language displayed first when you open the site depends on the browser language of your local computer. The only way you can force it is to modify the catalog/includes/application_top.php.

 

 

thanks, which part do I modify?

Also for now I can see the site is found in google mainly with english index page, i.e. the summary in google is the english homepage. Is there a way to meke google to see bulgarian version?

.htaccess redirect to .....lang=bg maybe or this will screw up with the serach engines.

OSC beginner

Posted

Did you already take a look at the language section of application_top.php? Should be already self explanatory what to do there. Check out the language_id of BG in the database first.

Posted
Did you already take a look at the language section of application_top.php? Should be already self explanatory what to do there. Check out the language_id of BG in the database first.

 

 

Hi

 

my language id is 4, bg

but I dont see where to chage it in the application_top. Thats the code but I dont see where. Help please

 

// set the language
 if (!tep_session_is_registered('language') || isset($HTTP_GET_VARS['language'])) {
   if (!tep_session_is_registered('language')) {
     tep_session_register('language');
     tep_session_register('languages_id');
   }

   include(DIR_WS_CLASSES . 'language.php');
   $lng = new language();

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

   $language = $lng->language['directory'];
   $languages_id = $lng->language['id'];
 }

OSC beginner

Posted
Instead of $lng->get_browser_language(); you should use $lng->set_language('bg');

thanks

OSC beginner

Posted
Instead of $lng->get_browser_language(); you should use $lng->set_language('bg');

 

 

Hi there,

Any cance you can direct me to how to change the admin login page so it always is english that is the default language.

Which file and where is it shold be mod/ed

 

Thanks

OSC beginner

Archived

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

×
×
  • Create New...