straller Posted November 26, 2006 Share Posted November 26, 2006 I'm testing OSC on my localhost and use English & my country's language (Vietnamese)in my website. My problem is, I can't set Vietnamese as default language :( In "Admin" page/Localization/Language , when editting "Vietnamese" language, I ticked in "Set as default" and in "Sort Order" I set it the value "0" (ofcourse, English = 1). But when I run "localhost/..../catalog/index.php", the language in homepage is English :'( I'm very new, please help me :) Thank much! Le Hung! Quote Link to comment Share on other sites More sharing options...
nelsonevp Posted November 27, 2006 Share Posted November 27, 2006 I'm testing OSC on my localhost and use English & my country's language (Vietnamese)in my website. My problem is, I can't set Vietnamese as default language :( In "Admin" page/Localization/Language , when editting "Vietnamese" language, I ticked in "Set as default" and in "Sort Order" I set it the value "0" (ofcourse, English = 1). But when I run "localhost/..../catalog/index.php", the language in homepage is English :'( I'm very new, please help me :) Thank much! Le Hung! Did you see the link, between your shop and the main page if you has a host? Nelson Quote Link to comment Share on other sites More sharing options...
straller Posted November 28, 2006 Author Share Posted November 28, 2006 Did you see the link, between your shop and the main page if you has a host?Nelson :( SOrry, I don't understand your question. I'm only testing my shop in localhost. My problem's, I can't set my language as default. The default language of my shop is still English :( Plzzzz....help me! Quote Link to comment Share on other sites More sharing options...
PropioWeb Posted November 28, 2006 Share Posted November 28, 2006 This is what you do: 1. Go to catalog/includes/application_top.php 2. Replace this line: $lng->get_browser_language(); With //$lng->get_browser_language(); 3. Save and upload. 4.Your done. snk7 1 Quote Samuel Mateo, Jr. osC 2.2 MS2 Installed Mods: WYSIWYG HTMLArea 1.7 | Basic Template System 1.0 | osC-Affiliate | OSC-SupportTicket Featured Products 1.3 | LoginBox 5.2 | LatestNews 1.1.3 | Extras for IE Link to comment Share on other sites More sharing options...
straller Posted November 29, 2006 Author Share Posted November 29, 2006 This is what you do: 1. Go to catalog/includes/application_top.php 2. Replace this line: $lng->get_browser_language(); With //$lng->get_browser_language(); 3. Save and upload. 4.Your done. Hey I've solved my problem by downloading the Bug Fixed in Default Language Function http://www.oscommerce.com/community/contributions,3960/page,8 This's only for my country language, Vietnamese, but I think, we can set anylanguage as default basing this Bug fixed. @PropioWeb : I 'll try your guide to find out another way. Thank for you help :) Quote Link to comment Share on other sites More sharing options...
magicproshop Posted February 16, 2007 Share Posted February 16, 2007 Thanks for the code. :) Quote Arizona Patent Services Link to comment Share on other sites More sharing options...
shu keat Posted June 16, 2009 Share Posted June 16, 2009 wow it works...thanks..... Quote Link to comment Share on other sites More sharing options...
a1carbs Posted June 18, 2009 Share Posted June 18, 2009 hi, how do i remove languages other than english from the front page without messing up the php? -josh www.a1carbs.com/store Quote Link to comment Share on other sites More sharing options...
ericattack Posted May 3, 2015 Share Posted May 3, 2015 Yes it works. Whant to thank you for the link. http://www.oscommerce.com/community/contributions,3960/page,8 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.