singleton
singleton copied to clipboard
[BUG] [Java Service]Unknown script and unknown region displays in displayName when the locale without script and territory.
Describe the bug commit: c7afc3bee93563af3c7073adfdd5cbd9b584ca0e Unknown script and unknown region displays when the locale without script and territory in API /i18n/api/v2/locale/supportedLanguageList. ar-SA (no script in locale name): Arabic (Unknown Script, Saudi Arabia) yue-Hans (no territory in locale name): Cantonese (Simplified, Unknown Region)
To Reproduce Steps to reproduce the behavior:
- Put a json file with name: messages_zh-Hant-alt-long.json in VMwareVIPLocale&1.0.0 bundles.
- Request its displayname with "http://serviceip:8091/i18n/api/v2/locale/supportedLanguageList?displayLanguage=en&productName=VMwareVIPLocale&version=1.0.0"
{
"languageTag": "ar-SA",
"displayName": "Arabic (Unknown Script, Saudi Arabia)",
"displayName_sentenceBeginning": "Arabic (Unknown Script, Saudi Arabia)",
"displayName_uiListOrMenu": "Arabic (Unknown Script, Saudi Arabia)",
"displayName_standalone": "Arabic (Unknown Script, Saudi Arabia)"
},
{
"languageTag": "yue-Hans",
"displayName": "Cantonese (Simplified, Unknown Region)",
"displayName_sentenceBeginning": "Cantonese (Simplified, Unknown Region)",
"displayName_uiListOrMenu": "Cantonese (Simplified, Unknown Region)",
"displayName_standalone": "Cantonese (Simplified, Unknown Region)"
}
Expected behavior Strings “Unknown script” and "unknown region" should not shown if the locale name doesn't go with script or territory. ar-SA (no script in locale name): Arabic (Saudi Arabia) yue-Hans (no territory in locale name): Cantonese (Simplified)
Should check the displayName of de-DE can shown as "Deutsch (Deutschland)" in its own language due to issue #1373 . "http://serviceip:8091/i18n/api/v2/locale/supportedLanguageList?productName=VMwareVIPLocale&version=1.0.0"
The issue is fixed with commit 764529a5503cf3183c300c0e86ade72bc8eb3f2c