mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 13:55:54 -04:00
More translations!
This commit is contained in:
parent
bcd5f02bec
commit
92abe0cf73
@ -113,6 +113,8 @@
|
|||||||
French:"Bonheur"
|
French:"Bonheur"
|
||||||
Romanian:"Fericire"
|
Romanian:"Fericire"
|
||||||
}
|
}
|
||||||
|
"Production":{
|
||||||
|
}
|
||||||
"Culture":{
|
"Culture":{
|
||||||
Italian:"Cultura"
|
Italian:"Cultura"
|
||||||
Russian:"Культура"
|
Russian:"Культура"
|
||||||
@ -220,6 +222,20 @@
|
|||||||
"Train":{ // eg Train Scout
|
"Train":{ // eg Train Scout
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Tech picker
|
||||||
|
"Pick a tech":{ // eg "Research Pottery"
|
||||||
|
}
|
||||||
|
"Research":{ // eg "Research Pottery"
|
||||||
|
}
|
||||||
|
"Units enabled":{ // eg "Research Pottery"
|
||||||
|
}
|
||||||
|
"Buildings enabled":{ // eg "Research Pottery"
|
||||||
|
}
|
||||||
|
"Wonders enabled":{ // eg "Research Pottery"
|
||||||
|
}
|
||||||
|
"Tile improvements enabled":{ // eg "Research Pottery"
|
||||||
|
}
|
||||||
|
|
||||||
// Notifications
|
// Notifications
|
||||||
// Some notifications have an exclamation mark after them - is the exclamation mark different in other languages?
|
// Some notifications have an exclamation mark after them - is the exclamation mark different in other languages?
|
||||||
// If so then we need to deal with that as well
|
// If so then we need to deal with that as well
|
||||||
@ -357,8 +373,6 @@
|
|||||||
}
|
}
|
||||||
"Gems":{
|
"Gems":{
|
||||||
}
|
}
|
||||||
"Gold":{
|
|
||||||
}
|
|
||||||
"Silver":{
|
"Silver":{
|
||||||
}
|
}
|
||||||
"Incense":{
|
"Incense":{
|
||||||
@ -413,6 +427,7 @@
|
|||||||
"Customs house":{
|
"Customs house":{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Technologies (Ancient Era)
|
// Technologies (Ancient Era)
|
||||||
|
|
||||||
"Pottery":{
|
"Pottery":{
|
||||||
|
@ -124,7 +124,7 @@ class Building : NamedStats(), IConstruction{
|
|||||||
stringBuilder.appendln("$resources provide $resourceBonusStats")
|
stringBuilder.appendln("$resources provide $resourceBonusStats")
|
||||||
}
|
}
|
||||||
if (maintenance != 0)
|
if (maintenance != 0)
|
||||||
stringBuilder.appendln("Maintenance cost: $maintenance gold")
|
stringBuilder.appendln("Maintenance cost: $maintenance "+"Gold".tr())
|
||||||
return stringBuilder.toString().trim()
|
return stringBuilder.toString().trim()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,7 +16,8 @@ class Technology : ICivilopedia {
|
|||||||
}
|
}
|
||||||
|
|
||||||
val enabledUnits = GameBasics.Units.values.filter { it.requiredTech==name }
|
val enabledUnits = GameBasics.Units.values.filter { it.requiredTech==name }
|
||||||
if(enabledUnits.isNotEmpty()) SB.appendln("Units enabled: "+enabledUnits.map { it.name + " ("+it.getShortDescription()+")" }.joinToString())
|
if(enabledUnits.isNotEmpty()) SB.appendln("" +
|
||||||
|
"Units enabled: "+enabledUnits.map { it.name + " ("+it.getShortDescription()+")" }.joinToString())
|
||||||
|
|
||||||
val enabledBuildings = GameBasics.Buildings.values.filter { it.requiredTech==name }
|
val enabledBuildings = GameBasics.Buildings.values.filter { it.requiredTech==name }
|
||||||
val regularBuildings = enabledBuildings.filter { !it.isWonder }
|
val regularBuildings = enabledBuildings.filter { !it.isWonder }
|
||||||
|
@ -6,6 +6,7 @@ import com.unciv.logic.civilization.CivilizationInfo
|
|||||||
import com.unciv.logic.map.MapUnit
|
import com.unciv.logic.map.MapUnit
|
||||||
import com.unciv.models.gamebasics.ICivilopedia
|
import com.unciv.models.gamebasics.ICivilopedia
|
||||||
import com.unciv.models.stats.INamed
|
import com.unciv.models.stats.INamed
|
||||||
|
import com.unciv.ui.utils.tr
|
||||||
|
|
||||||
class Unit : INamed, IConstruction, ICivilopedia {
|
class Unit : INamed, IConstruction, ICivilopedia {
|
||||||
|
|
||||||
@ -33,9 +34,9 @@ class Unit : INamed, IConstruction, ICivilopedia {
|
|||||||
fun getShortDescription(): String {
|
fun getShortDescription(): String {
|
||||||
val infoList= mutableListOf<String>()
|
val infoList= mutableListOf<String>()
|
||||||
if(baseDescription!=null) infoList+=baseDescription!!
|
if(baseDescription!=null) infoList+=baseDescription!!
|
||||||
if(strength!=0) infoList += "strength: $strength"
|
if(strength!=0) infoList += "Strength".tr()+": $strength"
|
||||||
if(rangedStrength!=0) infoList += "ranged strength: $rangedStrength"
|
if(rangedStrength!=0) infoList += "Ranged strength".tr()+": $rangedStrength"
|
||||||
if(movement!=2) infoList+="movement: $movement"
|
if(movement!=2) infoList+="Movement".tr()+": $movement"
|
||||||
return infoList.joinToString()
|
return infoList.joinToString()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -49,8 +50,8 @@ class Unit : INamed, IConstruction, ICivilopedia {
|
|||||||
if(requiredTech!=null) sb.appendln("Required tech: $requiredTech")
|
if(requiredTech!=null) sb.appendln("Required tech: $requiredTech")
|
||||||
}
|
}
|
||||||
if(strength!=0){
|
if(strength!=0){
|
||||||
sb.append("Strength: $strength")
|
sb.append("Strength".tr()+": $strength")
|
||||||
if(rangedStrength!=0) sb.append(", Ranged strength: $rangedStrength")
|
if(rangedStrength!=0) sb.append(", "+"Ranged strength".tr()+": $rangedStrength")
|
||||||
sb.appendln()
|
sb.appendln()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -58,7 +59,7 @@ class Unit : INamed, IConstruction, ICivilopedia {
|
|||||||
for(unique in uniques!!)
|
for(unique in uniques!!)
|
||||||
sb.appendln(unique)
|
sb.appendln(unique)
|
||||||
}
|
}
|
||||||
sb.appendln("Movement: $movement")
|
sb.appendln("Movement".tr()+": $movement")
|
||||||
return sb.toString()
|
return sb.toString()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user