From 8ae0d9d19176b7b1298ff1d577ac45ad8236462d Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Sun, 15 Dec 2019 22:50:51 +0200 Subject: [PATCH] Maybe fixed the 'no languages except Chinese' bug in Android phones, but since I can't check this, I'll stick with both of them. Better safe... --- core/src/com/unciv/models/ruleset/Ruleset.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/com/unciv/models/ruleset/Ruleset.kt b/core/src/com/unciv/models/ruleset/Ruleset.kt index 7c499457..c7f42fdc 100644 --- a/core/src/com/unciv/models/ruleset/Ruleset.kt +++ b/core/src/com/unciv/models/ruleset/Ruleset.kt @@ -148,7 +148,8 @@ class Ruleset { catch (ex:Exception){} // Iterating on internal files will not work when running from a .jar languages.addAll(Locale.getAvailableLocales() // And this should work for Desktop, meaning from a .jar - .map { it.displayName }) + .map { it.getDisplayName(Locale.ENGLISH) }) // Maybe THIS is the problem, that the DISPLAY locale wasn't english + // and then languages were displayed according to the player's locale... *sweatdrop* // These should probably ve renamed languages.add("Simplified_Chinese")