fixing translatable (#7277)

* 1 - speeds not translatable

* 2 - start year:
This commit is contained in:
alexban011
2022-07-01 09:34:13 +03:00
committed by GitHub
parent 61509f747e
commit 119440ccec
2 changed files with 2 additions and 2 deletions

View File

@ -1340,7 +1340,7 @@ Eras =
Embarked strength: [amount]† =
Base unit buy cost: [amount]¤ =
Research agreement cost: [amount]¤ =
Game Speeds =
Speeds =
General speed modifier: [amount]%⏳ =
Production cost modifier: [amount]%⚙ =
Gold cost modifier: [amount]%¤ =

View File

@ -71,7 +71,7 @@ class Speed : RulesetObject() {
yield(FormattedLine("Golden age length modifier: [${goldenAgeLengthModifier * 100}]%${Fonts.happiness}"))
yield(FormattedLine("Adjacent city religious pressure: [$religiousPressureAdjacentCity]${Fonts.faith}"))
yield(FormattedLine("Peace deal duration: [$peaceDealDuration] turns${Fonts.turn}"))
yield(FormattedLine("Start year: " + ("[${abs(startYear).toInt()}] " + (if (startYear < 0) "BC" else "AD")).tr()))
yield(FormattedLine("Start year: [" + ("{[${abs(startYear).toInt()}] " + (if (startYear < 0) "BC" else "AD") + "}]").tr()))
}.toList()
fun numTotalTurns(): Int = yearsPerTurn.last().untilTurn