From 67fbc0755266ce46e2625671f498191a7e4f1aa5 Mon Sep 17 00:00:00 2001 From: OptimizedForDensity <105244635+OptimizedForDensity@users.noreply.github.com> Date: Wed, 3 Aug 2022 13:22:46 -0400 Subject: [PATCH] Add translation for XP on World Screen (#7595) --- android/assets/jsons/translations/template.properties | 1 + core/src/com/unciv/ui/worldscreen/unit/UnitTable.kt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/android/assets/jsons/translations/template.properties b/android/assets/jsons/translations/template.properties index 0ba9608083..1ff202b550 100644 --- a/android/assets/jsons/translations/template.properties +++ b/android/assets/jsons/translations/template.properties @@ -891,6 +891,7 @@ Strength = Ranged strength = Bombard strength = Range = +XP = Move unit = Stop movement = Swap units = diff --git a/core/src/com/unciv/ui/worldscreen/unit/UnitTable.kt b/core/src/com/unciv/ui/worldscreen/unit/UnitTable.kt index b01a75a89e..b99a5f24cd 100644 --- a/core/src/com/unciv/ui/worldscreen/unit/UnitTable.kt +++ b/core/src/com/unciv/ui/worldscreen/unit/UnitTable.kt @@ -165,7 +165,7 @@ class UnitTable(val worldScreen: WorldScreen) : Table(){ } if (!unit.isCivilian()) { - unitDescriptionTable.add("XP") + unitDescriptionTable.add("XP".tr()) unitDescriptionTable.add(unit.promotions.XP.toString() + "/" + unit.promotions.xpForNextPromotion()) }