mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-23 03:04:07 -04:00
update
This commit is contained in:
parent
dc376d7ee1
commit
0c2468eb3d
@ -48,6 +48,11 @@ public final class Locales {
|
||||
*/
|
||||
public static final SupportedLocale EN = new SupportedLocale("en");
|
||||
|
||||
/**
|
||||
* ɥsᴉꞁᵷuƎ (uʍoᗡ ǝpᴉsd∩)
|
||||
*/
|
||||
public static final SupportedLocale EN_QABS = new SupportedLocale("en-Qabs");
|
||||
|
||||
/**
|
||||
* Spanish
|
||||
*/
|
||||
@ -83,7 +88,7 @@ public final class Locales {
|
||||
*/
|
||||
public static final SupportedLocale WENYAN = new SupportedLocale("lzh");
|
||||
|
||||
public static final List<SupportedLocale> LOCALES = List.of(DEFAULT, EN, ES, JA, RU, UK, ZH_HANS, ZH_HANT, WENYAN);
|
||||
public static final List<SupportedLocale> LOCALES = List.of(DEFAULT, EN, EN_QABS, ES, JA, RU, UK, ZH_HANS, ZH_HANT, WENYAN);
|
||||
|
||||
public static SupportedLocale getLocaleByName(String name) {
|
||||
if (name == null) return DEFAULT;
|
||||
@ -166,6 +171,10 @@ public final class Locales {
|
||||
: name;
|
||||
}
|
||||
|
||||
if (this.locale.getLanguage().equals("en") && this.locale.getScript().equals("Qabs")) {
|
||||
return "ɥsᴉꞁᵷuƎ (uʍoᗡ ǝpᴉsd∩)";
|
||||
}
|
||||
|
||||
return locale.getDisplayName(inJavaLocale);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user