Update api_setup.class.php

some values needs more dictionaries
This commit is contained in:
ptibogxiv
2022-10-28 17:59:34 +02:00
committed by GitHub
parent ba20087ceb
commit 65cbd2c663

View File

@@ -624,7 +624,7 @@ class Setup extends DolibarrApi
global $conf;
$this->translations = new Translate('', $conf);
$this->translations->setDefaultLang($lang);
$this->translations->load($dict);
$this->translations->loadLangs(array($dict));
}
if ($object->code) {
$key = $prefix.$object->code;