mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 06:16:37 -04:00
Resolved untranslated texts as per #6131
- "Resources" in city-state diplomacy screen - "When Friends"/"When Allies" in same - "Enhance religion" - "Choose a Religion" in religion screen - Religion name in religion screen - Translated drilldown items in city screen - "null for wheat" in improvement Civilopedia entry - "Type" and others in city-state civilopedia entry
This commit is contained in:
parent
0d3a0ef7e3
commit
4b2bde0365
@ -1177,6 +1177,7 @@ Choose any belief! =
|
|||||||
Found [religionName] =
|
Found [religionName] =
|
||||||
Enhance [religionName] =
|
Enhance [religionName] =
|
||||||
Choose a pantheon =
|
Choose a pantheon =
|
||||||
|
Choose a Religion =
|
||||||
Found Religion =
|
Found Religion =
|
||||||
Found Pantheon =
|
Found Pantheon =
|
||||||
Follow [belief] =
|
Follow [belief] =
|
||||||
|
@ -148,7 +148,7 @@ class Nation : RulesetObject() {
|
|||||||
private fun getCityStateInfo(ruleset: Ruleset): List<FormattedLine> {
|
private fun getCityStateInfo(ruleset: Ruleset): List<FormattedLine> {
|
||||||
val textList = ArrayList<FormattedLine>()
|
val textList = ArrayList<FormattedLine>()
|
||||||
|
|
||||||
textList += FormattedLine("Type: [$cityStateType]", header = 4, color = cityStateType!!.color)
|
textList += FormattedLine("{Type}: [$cityStateType]", header = 4, color = cityStateType!!.color)
|
||||||
|
|
||||||
val era = if (UncivGame.isCurrentInitialized() && UncivGame.Current.isGameInfoInitialized())
|
val era = if (UncivGame.isCurrentInitialized() && UncivGame.Current.isGameInfoInitialized())
|
||||||
UncivGame.Current.gameInfo.currentPlayerCiv.getEra()
|
UncivGame.Current.gameInfo.currentPlayerCiv.getEra()
|
||||||
@ -159,7 +159,7 @@ class Nation : RulesetObject() {
|
|||||||
val friendBonus = era.friendBonus[cityStateType!!.name]
|
val friendBonus = era.friendBonus[cityStateType!!.name]
|
||||||
if (friendBonus != null && friendBonus.isNotEmpty()) {
|
if (friendBonus != null && friendBonus.isNotEmpty()) {
|
||||||
textList += FormattedLine()
|
textList += FormattedLine()
|
||||||
textList += FormattedLine("When Friends: ")
|
textList += FormattedLine("{When Friends}: ")
|
||||||
friendBonus.forEach {
|
friendBonus.forEach {
|
||||||
textList += FormattedLine(Unique(it), indent = 1)
|
textList += FormattedLine(Unique(it), indent = 1)
|
||||||
if (it == "Provides a unique luxury") showResources = true
|
if (it == "Provides a unique luxury") showResources = true
|
||||||
@ -169,7 +169,7 @@ class Nation : RulesetObject() {
|
|||||||
val allyBonus = era.allyBonus[cityStateType!!.name]
|
val allyBonus = era.allyBonus[cityStateType!!.name]
|
||||||
if (allyBonus != null && allyBonus.isNotEmpty()) {
|
if (allyBonus != null && allyBonus.isNotEmpty()) {
|
||||||
textList += FormattedLine()
|
textList += FormattedLine()
|
||||||
textList += FormattedLine("When Allies: ")
|
textList += FormattedLine("{When Allies}: ")
|
||||||
allyBonus.forEach {
|
allyBonus.forEach {
|
||||||
textList += FormattedLine(Unique(it), indent = 1)
|
textList += FormattedLine(Unique(it), indent = 1)
|
||||||
if (it == "Provides a unique luxury") showResources = true
|
if (it == "Provides a unique luxury") showResources = true
|
||||||
|
@ -120,6 +120,7 @@ class TileImprovement : RulesetStatsObject() {
|
|||||||
|
|
||||||
var addedLineBeforeResourceBonus = false
|
var addedLineBeforeResourceBonus = false
|
||||||
for (resource in ruleset.tileResources.values.filter { it.improvement == name }) {
|
for (resource in ruleset.tileResources.values.filter { it.improvement == name }) {
|
||||||
|
if (resource.improvementStats == null) continue
|
||||||
if (!addedLineBeforeResourceBonus) {
|
if (!addedLineBeforeResourceBonus) {
|
||||||
addedLineBeforeResourceBonus = true
|
addedLineBeforeResourceBonus = true
|
||||||
textList += FormattedLine()
|
textList += FormattedLine()
|
||||||
|
@ -151,7 +151,7 @@ class CityInfoTable(private val cityScreen: CityScreen) : Table(BaseScreen.skin)
|
|||||||
for ((name, child) in statTreeNode.children) {
|
for ((name, child) in statTreeNode.children) {
|
||||||
val statAmount = child.totalStats[stat]
|
val statAmount = child.totalStats[stat]
|
||||||
if (statAmount == 0f) continue
|
if (statAmount == 0f) continue
|
||||||
hashMap["- ".repeat(indentation) + name] = statAmount
|
hashMap["- ".repeat(indentation) + name.tr()] = statAmount
|
||||||
if (showDetails) addStatsToHashmap(child, hashMap, stat, showDetails, indentation + 1)
|
if (showDetails) addStatsToHashmap(child, hashMap, stat, showDetails, indentation + 1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,7 @@ class ReligiousBeliefsPickerScreen (
|
|||||||
topTable.addSeparator()
|
topTable.addSeparator()
|
||||||
topTable.add(middlePanes)
|
topTable.add(middlePanes)
|
||||||
|
|
||||||
if (pickIconAndName) rightSideButton.label = "Choose a religion".toLabel()
|
if (pickIconAndName) rightSideButton.label = "Choose a Religion".toLabel()
|
||||||
else rightSideButton.label = "Enhance [${choosingCiv.religionManager.religion!!.getReligionDisplayName()}]".toLabel()
|
else rightSideButton.label = "Enhance [${choosingCiv.religionManager.religion!!.getReligionDisplayName()}]".toLabel()
|
||||||
rightSideButton.onClick(UncivSound.Choir) {
|
rightSideButton.onClick(UncivSound.Choir) {
|
||||||
choosingCiv.religionManager.chooseBeliefs(displayName, religionName, chosenBeliefs.map { it!! })
|
choosingCiv.religionManager.chooseBeliefs(displayName, religionName, chosenBeliefs.map { it!! })
|
||||||
@ -76,7 +76,7 @@ class ReligiousBeliefsPickerScreen (
|
|||||||
fun changeDisplayedReligionName(newReligionName: String) {
|
fun changeDisplayedReligionName(newReligionName: String) {
|
||||||
displayName = newReligionName
|
displayName = newReligionName
|
||||||
rightSideButton.label = "Found [$newReligionName]".toLabel()
|
rightSideButton.label = "Found [$newReligionName]".toLabel()
|
||||||
descriptionLabel.setText(newReligionName)
|
descriptionLabel.setText(newReligionName.tr())
|
||||||
}
|
}
|
||||||
|
|
||||||
val changeReligionNameButton = Button(
|
val changeReligionNameButton = Button(
|
||||||
|
@ -145,7 +145,7 @@ class DiplomacyScreen(val viewingCiv:CivilizationInfo): BaseScreen() {
|
|||||||
|
|
||||||
if (otherCiv.detailedCivResources.any { it.resource.resourceType != ResourceType.Bonus }) {
|
if (otherCiv.detailedCivResources.any { it.resource.resourceType != ResourceType.Bonus }) {
|
||||||
val resourcesTable = Table()
|
val resourcesTable = Table()
|
||||||
resourcesTable.add("{Resources:} ".toLabel()).padRight(10f)
|
resourcesTable.add("{Resources}: ".toLabel()).padRight(10f)
|
||||||
for (supplyList in otherCiv.detailedCivResources) {
|
for (supplyList in otherCiv.detailedCivResources) {
|
||||||
if (supplyList.resource.resourceType == ResourceType.Bonus)
|
if (supplyList.resource.resourceType == ResourceType.Bonus)
|
||||||
continue
|
continue
|
||||||
@ -196,12 +196,12 @@ class DiplomacyScreen(val viewingCiv:CivilizationInfo): BaseScreen() {
|
|||||||
|
|
||||||
val eraInfo = viewingCiv.getEra()
|
val eraInfo = viewingCiv.getEra()
|
||||||
|
|
||||||
var friendBonusText = "{When Friends:} ".tr()
|
var friendBonusText = "{When Friends}: ".tr()
|
||||||
val friendBonusObjects = eraInfo.getCityStateBonuses(otherCiv.cityStateType, RelationshipLevel.Friend)
|
val friendBonusObjects = eraInfo.getCityStateBonuses(otherCiv.cityStateType, RelationshipLevel.Friend)
|
||||||
val friendBonusStrings = getAdjustedBonuses(friendBonusObjects)
|
val friendBonusStrings = getAdjustedBonuses(friendBonusObjects)
|
||||||
friendBonusText += friendBonusStrings.joinToString(separator = ", ") { it.tr() }
|
friendBonusText += friendBonusStrings.joinToString(separator = ", ") { it.tr() }
|
||||||
|
|
||||||
var allyBonusText = "{When Allies:} ".tr()
|
var allyBonusText = "{When Allies}: ".tr()
|
||||||
val allyBonusObjects = eraInfo.getCityStateBonuses(otherCiv.cityStateType, RelationshipLevel.Ally)
|
val allyBonusObjects = eraInfo.getCityStateBonuses(otherCiv.cityStateType, RelationshipLevel.Ally)
|
||||||
val allyBonusStrings = getAdjustedBonuses(allyBonusObjects)
|
val allyBonusStrings = getAdjustedBonuses(allyBonusObjects)
|
||||||
allyBonusText += allyBonusStrings.joinToString(separator = ", ") { it.tr() }
|
allyBonusText += allyBonusStrings.joinToString(separator = ", ") { it.tr() }
|
||||||
|
@ -774,7 +774,7 @@ class WorldScreen(val gameInfo: GameInfo, val viewingCiv:CivilizationInfo) : Bas
|
|||||||
}
|
}
|
||||||
|
|
||||||
viewingCiv.religionManager.religionState == ReligionState.EnhancingReligion ->
|
viewingCiv.religionManager.religionState == ReligionState.EnhancingReligion ->
|
||||||
NextTurnAction("Enhance Religion", Color.ORANGE) {
|
NextTurnAction("Enhance a Religion", Color.ORANGE) {
|
||||||
game.setScreen(
|
game.setScreen(
|
||||||
ReligiousBeliefsPickerScreen(
|
ReligiousBeliefsPickerScreen(
|
||||||
viewingCiv,
|
viewingCiv,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user