martin.nv Posted March 30, 2014 Share Posted March 30, 2014 (edited) I realized when I update some module It deleted my traslation of front office to default settings. But in default settings are mistakes, so I need it to keep my traslations. Do you know where should be problem? Edited April 8, 2014 by applessories (see edit history) Link to comment Share on other sites More sharing options...
Caleydon Posted April 16, 2014 Share Posted April 16, 2014 Find /classes/module/Module.php file. Find two funcions (around line no. 285): public static function updateTranslationsAfterInstall($update = true) { Module::$update_translations_after_install = (bool)$update; } public function updateModuleTranslations() { return Language::updateModulesTranslations(array($this->name)); } Just comment their content only: public static function updateTranslationsAfterInstall($update = true) { // Module::$update_translations_after_install = (bool)$update; } public function updateModuleTranslations() { // return Language::updateModulesTranslations(array($this->name)); } Now you can install or reset default modules without updating the translations from prestashop.com repository. Latest PrestaShop versions (I think from 1.5.6.0) has this not very clever feature. Link to comment Share on other sites More sharing options...
Recommended Posts