hugoter Posted April 7, 2016 Share Posted April 7, 2016 Hi,I have problem with front end translations.Default language is czech, secondary language is english.In english works translation of modules but frontend translations are still displayed in czech.http://www.eleven-sportswear.cz/en/jizdni-kola-focus/3016-mountain-bike-focus-black-forest-lite-27.html (see for example add to cart buuton)http://www.eleven-sportswear.cz/en/23-beanies(see for example number of products)If I set english as default language, translations work. Anyone had same issue or can point me to solution?Thanks in advance Link to comment Share on other sites More sharing options...
Sport Muscle Posted August 29, 2016 Share Posted August 29, 2016 Same problem for Spanish translation of frontend modules and theme. Please share solution if you find one. Thanx! Link to comment Share on other sites More sharing options...
hugoter Posted September 26, 2016 Author Share Posted September 26, 2016 I just found that after migrating from presta 1.4 Czech language has ID 5 .. and English has ID 1 think this might be causing problems, do not want to mess up live project will do some tests soon Link to comment Share on other sites More sharing options...
Premitium Posted September 27, 2016 Share Posted September 27, 2016 Have you tried to clear the presta cache from the admin panel? Link to comment Share on other sites More sharing options...
Jorge83 Posted February 6, 2017 Share Posted February 6, 2017 I have the same problem. I have my web in spanish and after I install the English language. All the trasnlations from de DB work fine but the translations for the Front Office don´t work, prestashop show the text for the default language that it is spanish.I´ve tried to clear the cache, change the permissions for the files, change the defaut language, but nothing work for me. Has anyone found a solution? Link to comment Share on other sites More sharing options...
Jorge83 Posted February 9, 2017 Share Posted February 9, 2017 I find a solution that works for me. In the file "./config/smartyfront.config.inc.php" I change in the function "smartyTranslate": function smartyTranslate($params, &$smarty){ // ORIGINAL // global $_LANG; $iso_code = Context::getContext()->language->iso_code; include _PS_THEME_DIR_.'/lang/'.$iso_code.'.php'; because in my case Prestashop doesn´t take the correct values for $_LANG Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now