Fix for ro-md language

This commit is contained in:
Laurent Destailleur 2021-05-31 13:35:03 +02:00
parent ffc7ae0389
commit 0071d63fbb
2 changed files with 6 additions and 1 deletions

View File

@ -8068,7 +8068,7 @@ function picto_from_langcode($codelang, $moreatt = '')
* Return default language from country code. * Return default language from country code.
* Return null if not found. * Return null if not found.
* *
* @param string $countrycode Country code like 'US', 'FR', 'CA', ... * @param string $countrycode Country code like 'US', 'FR', 'CA', 'ES', 'MX', ...
* @return string Value of locale like 'en_US', 'fr_FR', ... * @return string Value of locale like 'en_US', 'fr_FR', ...
*/ */
function getLanguageCodeFromCountryCode($countrycode) function getLanguageCodeFromCountryCode($countrycode)
@ -8092,6 +8092,9 @@ function getLanguageCodeFromCountryCode($countrycode)
if ($mysoc->country_code == 'DE') { if ($mysoc->country_code == 'DE') {
return 'de_CH'; return 'de_CH';
} }
if ($mysoc->country_code == 'IT') {
return 'it_CH';
}
} }
// Locale list taken from: // Locale list taken from:
@ -8232,6 +8235,7 @@ function getLanguageCodeFromCountryCode($countrycode)
'pt-BR', 'pt-BR',
'pt-PT', 'pt-PT',
'rm-CH', 'rm-CH',
'ro-MD',
'ro-RO', 'ro-RO',
'ru-RU', 'ru-RU',
'rw-RW', 'rw-RW',

View File

@ -84,6 +84,7 @@ Language_nl_NL=Dutch
Language_pl_PL=Polish Language_pl_PL=Polish
Language_pt_BR=Portuguese (Brazil) Language_pt_BR=Portuguese (Brazil)
Language_pt_PT=Portuguese Language_pt_PT=Portuguese
Language_ro_MD=Romanian (Moldavia)
Language_ro_RO=Romanian Language_ro_RO=Romanian
Language_ru_RU=Russian Language_ru_RU=Russian
Language_ru_UA=Russian (Ukraine) Language_ru_UA=Russian (Ukraine)