Add notification translation.

This commit is contained in:
Duan Tao 2019-07-10 10:30:26 +08:00 committed by Yair Morgenstern
parent a8e248b892
commit cae3d49738
3 changed files with 10 additions and 6 deletions

View File

@ -260,7 +260,10 @@
"Provides 3 happiness at 30 Influence":{
Italian:"Dona 3 Punti Felicità quando l'Influenza supera 30 punti"
French:"Fournit 3 de Bonheur à 30 d'influence"
}
},
"Provides land units every 20 turns at 30 Influence":{
},
"Gift [goldAmount] gold":{
Italian:"Dona [goldAmount] Oro"
@ -409,12 +412,10 @@
"Mercantile":{
Italian:"Mercantile"
}
/*
"Militaristic":{
Italian:"Militaristica"
}
*/
////// Trade

View File

@ -474,5 +474,8 @@
"You and [name] are no longer allies!":{ // When you lose alliance with a City-State (Relationship fall less than 60)
Italian:"Non sei più alleato con [name]!"
}
},
"[civName] gave us a [untiName] as gift near [cityName]!":{ // When a city state gives a unit as gift.
}
}

View File

@ -407,7 +407,7 @@ class CivilizationInfo {
.getConstructableUnits().filter { !it.unitType.isCivilian() && it.unitType.isLandUnit()}
.random()
placeUnitNearTile(city.location, militaryUnit.name)
addNotification("[${otherCiv.civName}] gave us a [${militaryUnit.name}] as gift near [${city.name}]!".tr(), null, Color.RED)
addNotification("[${otherCiv.civName}] gave us a [${militaryUnit.name}] as gift near [${city.name}]!".tr(), null, Color.GREEN)
}
}