test core update lang

This commit is contained in:
Fred Tempez 2023-08-27 23:02:31 +02:00
parent 7e2672bd46
commit 0f1b4b3a85

View File

@ -437,7 +437,9 @@ class common
foreach ($installedLanguages as $key => $value) { foreach ($installedLanguages as $key => $value) {
if ( if (
isset($defaultLanguages[$key]['version']) && isset($defaultLanguages[$key]['version']) &&
$defaultLanguages[$key]['version'] > $value['version'] $defaultLanguages[$key]['version'] > $value['version'] &&
isset($defaultLanguages[$key]['date']) &&
$defaultLanguages[$key]['date'] > $value['date']
) { ) {
copy('core/module/install/ressource/i18n/' . $key . '.json', self::I18N_DIR . $key . '.json'); copy('core/module/install/ressource/i18n/' . $key . '.json', self::I18N_DIR . $key . '.json');
$this->setData(['language', $key, $defaultLanguages[$key]]); $this->setData(['language', $key, $defaultLanguages[$key]]);