vmware / vmware/singleton

[BUG] [Java Service]Nothing is shown as displayName for "sl-Latn-IT-ROZAJ" locales in its language.

Open
#1,374 0 comments 0 reactions 1 assignee View on GitHub

@huihuiw01 is already working on this.

Since Nov 17, 2021.

area/java-service kind/bug priority/medium
Dominant language
Java
Stars
72
Forks
69
Avg merge
23h 32m
Merged PRs (30d)
4

Description

Describe the bug
commit: c7afc3bee93563af3c7073adfdd5cbd9b584ca0e
Nothing is shown as displayName for "sl-Latn-IT-ROZAJ" locales in its language.

To Reproduce
Steps to reproduce the behavior:

  1. Put a json file with name: messages_sl-Latn-IT-ROZAJ.json in VMwareVIPLocale&1.0.0 bundles.
  2. Request its displayname with "http://serviceip:8091/i18n/api/v2/locale/supportedLanguageList?productName=VMwareVIPLocale&version=1.0.0"
{
        "languageTag": "sl-Latn-IT-ROZAJ",
        "displayName": "",
        "displayName_sentenceBeginning": "",
        "displayName_uiListOrMenu": "",
        "displayName_standalone": ""
      }

Expected behavior
Should do the fallback by comparing the truncated items(language-script-territory-variant) until hit the exact matched:
language-script-territory-variant → language-script-country → language-script → language → Unknown language(Unknown ***)

sl-Latn-IT-ROZAJ should display in "sl" as below:

{
        "languageTag": "sl-Latn-IT-ROZAJ",
        "displayName": "slovenščina (latinica, Italija, rezijanščina)",
        "displayName_sentenceBeginning": "slovenščina (latinica, Italija, rezijanščina)",
        "displayName_uiListOrMenu": "slovenščina (latinica, Italija, rezijanščina)",
        "displayName_standalone": "slovenščina (latinica, Italija, rezijanščina)"
      }

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.