nestorvaldez Posted February 13, 2004 Share Posted February 13, 2004 Each time my oscommerce website open, it open in spanish... I need to know how to set it up in english by defauld... I set already it in ..Location>Language>English:Default.. And it continue open by default in spanish.. And I need to solve this... it must open in english.... How I solve it.. And when I open the admin area it open in spanish to... Link to comment Share on other sites More sharing options...
241 Posted February 13, 2004 Share Posted February 13, 2004 what is your browser language default No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
nestorvaldez Posted February 13, 2004 Author Share Posted February 13, 2004 how I set my browse language.? I'dont know. Link to comment Share on other sites More sharing options...
armed Posted February 14, 2004 Share Posted February 14, 2004 While osCommerce languages handling is pretty smart, it might not be good for everyone, whatever language you choose in the setup it doesn't really matter, it always overwrites that value with the "costumer" or client side default explorer language, however I did a nice mod, I forced the language to spanish and you want to force it to english, let me show you. All you have to modify is in /includes/aplication_top.php this section begins in line 264 // 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(); // $lng == ('espanol'); // // 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']; // $language = 'espanol'; // this was added by me, put english instead $languages_id = '3'; // and the ID for english is just 1 // } The admin part will still show in whatever language unless you change the same thing there admin/includes/aplication_top.php begining in line 109 // 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']; // } $language = 'espanol'; $languages_id = '3'; I hope this solves your problem :) Link to comment Share on other sites More sharing options...
nestorvaldez Posted February 14, 2004 Author Share Posted February 14, 2004 That solution is good.. But is not solve my problem because it set in one language for all.. I want if I click Spanish it set to spanish, if i click German it set to german, and if i click English is set to English.. The only thing i want I just when I open the website it open in english by default, just this..when open the website or any customer access the website it open in english, but if anybody want this in spanish or german it can be change..... HELP... Give me a solution. please.. Link to comment Share on other sites More sharing options...
ozcsys Posted February 14, 2004 Share Posted February 14, 2004 That solution is good.. But is not solve my problem because it set in one language for all.. I want if I click Spanish it set to spanish, if i click German it set to german, and if i click English is set to English.. The only thing i want I just when I open the website it open in english by default, just this..when open the website or any customer access the website it open in english, but if anybody want this in spanish or german it can be change..... HELP... Give me a solution. please.. Go to admin/localization/languages/ and make sure the language you want is set to default. The default language is in bold and says default next to it. If the one you want is not set as the default change it using the edit button. The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right?? Link to comment Share on other sites More sharing options...
papa87 Posted February 14, 2004 Share Posted February 14, 2004 I don't understand why people gives all this codes, I don't have idea how to change all that without later have message, when you say is in includes/aplication_top.php I have to change it in my file (FTP FILE). The easy way for me to change it to English is open your website and go to oscommerce and/admin wwww.yoursite.com/oscommerce/admin you will see actions to choose go to location, language and is there, delete the lenguage that you don't want. 1) go to wwww.yoursite.com/oscommerce/admin 2) choose is location language 3) delete the lenguage you don't need That's what I call easy instructions no the other way.. Now can you help me to change the main page description mine say This is a demonstration online-shop, any products purchased will not be delivered nor billed. Any information seen on these products are to be treated fictional. and I want to write my own words Nestor Valdez! Muy latino nombre espero que hables espa?ol solo vete a su panel de administracion de oscommerce wwww.yoursite.com/oscommerce/admin y alli vas a ver a la derecha la opcion de locacion y escoge lengua y borra lo demas, yo lo hice ayer y ahora lo tengo todo en Ingles, tambien lo pude hacer para mi catalogo por que tenia 3 idiomas pero nesecito solamete el ingles. Nesecito saber si es que puedes ayudarme como cambiar el main page que me dice esto Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account? This is a demonstration online-shop, any products purchased will not be delivered nor billed. Any information seen on these products are to be treated fictional. If you wish to download this sample shop, or to contribute to this project, please visit the support site. This shop is based on osCommerce 2.2-CVS. DEJAME SABER como cambiarlo que no le encuentro. Bye Link to comment Share on other sites More sharing options...
241 Posted February 14, 2004 Share Posted February 14, 2004 papa87 try here Click :D No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.