presta-servis.cz Posted October 18, 2015 Share Posted October 18, 2015 Hi, I have problém with my Prestashop 1.6.1.1 with translations. And the problem is that when I want to save my translation second language which in my case is english then every english translation is rewrite with default language in my case czech. So I am not able to translate my shop. When I upload language file to my theme manually and then go to translations page to translate something and save it then all english is rewrite. Can you someone help me with this? Thanks Michal Link to comment Share on other sites More sharing options...
Simonas Invertus Posted October 20, 2015 Share Posted October 20, 2015 There is something wrong with your PrestaShop configuration. As you may know translations are saved in php files. English translations should be in file en.php and czech should be in cz.php. But in your case in seems not to be the case. Am I right? Link to comment Share on other sites More sharing options...
presta-servis.cz Posted October 20, 2015 Author Share Posted October 20, 2015 I solve this problem by modifying translate.php file. I just modify function getModuleTranslation() and instead of $language = Context::getContext()->language; I add if(isset($_GET['lang']) AND $_GET['controller']=='AdminTranslations'){ $language_iso = $_GET['lang']; $language_id = Language::getIdByIso($language_iso); $language = new Language($language_id); }else{ $language = Context::getContext()->language; } And now it is working. Link to comment Share on other sites More sharing options...
Recommended Posts