From b709916df19cb8562ec1d9ce6f07e25aca176ca4 Mon Sep 17 00:00:00 2001 From: Dmitry Isaenko Date: Thu, 2 Feb 2023 00:37:39 +0300 Subject: [PATCH] Minor updates to correctly display Ryukyuan languages in menu --- README.md | 1 + README_RU.md | 1 + pom.xml | 2 +- src/main/java/tihwin/ui/model/LocaleHolder.java | 5 ++++- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1069811..2a81353 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,7 @@ Create new GitHub issue with bug report or proposition * [DDinghoya](https://github.com/DDinghoya), who translated this application to Korean! * [Ignacio Grosso](https://github.com/blckbearx), who translated this application to Spanish! +* [kuragehime](https://github.com/kuragehimekurara1), who translated this application to Japanese and Ryukyuan languages! #### Translations diff --git a/README_RU.md b/README_RU.md index c7274ef..23aacb0 100644 --- a/README_RU.md +++ b/README_RU.md @@ -26,6 +26,7 @@ GNU GLPv3 или выше. Ознакомьтесь с файлом LICENSE. * [DDinghoya](https://github.com/DDinghoya), кто перевели приложение на Корейский! * [Ignacio Grosso](https://github.com/blckbearx), кто перевели приложение на Испанский! +* [kuragehime](https://github.com/kuragehimekurara1), кто перевели приложение на Японский и языки Рюкю! #### Переводы diff --git a/pom.xml b/pom.xml index 595783a..a8ddd21 100644 --- a/pom.xml +++ b/pom.xml @@ -8,7 +8,7 @@ Tihwin Tihwin - 2.2 + 2.3 https://github.com/developersu/${project.artifactId}/ diff --git a/src/main/java/tihwin/ui/model/LocaleHolder.java b/src/main/java/tihwin/ui/model/LocaleHolder.java index 0dbfd58..8d22700 100644 --- a/src/main/java/tihwin/ui/model/LocaleHolder.java +++ b/src/main/java/tihwin/ui/model/LocaleHolder.java @@ -37,7 +37,10 @@ public class LocaleHolder { country = localeFileName.substring(10, 12); this.locale = new Locale(language, country); this.localeCode = locale.toString(); - this.languageName = locale.getDisplayLanguage(locale).toUpperCase(); + if (country.equals("RYU")) // Ryukyuan + this.languageName = "琉球語派"; + else + this.languageName = locale.getDisplayLanguage(locale).toUpperCase(); } @Override