Translation of the mod's name (#2260)

This commit is contained in:
Jack Rainy 2020-03-26 10:21:00 +02:00 committed by GitHub
parent 7591d7f2c6
commit 2d33273c8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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?) {