acabiya Posted May 23, 2009 Share Posted May 23, 2009 Need some help? I changed on the Admin Module the Default language to Spanish BUT the page continues in English. Can some one tell me what is happening????? Link to comment Share on other sites More sharing options...
scanner29y Posted May 23, 2009 Share Posted May 23, 2009 Need some help? I changed on the Admin Module the Default language to Spanish BUT the page continues in English. Can some one tell me what is happening????? Howdy! you need to edit your "catalog/includes/application_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 change it to: 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(); $languages_query = tep_db_query("select configuration_value from configuration where configuration_key='DEFAULT_LANGUAGE'"); $defLan = tep_db_fetch_array($languages_query); $lng->set_language("$defLan"); } This will allow for OSC to use the variable set on the CP and not use the browser for language selection. Hope this helps. Bendiciones!. Link to comment Share on other sites More sharing options...
acabiya Posted May 24, 2009 Author Share Posted May 24, 2009 Gracias Luis. Dios te bendiga. Link to comment Share on other sites More sharing options...
fetish Posted May 26, 2009 Share Posted May 26, 2009 MUCHISIMAS GRACIAS ! NOSABES CUANTO ME HAS AYUDADO. Link to comment Share on other sites More sharing options...
seshalyn_pr Posted February 22, 2010 Share Posted February 22, 2010 Great Contribution ufff, was going nuts with this!!! Muchas Gracias!!! :thumbsup: I Hate PHP, LoLssss Visit My Site, Any constructive comments and suggestions Welcome :) WARNING: IT'S STILL UNDER CONSTRUCTION, LOLS Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.