test core update lang
This commit is contained in:
parent
7e2672bd46
commit
0f1b4b3a85
@ -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]]);
|
||||||
|
Loading…
Reference in New Issue
Block a user