dump (another useless message)

This commit is contained in:
minjaesong
2018-08-05 21:57:18 +09:00
parent 0d05a40f8f
commit 6ed012f0c1
130 changed files with 1350 additions and 563 deletions

View File

@@ -119,7 +119,12 @@ object Lang {
if (key.startsWith("MENU_LABEL_PRESS_START_SYMBOL"))
return ret2.replace('>', Terrarum.joypadLabelStart).capitalize()
return ret2.capitalize()
return if (AppLoader.GAME_LOCALE.contains("bg"))
"${AppLoader.fontGame.charsetOverrideBulgarian}${ret2.capitalize()}${AppLoader.fontGame.charsetOverrideNormal}"
else if (AppLoader.GAME_LOCALE.contains("sr"))
"${AppLoader.fontGame.charsetOverrideBulgarian}${ret2.capitalize()}${AppLoader.fontGame.charsetOverrideNormal}"
else
ret2.capitalize()
}
fun pluraliseLang(key: String, count: Int): String {
@@ -210,7 +215,7 @@ object Lang {
}
private fun isHangul(c: Char): Boolean {
return c.toInt() >= 0xAC00 && c.toInt() <= 0xD7A3
return c.toInt() in 0xAC00..0xD7A3
}
private fun getLastChar(s: String): Char {