From d0b42500114eec9f563bc3ae68a1f64a089b5b9a Mon Sep 17 00:00:00 2001 From: metablaster <44481081+metablaster@users.noreply.github.com> Date: Mon, 21 Jul 2025 22:29:10 +0200 Subject: [PATCH] Fix for event names not translatable (#13646) * fix broken translation * apply suggested change * fix untraslated string in load game screen * update incorrect demand message * refactor translation for an unknown civilization * fix spaces * fix translation for an unknown translation * fix event names not getting translated * add untranslated string to template.properties --- android/assets/jsons/translations/template.properties | 1 + .../src/com/unciv/models/translations/TranslationFileWriter.kt | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/android/assets/jsons/translations/template.properties b/android/assets/jsons/translations/template.properties index 853e28fee0..3997691e37 100644 --- a/android/assets/jsons/translations/template.properties +++ b/android/assets/jsons/translations/template.properties @@ -1541,6 +1541,7 @@ Civilization Info = Relations = Trade request = Garrisoned by unit = +City defense = Status\n(puppet, resistance or being razed) = # Victory diff --git a/core/src/com/unciv/models/translations/TranslationFileWriter.kt b/core/src/com/unciv/models/translations/TranslationFileWriter.kt index bf376192dd..46e626df83 100644 --- a/core/src/com/unciv/models/translations/TranslationFileWriter.kt +++ b/core/src/com/unciv/models/translations/TranslationFileWriter.kt @@ -477,8 +477,7 @@ object TranslationFileWriter { "RuinReward.uniques", "TerrainType.name", "CityStateType.friendBonusUniques", "CityStateType.allyBonusUniques", "Era.citySound", - "keyShortcut", - "Event.name" // Presently not shown anywhere + "keyShortcut" ) /** Specifies Enums where the name property _is_ translatable, by Class name */