PMCORE-3629 [27048 27072] Default language other than default English causing The language 'fr-FR' doesn\\'t exist!

This commit is contained in:
Roly Gutierrez
2022-01-14 17:16:09 -04:00
parent 752f5c5b03
commit 5a313937ea
2 changed files with 4 additions and 1 deletions

View File

@@ -132,7 +132,7 @@ try {
$data = [['LAN_ID' => '', 'LAN_NAME' => '- ' . G::LoadTranslation('ID_NONE') . ' -']];
foreach ($languages as $lang) {
$data[] = [
'LAN_ID' => $lang['LOCALE'],
'LAN_ID' => strtolower($lang['LAN_ID']),
'LAN_NAME' => $lang['LANGUAGE']
];
}