Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

default language


bambi

Recommended Posts

Posted

I set it as default, but when I'm opening my site it starts with english(english isn't the default language)

Posted
I set it as default, but when I'm opening my site it starts with english(english isn't the default language)

 

what is your browser language and what languages does your store support ?

Treasurer MFC

Posted
what is your browser language and what languages does your store support ?

 

 

you see, if I set english as my browser language, I get your store in english.

if I set my browser language to anything else, I get bulgarian.

Treasurer MFC

Posted
there something that I don't understand  :'(  How can i set my main page to appear in bulgarian?

 

 

your site has bulgarian and english support.

your default language is bulgarian.

 

if I set my browser language to english I get your site in english because osc checks my language setting and because you have english support, that is what I get. If I set my browser language to anything you do not support, osc will present me the default language which is bulgarian.

 

So check the language settings in your browser, I bet it is set to english.

Treasurer MFC

Posted

Thanks, I undestand you but is there a way my site appears in bulg. without set browser to bulgarian? More peoples don't set their browsers to other language than this one which is default(english)

Posted
Thanks, I undestand you but is there a way my site appears in bulg. without set browser to bulgarian? More peoples don't set their browsers to other language than this one which is default(english)

 

 

sure, in application_top.php

 

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

}

 

instead of get_browser_language()

use set_language('bu');

 

'bu' should be the code you gave your language

Treasurer MFC

  • 1 year later...
Posted

I've tried it but it seems it doesn't work for me ! I'm quite new in this and I dont know waht exactly to change!

 

 

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(); I'm canging this to: set_language('bu'); is this the correct solution !?

}

 

instead of get_browser_language()

use set_language('bu');

Archived

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

×
×
  • Create New...