mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-20 09:17:47 +07:00
More translations!
This commit is contained in:
parent
bcd5f02bec
commit
92abe0cf73
@ -113,6 +113,8 @@
|
||||
French:"Bonheur"
|
||||
Romanian:"Fericire"
|
||||
}
|
||||
"Production":{
|
||||
}
|
||||
"Culture":{
|
||||
Italian:"Cultura"
|
||||
Russian:"Культура"
|
||||
@ -219,6 +221,20 @@
|
||||
|
||||
"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
|
||||
// Some notifications have an exclamation mark after them - is the exclamation mark different in other languages?
|
||||
@ -357,8 +373,6 @@
|
||||
}
|
||||
"Gems":{
|
||||
}
|
||||
"Gold":{
|
||||
}
|
||||
"Silver":{
|
||||
}
|
||||
"Incense":{
|
||||
@ -413,6 +427,7 @@
|
||||
"Customs house":{
|
||||
}
|
||||
|
||||
|
||||
// Technologies (Ancient Era)
|
||||
|
||||
"Pottery":{
|
||||
|
@ -124,7 +124,7 @@ class Building : NamedStats(), IConstruction{
|
||||
stringBuilder.appendln("$resources provide $resourceBonusStats")
|
||||
}
|
||||
if (maintenance != 0)
|
||||
stringBuilder.appendln("Maintenance cost: $maintenance gold")
|
||||
stringBuilder.appendln("Maintenance cost: $maintenance "+"Gold".tr())
|
||||
return stringBuilder.toString().trim()
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,8 @@ class Technology : ICivilopedia {
|
||||
}
|
||||
|
||||
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 regularBuildings = enabledBuildings.filter { !it.isWonder }
|
||||
|
@ -6,6 +6,7 @@ import com.unciv.logic.civilization.CivilizationInfo
|
||||
import com.unciv.logic.map.MapUnit
|
||||
import com.unciv.models.gamebasics.ICivilopedia
|
||||
import com.unciv.models.stats.INamed
|
||||
import com.unciv.ui.utils.tr
|
||||
|
||||
class Unit : INamed, IConstruction, ICivilopedia {
|
||||
|
||||
@ -33,9 +34,9 @@ class Unit : INamed, IConstruction, ICivilopedia {
|
||||
fun getShortDescription(): String {
|
||||
val infoList= mutableListOf<String>()
|
||||
if(baseDescription!=null) infoList+=baseDescription!!
|
||||
if(strength!=0) infoList += "strength: $strength"
|
||||
if(rangedStrength!=0) infoList += "ranged strength: $rangedStrength"
|
||||
if(movement!=2) infoList+="movement: $movement"
|
||||
if(strength!=0) infoList += "Strength".tr()+": $strength"
|
||||
if(rangedStrength!=0) infoList += "Ranged strength".tr()+": $rangedStrength"
|
||||
if(movement!=2) infoList+="Movement".tr()+": $movement"
|
||||
return infoList.joinToString()
|
||||
}
|
||||
|
||||
@ -49,8 +50,8 @@ class Unit : INamed, IConstruction, ICivilopedia {
|
||||
if(requiredTech!=null) sb.appendln("Required tech: $requiredTech")
|
||||
}
|
||||
if(strength!=0){
|
||||
sb.append("Strength: $strength")
|
||||
if(rangedStrength!=0) sb.append(", Ranged strength: $rangedStrength")
|
||||
sb.append("Strength".tr()+": $strength")
|
||||
if(rangedStrength!=0) sb.append(", "+"Ranged strength".tr()+": $rangedStrength")
|
||||
sb.appendln()
|
||||
}
|
||||
|
||||
@ -58,7 +59,7 @@ class Unit : INamed, IConstruction, ICivilopedia {
|
||||
for(unique in uniques!!)
|
||||
sb.appendln(unique)
|
||||
}
|
||||
sb.appendln("Movement: $movement")
|
||||
sb.appendln("Movement".tr()+": $movement")
|
||||
return sb.toString()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user