Jump to content

Updating module reset translation to default


Recommended Posts

  • 3 weeks later...

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

×
×
  • Create New...