Minor updates to correctly display Ryukyuan languages in menu

This commit is contained in:
Dmitry Isaenko 2023-02-02 00:37:39 +03:00
parent 569411d2cc
commit b709916df1
4 changed files with 7 additions and 2 deletions

View file

@ -28,6 +28,7 @@ Create new GitHub issue with bug report or proposition
* [DDinghoya](https://github.com/DDinghoya), who translated this application to Korean! * [DDinghoya](https://github.com/DDinghoya), who translated this application to Korean!
* [Ignacio Grosso](https://github.com/blckbearx), who translated this application to Spanish! * [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 #### Translations

View file

@ -26,6 +26,7 @@ GNU GLPv3 или выше. Ознакомьтесь с файлом LICENSE.
* [DDinghoya](https://github.com/DDinghoya), кто перевели приложение на Корейский! * [DDinghoya](https://github.com/DDinghoya), кто перевели приложение на Корейский!
* [Ignacio Grosso](https://github.com/blckbearx), кто перевели приложение на Испанский! * [Ignacio Grosso](https://github.com/blckbearx), кто перевели приложение на Испанский!
* [kuragehime](https://github.com/kuragehimekurara1), кто перевели приложение на Японский и языки Рюкю!
#### Переводы #### Переводы

View file

@ -8,7 +8,7 @@
<name>Tihwin</name> <name>Tihwin</name>
<artifactId>Tihwin</artifactId> <artifactId>Tihwin</artifactId>
<version>2.2</version> <version>2.3</version>
<url>https://github.com/developersu/${project.artifactId}/</url> <url>https://github.com/developersu/${project.artifactId}/</url>
<description> <description>

View file

@ -37,7 +37,10 @@ public class LocaleHolder {
country = localeFileName.substring(10, 12); country = localeFileName.substring(10, 12);
this.locale = new Locale(language, country); this.locale = new Locale(language, country);
this.localeCode = locale.toString(); 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 @Override