Stats serialize to notifications - see #8446

This commit is contained in:
Yair Morgenstern
2023-02-02 18:16:51 +02:00
parent 3600654f00
commit ba097cee9d
9 changed files with 23 additions and 12 deletions

View File

@ -2,6 +2,7 @@
package com.unciv.testing
import com.badlogic.gdx.Gdx
import com.unciv.Constants
import com.unciv.UncivGame
import com.unciv.models.metadata.GameSettings
import com.unciv.models.ruleset.Ruleset
@ -258,7 +259,7 @@ class TranslationTests {
fun addTranslation(original:String, result:String){
UncivGame.Current.translations[original.getPlaceholderText()] =TranslationEntry(original)
.apply { this["English"] = result }
.apply { this[Constants.english] = result }
}
addTranslation("The brother of [person]", "The sibling of [person]")
Assert.assertEquals("The sibling of bob", "The brother of [bob]".tr())