From 119440ccec5b58d2a90fa8992156001ba9b45fac Mon Sep 17 00:00:00 2001 From: alexban011 Date: Fri, 1 Jul 2022 09:34:13 +0300 Subject: [PATCH] fixing translatable (#7277) * 1 - speeds not translatable * 2 - start year: --- android/assets/jsons/translations/template.properties | 2 +- core/src/com/unciv/models/ruleset/Speed.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/android/assets/jsons/translations/template.properties b/android/assets/jsons/translations/template.properties index f1cde8bdc6..b4267d6dd6 100644 --- a/android/assets/jsons/translations/template.properties +++ b/android/assets/jsons/translations/template.properties @@ -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]%¤ = diff --git a/core/src/com/unciv/models/ruleset/Speed.kt b/core/src/com/unciv/models/ruleset/Speed.kt index 1f3c5aaefa..6000a10942 100644 --- a/core/src/com/unciv/models/ruleset/Speed.kt +++ b/core/src/com/unciv/models/ruleset/Speed.kt @@ -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