diff --git a/android/assets/jsons/translations/template.properties b/android/assets/jsons/translations/template.properties index 5f7ce11e57..84336812c5 100644 --- a/android/assets/jsons/translations/template.properties +++ b/android/assets/jsons/translations/template.properties @@ -722,7 +722,7 @@ Puppeted cities do not increase your tech or policy cost, but their citizens gen You have no control over the the production of puppeted cities. = Puppeted cities also generate 25% less Gold and Science. = A puppeted city can be annexed at any time. = -Liberate = +Liberate (city returns to [originalOwner]) = Liberating a city returns it to its original owner, giving you a massive relationship boost with them! = Raze = Razing the city annexes it, and starts razing the city to the ground. = diff --git a/core/src/com/unciv/ui/worldscreen/AlertPopup.kt b/core/src/com/unciv/ui/worldscreen/AlertPopup.kt index af76126bfc..a9afe5c5c6 100644 --- a/core/src/com/unciv/ui/worldscreen/AlertPopup.kt +++ b/core/src/com/unciv/ui/worldscreen/AlertPopup.kt @@ -7,6 +7,7 @@ import com.unciv.Constants import com.unciv.logic.civilization.AlertType import com.unciv.logic.civilization.CivilizationInfo import com.unciv.logic.civilization.PopupAlert +import com.unciv.models.translations.fillPlaceholders import com.unciv.ui.utils.* class AlertPopup(val worldScreen: WorldScreen, val popupAlert: PopupAlert): Popup(worldScreen) { @@ -66,7 +67,7 @@ class AlertPopup(val worldScreen: WorldScreen, val popupAlert: PopupAlert): Popu if (city.foundingCiv != "" && city.civInfo.civName != city.foundingCiv // can't liberate if the city actually belongs to those guys && conqueringCiv.civName != city.foundingCiv) { // or belongs originally to us - add("Liberate".toTextButton().onClick { + add("Liberate (city returns to [originalOwner])".fillPlaceholders(city.foundingCiv).toTextButton().onClick { city.liberateCity(conqueringCiv) worldScreen.shouldUpdate = true close()