mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 19:44:05 +09:00
fix: untranslated strings are shown as 'null' on bgBG
This commit is contained in:
@@ -197,6 +197,8 @@ object Lang {
|
|||||||
fun getByLocale(key: String, locale: String, capitalise: Boolean = false): String? {
|
fun getByLocale(key: String, locale: String, capitalise: Boolean = false): String? {
|
||||||
val s = if (capitalise) CAP(key, locale) else NOCAP(key, locale)
|
val s = if (capitalise) CAP(key, locale) else NOCAP(key, locale)
|
||||||
|
|
||||||
|
if (s == null) return null
|
||||||
|
|
||||||
return if (locale.startsWith("bg"))
|
return if (locale.startsWith("bg"))
|
||||||
"${App.fontGame.charsetOverrideBulgarian}$s${App.fontGame.charsetOverrideDefault}"
|
"${App.fontGame.charsetOverrideBulgarian}$s${App.fontGame.charsetOverrideDefault}"
|
||||||
else if (locale.startsWith("sr"))
|
else if (locale.startsWith("sr"))
|
||||||
|
|||||||
Reference in New Issue
Block a user