diff --git a/classes/Language.php b/classes/Language.php index c58cdb5c7..43556c716 100644 --- a/classes/Language.php +++ b/classes/Language.php @@ -83,6 +83,7 @@ class LanguageCore extends ObjectModel 'errors' => '_ERRORS', 'admin' => '_LANGADM', 'pdf' => '_LANGPDF', + 'tabs' => 'tabs', ); public function __construct($id = null, $id_lang = null) @@ -113,11 +114,23 @@ class LanguageCore extends ObjectModel if (!file_exists(_PS_TRANSLATIONS_DIR_.$iso_code)) mkdir(_PS_TRANSLATIONS_DIR_.$iso_code); foreach ($this->translationsFilesAndVars as $file => $var) - if (!file_exists(_PS_TRANSLATIONS_DIR_.$iso_code.'/'.$file.'.php')) - file_put_contents(_PS_TRANSLATIONS_DIR_.$iso_code.'/'.$file.'.php', ''); + else + file_put_contents($path_file, ''); + + @chmod($path_file, 0777); + } + } /**