Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZA-Zhuang language #5

Open
kosivantsov opened this issue Sep 4, 2020 · 4 comments
Open

ZA-Zhuang language #5

kosivantsov opened this issue Sep 4, 2020 · 4 comments
Labels

Comments

@kosivantsov
Copy link
Member

Reported by email:


Hello, I found that the latest stable version of OmegaT v4.3.2 has another error in the Chinese translation of the language code description, and the English version is correct.

When selecting a language for a new project, ZA-Zhuang was translated into "藏文". It should be translated into "壮文" or "壮族文". 

@kosivantsov kosivantsov added the bug label Sep 4, 2020
@kosivantsov kosivantsov changed the title ZA-Zhuang ZA-Zhuang language Sep 4, 2020
@xulihang
Copy link
Collaborator

This seems a localization problem of Java.

Locale first_locale = new Locale("za", "");
System.out.print(first_locale.getDisplayName());

The result is 藏文 not 壮文.

My jre version is 1.8.0_192

@xulihang
Copy link
Collaborator

The related line of code: https://github.com/omegat-org/omegat/blob/b29929356d0080d0023c213130b271b246cb5a15/src/org/omegat/util/Language.java#L115

I think it is better to translate the display name by ourselves to avoid this upstream problem of java.

@miurahr
Copy link

miurahr commented Mar 3, 2023

I don't reproduce a problem.

Version: OmegaT-5.8.0_0_f1953048d
Platform: Linux 5.15.0-58-generic
Java: 11.0.17 amd64
Memory: 596MiB total / 513MiB free / 7832MiB max

image

@miurahr
Copy link

miurahr commented Mar 3, 2023

I can reproduce it on java 1.8.0_312.
We, OmegaT team moves to minimum Java version to 11 in next OmegaT 6.0. Java 11 has fixed the bug.

miurahr added a commit to miurahr/omegat that referenced this issue Mar 3, 2023
- JRE 8 has a localization bug in Chinese
  - Locale class has wrong display name for
    ZA, SD, SD_IN and SD_PK
- The problem is reported at
  OmegaT-L10N/zh_CN#4
  and
  OmegaT-L10N/zh_CN#5

Signed-off-by: Hiroshi Miura <[email protected]>
amake pushed a commit to omegat-org/omegat that referenced this issue Mar 10, 2023
- JRE 8 has a localization bug in Chinese
  - Locale class has wrong display name for
    ZA, SD, SD_IN and SD_PK
- The problem is reported at
  OmegaT-L10N/zh_CN#4
  and
  OmegaT-L10N/zh_CN#5

Signed-off-by: Hiroshi Miura <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants