Resolved translation errors at #6131

This commit is contained in:
Yair Morgenstern
2023-03-13 23:26:32 +02:00
parent 2a74be3be2
commit a2da1ff7ee
2 changed files with 92 additions and 63 deletions

View File

@ -342,6 +342,7 @@ Random number of City-States =
Min number of City-States = Min number of City-States =
Max number of City-States = Max number of City-States =
One City Challenge = One City Challenge =
Enable Nuclear Weapons =
No City Razing = No City Razing =
No Barbarians = No Barbarians =
Disable starting bias = Disable starting bias =
@ -665,19 +666,70 @@ Could not find a mod named "[modName]". =
# Options # Options
Options = Options =
About =
Display =
Gameplay =
Sound =
Advanced =
Keys =
Locate mod errors =
Debug =
## About tab
About =
Version = Version =
See online Readme = See online Readme =
Visit repository = Visit repository =
Turns between autosaves =
## Display tab
Display =
Screen Mode =
Windowed =
Fullscreen =
Borderless =
Screen orientation =
Landscape (fixed) =
Portrait (fixed) =
Auto (sensor adjusted) =
Map mouse auto-scroll =
Order trade offers by amount =
Experimental Demographics scoreboard =
Unit icon opacity =
Enable display cutout (requires restart) =
Show zoom buttons in world screen =
Show worked tiles =
Show resources and improvements =
Show tile yields =
Show unit movement arrows =
Show pixel units =
Show pixel improvements =
Minimap size =
Show tutorials =
Reset tutorials =
Do you want to reset completed tutorials? =
Reset =
Continuous rendering =
Experimental rendering improvements =
When disabled, saves battery life but certain animations will be suspended =
## Gameplay tab
Gameplay =
Auto-assign city production =
Auto-build roads =
Automated workers replace improvements =
Automated units move on turn start =
Check for idle units =
Auto Unit Cycle =
Move units with a single tap =
Ask for confirmation when pressing next turn =
Notifications log max turns =
## Language tab
Language =
Please note that translations are a community-based work in progress and are INCOMPLETE! The percentage shown is how much of the language is translated in-game. If you want to help translating the game into your language, click here. =
## Sound tab
Sound =
Sound effects volume = Sound effects volume =
Music volume = Music volume =
City ambient sound volume = City ambient sound volume =
@ -689,39 +741,24 @@ Currently playing: [title] =
Download music = Download music =
Downloading... = Downloading... =
Could not download music! = Could not download music! =
Show =
Hide = ## Advanced tab
Show worked tiles = Advanced =
Show resources and improvements = Generate translation files =
Check for idle units = Translation files are generated successfully. =
Auto Unit Cycle = Fastlane files are generated successfully. =
Move units with a single tap =
Show tutorials = Font family =
Reset tutorials = Font size multiplier =
Do you want to reset completed tutorials? = Default Font =
Reset =
Auto-assign city production = Enable Easter Eggs =
Auto-build roads =
Automated workers replace improvements = ## Keys tab
Automated units move on turn start = Keys =
Minimap size =
off = ## Locate mod errors tab
Map mouse auto-scroll = Locate mod errors =
Show pixel units =
Show pixel improvements =
Enable Nuclear Weapons =
Experimental Demographics scoreboard =
Unit icon opacity =
Show zoom buttons in world screen =
Enable display cutout (requires restart) =
Show tile yields =
Show unit movement arrows =
Continuous rendering =
Experimental rendering improvements =
When disabled, saves battery life but certain animations will be suspended =
Order trade offers by amount =
Ask for confirmation when pressing next turn =
Notifications log max turns =
Check extension mods based on: = Check extension mods based on: =
-none- = -none- =
Reload mods = Reload mods =
@ -730,18 +767,22 @@ No problems found. =
Autoupdate mod uniques = Autoupdate mod uniques =
Uniques updated! = Uniques updated! =
## Debug tab
Debug =
## Unsorted - please help us sort these!
Turns between autosaves =
Show =
Hide =
off =
Max zoom out = Max zoom out =
HIGHLY EXPERIMENTAL - YOU HAVE BEEN WARNED! = HIGHLY EXPERIMENTAL - YOU HAVE BEEN WARNED! =
Enable portrait orientation = Enable portrait orientation =
Generate translation files =
Translation files are generated successfully. =
Fastlane files are generated successfully. =
Please note that translations are a community-based work in progress and are INCOMPLETE! The percentage shown is how much of the language is translated in-game. If you want to help translating the game into your language, click here. =
Font family =
Font size multiplier =
Default Font =
You need to restart the game for this change to take effect. = You need to restart the game for this change to take effect. =
Enable Easter Eggs =
# Notifications # Notifications
@ -1380,20 +1421,12 @@ Can be created instantly by =
Defence bonus = Defence bonus =
Movement cost = Movement cost =
for = for =
Landscape (fixed) =
Portrait (fixed) =
Auto (sensor adjusted) =
Missing translations: = Missing translations: =
Screen Size = Screen Size =
Screen Mode =
Windowed =
Fullscreen =
Borderless =
Tileset = Tileset =
Unitset = Unitset =
UI Skin = UI Skin =
Create = Create =
Language =
Improvements = Improvements =
Loading... = Loading... =
Filter: = Filter: =

View File

@ -229,10 +229,6 @@ class PolicyManager : IsPartOfGameInfoSerialization {
private fun triggerGlobalAlerts( private fun triggerGlobalAlerts(
policy: Policy, extraNotificationText: String = "" policy: Policy, extraNotificationText: String = ""
) { ) {
var extraNotificationTextCopy = extraNotificationText
if (extraNotificationText != "") {
extraNotificationTextCopy = " ${extraNotificationText}"
}
for (civ in civInfo.gameInfo.civilizations.filter { it.isMajorCiv() }) { for (civ in civInfo.gameInfo.civilizations.filter { it.isMajorCiv() }) {
if (civ == civInfo) continue if (civ == civInfo) continue
val defaultNotificationText = if (civ.getKnownCivs().contains(civInfo)) { val defaultNotificationText = if (civ.getKnownCivs().contains(civInfo)) {
@ -241,7 +237,7 @@ class PolicyManager : IsPartOfGameInfoSerialization {
"An unknown civilization has adopted the [${policy.name}] policy" "An unknown civilization has adopted the [${policy.name}] policy"
} }
civ.addNotification( civ.addNotification(
"{${defaultNotificationText}}{${extraNotificationTextCopy}}", "{${defaultNotificationText}} {${extraNotificationText}}",
NotificationCategory.General, NotificationCategory.General,
NotificationIcon.Culture NotificationIcon.Culture
) )