From 2d33273c8d48b297c722157445cbe80c1829422a Mon Sep 17 00:00:00 2001 From: Jack Rainy Date: Thu, 26 Mar 2020 10:21:00 +0200 Subject: [PATCH] Translation of the mod's name (#2260) --- android/assets/jsons/translations/template.properties | 1 + .../com/unciv/ui/newgamescreen/NewGameScreenOptionsTable.kt | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/android/assets/jsons/translations/template.properties b/android/assets/jsons/translations/template.properties index c1da8271a1..03545b07e2 100644 --- a/android/assets/jsons/translations/template.properties +++ b/android/assets/jsons/translations/template.properties @@ -317,6 +317,7 @@ Starting Era = It looks like we can't make a map with the parameters you requested! = Maybe you put too many players into too small a map? = No human players selected! = +Mods: = # Multiplayer diff --git a/core/src/com/unciv/ui/newgamescreen/NewGameScreenOptionsTable.kt b/core/src/com/unciv/ui/newgamescreen/NewGameScreenOptionsTable.kt index 29d98f0800..070bc1cf82 100644 --- a/core/src/com/unciv/ui/newgamescreen/NewGameScreenOptionsTable.kt +++ b/core/src/com/unciv/ui/newgamescreen/NewGameScreenOptionsTable.kt @@ -233,10 +233,10 @@ class NewGameScreenOptionsTable(val newGameScreen: NewGameScreen, val updatePlay ImageGetter.setTextureRegionDrawables() } - add("{Mods}:".tr().toLabel(fontSize = 24)).padTop(16f).colspan(2).row() + add("Mods:".tr().toLabel(fontSize = 24)).padTop(16f).colspan(2).row() val modCheckboxTable = Table().apply { defaults().pad(5f) } for(mod in modRulesets){ - val checkBox = CheckBox(mod.name,CameraStageBaseScreen.skin) + val checkBox = CheckBox(mod.name.tr(),CameraStageBaseScreen.skin) if (mod.name in newGameParameters.mods) checkBox.isChecked = true checkBox.addListener(object : ChangeListener() { override fun changed(event: ChangeEvent?, actor: Actor?) {