ClearSolid Posted September 19, 2013 Share Posted September 19, 2013 I dont mind having the /fr /es but is there no way to at least remove the default /en ? Link to comment Share on other sites More sharing options...
tuk66 Posted September 19, 2013 Share Posted September 19, 2013 Why? Just disable English with the same result. 1 Link to comment Share on other sites More sharing options...
vekia Posted September 19, 2013 Share Posted September 19, 2013 i suppose that he want to use 3 languages but for default lang he want to remove the /en by default, when you use more than 1 language - it isn't possible to remove language indicatior but it is possible to achieve this with module like remove iso for default language Link to comment Share on other sites More sharing options...
luchiniii Posted November 21, 2013 Share Posted November 21, 2013 Hello I have a similar problema. What I need to do is to remove the language indicator from the default language. I have spanish and english, spanish links can appear like www.xxxxx.com/es/... but I need that english links appear like wwwxxxx.com/...... thanks for your help. Link to comment Share on other sites More sharing options...
luchiniii Posted November 21, 2013 Share Posted November 21, 2013 (edited) Finally I found the answer. edit the file ps/classes/Link.php replace in function called getLangLink: return Language::getIsoById($id_lang).'/'; with: if (Configuration::get('PS_LANG_DEFAULT') == $id_lang) { return ''; }else{ return Language::getIsoById($id_lang).'/'; } Then edit ps/classes/Tools.php replace in function called switchLanguage: if (($iso = Tools::getValue('isolang')) && Validate::isLanguageIsoCode($iso) && ($id_lang = (int)Language::getIdByIso($iso))) $_GET['id_lang'] = $id_lang; with: if ( !( ($iso = Tools::getValue('isolang')) && Validate::isLanguageIsoCode($iso) && ($id_lang = (int)Language::getIdByIso($iso)) ) ){ $_GET['id_lang'] = Configuration::get('PS_LANG_DEFAULT'); }else{ $_GET['id_lang'] = $id_lang; } this works in PS. 1.5 and remove the subfolder for the default language in the friendly url. Edited November 21, 2013 by luchiniii (see edit history) 6 Link to comment Share on other sites More sharing options...
Piotr Kaczor Posted January 11, 2014 Share Posted January 11, 2014 Hello This solution works very well but unfortunately Block layered navigation show results in default language. Can someone help, how to fix it? Link to comment Share on other sites More sharing options...
OBSEVILLA Posted June 9, 2015 Share Posted June 9, 2015 Hi, I have the same problem as Piotr, Someone has fixed it ? Link to comment Share on other sites More sharing options...
Recommended Posts