singleton icon indicating copy to clipboard operation
singleton copied to clipboard

[BUG] [Java Service]Unknown script and unknown region displays in displayName when the locale without script and territory.

Open lyiyu66 opened this issue 3 years ago • 1 comments

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:

  1. Put a json file with name: messages_zh-Hant-alt-long.json in VMwareVIPLocale&1.0.0 bundles.
  2. 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)

lyiyu66 avatar Nov 16 '21 10:11 lyiyu66

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"

lyiyu66 avatar Dec 08 '21 09:12 lyiyu66

The issue is fixed with commit 764529a5503cf3183c300c0e86ade72bc8eb3f2c image

lyiyu66 avatar Aug 29 '23 13:08 lyiyu66