Translations update (#3618)

* Translations update

* Minor changes to the translation
This commit is contained in:
Jack Rainy 2021-02-25 19:01:58 +02:00 committed by GitHub
parent f78b9a0960
commit ff05fa601d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 53 additions and 51 deletions

View File

@ -39,7 +39,7 @@ Requires a [buildingName] in all cities = В усіх містах має бут
Requires a [buildingName] in this city = У місті має бути будівля: [buildingName] Requires a [buildingName] in this city = У місті має бути будівля: [buildingName]
Consumes 1 [resource] = Потрібен ресурс: [resource] Consumes 1 [resource] = Потрібен ресурс: [resource]
# Requires translation! # Requires translation!
Consumes [amount] [resource] = Consumes [amount] [resource] = Споживає [amount] [resource]
Required tech: [requiredTech] = Потрібна технологія: [requiredTech] Required tech: [requiredTech] = Потрібна технологія: [requiredTech]
Requires [PolicyOrNationalWonder] = Потребує: [PolicyOrNationalWonder] Requires [PolicyOrNationalWonder] = Потребує: [PolicyOrNationalWonder]
Cannot be purchased = Неможливо купити Cannot be purchased = Неможливо купити
@ -52,6 +52,7 @@ Add to queue = Додати до черги
Remove from queue = Видалити з черги Remove from queue = Видалити з черги
Show stats drilldown = Показати статистику Show stats drilldown = Показати статистику
Show construction queue = Показати чергу Show construction queue = Показати чергу
Save = Зберегти
Diplomacy = Дипломатія Diplomacy = Дипломатія
War = Війна War = Війна
@ -289,7 +290,7 @@ The symbol of your nation will appear next to the game when it's your turn = С
Back = Назад Back = Назад
Rename = Перейменувати Rename = Перейменувати
# Requires translation! # Requires translation!
Game settings = Game settings = Налаштування гри
Add multiplayer game = Додати багатокористувацьку гру Add multiplayer game = Додати багатокористувацьку гру
Refresh list = Оновити список Refresh list = Оновити список
Could not save game! = Неможливо зберегти гру! Could not save game! = Неможливо зберегти гру!
@ -302,13 +303,13 @@ Game name = Назва гри
Loading latest game state... = Завантаження останнього стану гри... Loading latest game state... = Завантаження останнього стану гри...
Couldn't download the latest game state! = Неможливо завантажити останній стан гри! Couldn't download the latest game state! = Неможливо завантажити останній стан гри!
# Requires translation! # Requires translation!
Resign = Resign = Покинути гру
# Requires translation! # Requires translation!
Are you sure you want to resign? = Are you sure you want to resign? = Ви впевнені, що хочете покинути гру?
# Requires translation! # Requires translation!
You can only resign if it's your turn = You can only resign if it's your turn = Ви можете покинути гру лише на своєму ході
# Requires translation! # Requires translation!
[civName] resigned and is now controlled by AI = [civName] resigned and is now controlled by AI = [civName] покидає гру та буде керуватись ШІ
# Save game menu # Save game menu
@ -329,7 +330,7 @@ Could not upload map! = Неможливо вивантажити мапу!
Map uploaded successfully! = Мапа вивантажена успішно! Map uploaded successfully! = Мапа вивантажена успішно!
Saving... = Збереження... Saving... = Збереження...
# Requires translation! # Requires translation!
Overwrite existing file? = Overwrite existing file? = Перезаписати існуючий файл?
It looks like your saved game can't be loaded! = Здається, ваша збережена гра не може бути завантажена! It looks like your saved game can't be loaded! = Здається, ваша збережена гра не може бути завантажена!
If you could copy your game data ("Copy saved game to clipboard" - = Якщо ви можете скопіювати дані вашої гри («Копіювати збережену гру до буфера обміну» - If you could copy your game data ("Copy saved game to clipboard" - = Якщо ви можете скопіювати дані вашої гри («Копіювати збережену гру до буфера обміну» -
paste into an email to yairm210@hotmail.com) = та вставити у лист до yairm210@hotmail.com) paste into an email to yairm210@hotmail.com) = та вставити у лист до yairm210@hotmail.com)
@ -370,7 +371,7 @@ Order trade offers by amount = Сортувати торгові пропози
Generate translation files = Створити файли для перекладу Generate translation files = Створити файли для перекладу
Translation files are generated successfully. = Файли для перекладу успішно створені. Translation files are generated successfully. = Файли для перекладу успішно створені.
# Requires translation! # Requires translation!
Locate mod errors = Locate mod errors = Знайти помилки модифікації
# Notifications # Notifications
@ -508,7 +509,7 @@ Yes = Так
No = Ні No = Ні
Acquire = Отримати Acquire = Отримати
# Requires translation! # Requires translation!
Under construction = Under construction = Будується
Gold = Золото Gold = Золото
Science = Наука Science = Наука
@ -701,12 +702,12 @@ You have won a scientific victory! = Ви здобули наукову пере
You have won a cultural victory! = Ви здобули культурну перемогу! You have won a cultural victory! = Ви здобули культурну перемогу!
You have won a domination victory! = Ви знищили усіх! You have won a domination victory! = Ви знищили усіх!
# Requires translation! # Requires translation!
You have won! = You have won! = Ви перемогли!
You have achieved victory through the awesome power of your Culture. Your civilization's greatness - the magnificence of its monuments and the power of its artists - have astounded the world! Poets will honor you as long as beauty brings gladness to a weary heart. = Ви домоглися перемоги завдяки приголомшливій силі вашої культури. Велич вашої цивілізації — пишність пам’ятників та сила її митців вразили світ! Поети будуть шанувати вас до тих пір, поки краса приносить радість стомленому серцю. You have achieved victory through the awesome power of your Culture. Your civilization's greatness - the magnificence of its monuments and the power of its artists - have astounded the world! Poets will honor you as long as beauty brings gladness to a weary heart. = Ви домоглися перемоги завдяки приголомшливій силі вашої культури. Велич вашої цивілізації — пишність пам’ятників та сила її митців вразили світ! Поети будуть шанувати вас до тих пір, поки краса приносить радість стомленому серцю.
The world has been convulsed by war. Many great and powerful civilizations have fallen, but you have survived - and emerged victorious! The world will long remember your glorious triumph! = Світ заплутаний війною. Занепало багато великих і могутніх цивілізацій, але ви вижили — і вийшли переможцями! Світ надовго запам’ятає твій славний тріумф! The world has been convulsed by war. Many great and powerful civilizations have fallen, but you have survived - and emerged victorious! The world will long remember your glorious triumph! = Світ заплутаний війною. Занепало багато великих і могутніх цивілізацій, але ви вижили — і вийшли переможцями! Світ надовго запам’ятає твій славний тріумф!
You have achieved victory through mastery of Science! You have conquered the mysteries of nature and led your people on a voyage to a brave new world! Your triumph will be remembered as long as the stars burn in the night sky! = Ви здобули перемогу завдяки оволодінню Наукою! Ви розкрили таємниці природи і повели своїх людей у плавання до сміливого нового світу! Ваш тріумф запам’ятається, доки у нічному небі сяють зірки! You have achieved victory through mastery of Science! You have conquered the mysteries of nature and led your people on a voyage to a brave new world! Your triumph will be remembered as long as the stars burn in the night sky! = Ви здобули перемогу завдяки оволодінню Наукою! Ви розкрили таємниці природи і повели своїх людей у плавання до сміливого нового світу! Ваш тріумф запам’ятається, доки у нічному небі сяють зірки!
# Requires translation! # Requires translation!
Your civilization stands above all others! The exploits of your people shall be remembered until the end of civilizaton itself! = Your civilization stands above all others! The exploits of your people shall be remembered until the end of civilizaton itself! = Ваша цивілізація постає понад іншими! Героїчні вчинки ваших людей будуть пам’ятати допоки існуватиме цивілізація!
You have been defeated. Your civilization has been overwhelmed by its many foes. But your people do not despair, for they know that one day you shall return - and lead them forward to victory! = Ви зазнали поразки. Вашу цивілізацію переповнили численні вороги. Але ваш народ не впадає у відчай, бо вони знають, що одного дня ви повернетеся — і поведете їх до перемоги! You have been defeated. Your civilization has been overwhelmed by its many foes. But your people do not despair, for they know that one day you shall return - and lead them forward to victory! = Ви зазнали поразки. Вашу цивілізацію переповнили численні вороги. Але ваш народ не впадає у відчай, бо вони знають, що одного дня ви повернетеся — і поведете їх до перемоги!
One more turn...! = Ще один хід... One more turn...! = Ще один хід...
Built Apollo Program = Здійснити Програму Аполлон Built Apollo Program = Здійснити Програму Аполлон
@ -735,9 +736,9 @@ Raze = Зруйнувати
Razing the city annexes it, and starts razing the city to the ground. = Захоплюючи місто, ви можете його зруйнувати. Razing the city annexes it, and starts razing the city to the ground. = Захоплюючи місто, ви можете його зруйнувати.
The population will gradually dwindle until the city is destroyed. = Населення поступово зменшиться, поки місто не буде зруйновано. The population will gradually dwindle until the city is destroyed. = Населення поступово зменшиться, поки місто не буде зруйновано.
# Requires translation! # Requires translation!
Destroy = Destroy = Знищити
# Requires translation! # Requires translation!
Destroying the city instantly razes the city to the ground. = Destroying the city instantly razes the city to the ground. = Знищення міста миттєво зрівняє його з землею.
Remove your troops in our border immediately! = Негайно приберіть свої війська від нашого кордону! Remove your troops in our border immediately! = Негайно приберіть свої війська від нашого кордону!
Sorry. = Вибачте. Sorry. = Вибачте.
Never! = Ніколи! Never! = Ніколи!
@ -939,9 +940,9 @@ Are you SURE you want to delete this mod? = Ви СПРАВДІ хочете в
# Uniques that are relevant to more than one type of game object # Uniques that are relevant to more than one type of game object
[stats] from every [param] = Кожен [param] надає [stats] [stats] from every [param] = Кожен [param] надає [stats]
[stats] from [param] tiles in this city = Кожна клітина типу «[param]» у цьому місті надає [stats] [stats] from [param] tiles in this city = Кожна клітинка типу «[param]» у цьому місті надає [stats]
# Requires translation! # Requires translation!
[stats] from every [param] on [tileFilter] tiles = [stats] from every [param] on [tileFilter] tiles = [stats] від кожного [param] на [tileFilter] клітинках
[stats] for each adjacent [param] = [stats] за кожний прилеглий [param] [stats] for each adjacent [param] = [stats] за кожний прилеглий [param]
Must be next to [terrain] = Біля міста має бути місцевість типу «[terrain]» Must be next to [terrain] = Біля міста має бути місцевість типу «[terrain]»
Must be on [terrain] = Має бути на місцевості типу «[terrain]» Must be on [terrain] = Має бути на місцевості типу «[terrain]»
@ -1006,9 +1007,9 @@ Barracks = Казарми
Colossus = Колос Родоський Colossus = Колос Родоський
# Requires translation! # Requires translation!
-[amount]% Culture cost of acquiring tiles [cityFilter] = -[amount]% Culture cost of acquiring tiles [cityFilter] = -[amount]% вартості культури для розширення клітинок [cityFilter]
# Requires translation! # Requires translation!
-[amount]% Gold cost of acquiring tiles [cityFilter] = -[amount]% Gold cost of acquiring tiles [cityFilter] = -[amount]% вартості для придбання клітинок [cityFilter]
Krepost = Фортеця Krepost = Фортеця
'He spoke, the son of Kronos, and nodded his head with the dark brows, and the immortally anointed hair of the great god swept from his divine head, and all Olympos was shaken' - The Iliad = «Він, син Кроноса, мовив та похитав головою з-під темних бров, та волосся помазане бессмертям величного бога впало з його святої голови, та весь Олімп здригнувся» — Ілліада. 'He spoke, the son of Kronos, and nodded his head with the dark brows, and the immortally anointed hair of the great god swept from his divine head, and all Olympos was shaken' - The Iliad = «Він, син Кроноса, мовив та похитав головою з-під темних бров, та волосся помазане бессмертям величного бога впало з його святої голови, та весь Олімп здригнувся» — Ілліада.
@ -1026,7 +1027,7 @@ All military naval units receive +1 movement and +1 sight = Усі військ
The Great Lighthouse = Александрійський маяк The Great Lighthouse = Александрійський маяк
# Requires translation! # Requires translation!
+[amount]% Production when constructing [unitType] units [cityFilter] = +[amount]% Production when constructing [unitType] units [cityFilter] = +[amount]% виробництва, коли створюються підрозділи типу «[unitType]» у [cityFilter]
Stable = Стайня Stable = Стайня
Cost increases by [amount] per owned city = Вартість збільшується на [amount] за кожне місто Cost increases by [amount] per owned city = Вартість збільшується на [amount] за кожне місто
@ -1135,7 +1136,7 @@ Opera House = Оперний театр
'I live and love in God's peculiar light.' - Michelangelo Buonarroti = «Живу і кохаю під особливим божим осяянням» — Мікеланджело Буонарроті. 'I live and love in God's peculiar light.' - Michelangelo Buonarroti = «Живу і кохаю під особливим божим осяянням» — Мікеланджело Буонарроті.
# Requires translation! # Requires translation!
+[amount]% [stat] [cityFilter] = +[amount]% [stat] [cityFilter] = +[amount]% [stat] [cityFilter]
Sistine Chapel = Сікстинська капела Sistine Chapel = Сікстинська капела
Bank = Банк Bank = Банк
@ -1178,7 +1179,7 @@ Science gained from research agreements +50% = +50% науки з угоди п
Porcelain Tower = Порцелянова пагода Porcelain Tower = Порцелянова пагода
# Requires translation! # Requires translation!
+[amount]% Production when constructing [param] [cityFilter] = +[amount]% Production when constructing [param] [cityFilter] = +[amount]% виробництва, коли створюються [param] у [cityFilter]
Windmill = Вітряк Windmill = Вітряк
Public School = Публічна школа Public School = Публічна школа
@ -1347,7 +1348,7 @@ What? = Що?
Hellenic League = Грецька ліга Hellenic League = Грецька ліга
City-State Influence recovers at twice the normal rate = Вплив на місто-державу відновлюється удвічі швидше City-State Influence recovers at twice the normal rate = Вплив на місто-державу відновлюється удвічі швидше
# Requires translation! # Requires translation!
City-State Influence degrades [amount]% slower = City-State Influence degrades [amount]% slower = Вплив на місто-державу зменшується на [amount]% повільніше
Athens = Афіни Athens = Афіни
Sparta = Спарта Sparta = Спарта
Corinth = Коринф Corinth = Коринф
@ -1562,7 +1563,7 @@ Hello. = Привіт.
It's you. = Це ти. It's you. = Це ти.
Ancien Régime = Старий порядок Ancien Régime = Старий порядок
# Requires translation! # Requires translation!
[stats] per turn from cities before [tech] = [stats] per turn from cities before [tech] = [stats] від міст кожного ходу до [tech]
Paris = Париж Paris = Париж
Orleans = Орлеан Orleans = Орлеан
Lyon = Ліон Lyon = Ліон
@ -2459,7 +2460,7 @@ How are you doing? = Як поживаєш?
What do you want now? = Що тобі потрібно цього разу? What do you want now? = Що тобі потрібно цього разу?
Great Andean Road = Великий Шлях Андів Great Andean Road = Великий Шлях Андів
# Requires translation! # Requires translation!
Maintenance on roads & railroads reduced by [amount]% = Maintenance on roads & railroads reduced by [amount]% = Витрати на утримання доріг та залізниць зменшуються на [amount]%
Units ignore terrain costs when moving into any tile with Hills = Підрозділи ігнорують витрати на місцевість при переміщенні в будь-яку плитку з пагорбами Units ignore terrain costs when moving into any tile with Hills = Підрозділи ігнорують витрати на місцевість при переміщенні в будь-яку плитку з пагорбами
No Maintenance costs for improvements in Hills = Немає витрат на обслуговування для доріг та залізниць на пагорбах No Maintenance costs for improvements in Hills = Немає витрат на обслуговування для доріг та залізниць на пагорбах
Cuzco = Куско Cuzco = Куско
@ -2674,12 +2675,12 @@ Units in cities cost no Maintenance = Підрозділи у містах не
+50% attacking strength for cities with garrisoned units = +50% сили для міст з гарнізоном +50% attacking strength for cities with garrisoned units = +50% сили для міст з гарнізоном
Landed Elite = Землевласники Landed Elite = Землевласники
# Requires translation! # Requires translation!
+[amount]% growth [cityFilter] = +[amount]% growth [cityFilter] = +[amount]% росту [cityFilter]
# Requires translation! # Requires translation!
[stats] [cityFilter] = [stats] [cityFilter] = [stats] [cityFilter]
Monarchy = Монархія Monarchy = Монархія
# Requires translation! # Requires translation!
[stats] per [amount] population [cityFilter] = [stats] per [amount] population [cityFilter] = [stats] за [amount] населення [cityFilter]
Tradition Complete = Традиція завершена Tradition Complete = Традиція завершена
Ancient era = Доісторичність Ancient era = Доісторичність
Tradition = Традиція Tradition = Традиція
@ -2700,7 +2701,7 @@ Discipline = Дисципліна
+15% combat strength for melee units which have another military unit in an adjacent tile = +15% сили для підрозділів ближнього бою які мають ще один підрозділ в сусідній клітинці +15% combat strength for melee units which have another military unit in an adjacent tile = +15% сили для підрозділів ближнього бою які мають ще один підрозділ в сусідній клітинці
Military Tradition = Військові традиції Military Tradition = Військові традиції
# Requires translation! # Requires translation!
[unitType] units gain [amount]% more Experience from combat = [unitType] units gain [amount]% more Experience from combat = [unitType] підрозділи отримують на [amount]% більше досвіду у боях
Military Caste = Воєнна каста Military Caste = Воєнна каста
Professional Army = Професійна армія Professional Army = Професійна армія
Honor Complete = Честь завершена Honor Complete = Честь завершена
@ -2781,27 +2782,27 @@ Clear Barbarian Camp = Знищення варварського табору
We feel threatened by a Barbarian Camp near our city. Please take care of it. = Ми відчуваємо загрозу від варварського табору біля нашого міста. We feel threatened by a Barbarian Camp near our city. Please take care of it. = Ми відчуваємо загрозу від варварського табору біля нашого міста.
# Requires translation! # Requires translation!
Connect Resource = Connect Resource = Приєднання ресурсів
# Requires translation! # Requires translation!
In order to make our civilizations stronger, connect [param] to your trade network. = In order to make our civilizations stronger, connect [param] to your trade network. = Щоб зробити наші цивілізації сильнійшими, приєднайте [param] до вашої торгівельної мережі.
Construct Wonder = Побудувати Диво Construct Wonder = Побудувати Диво
We recommend you to start building [param] to show the whole world your civilization strength. = Ми рекомендуємо вам розпочати будівництво [param], щоб засвідчити всьому світові міць вашої цивілізації. We recommend you to start building [param] to show the whole world your civilization strength. = Ми рекомендуємо вам розпочати будівництво [param], щоб засвідчити всьому світові міць вашої цивілізації.
# Requires translation! # Requires translation!
Acquire Great Person = Acquire Great Person = Отримати Видатну Особу
# Requires translation! # Requires translation!
Great People can change the course of a Civilization! You will be rewarded for acquiring a new [param]. = Great People can change the course of a Civilization! You will be rewarded for acquiring a new [param]. = Видатна особа може змінити шлях цивілізації! Вас буде винагороджено за здобуття нової особи: [param].
# Requires translation! # Requires translation!
Find Player = Find Player = Знайти гравця
# Requires translation! # Requires translation!
You have yet to discover where [param] set up their cities. You will be rewarded for finding their territories. = You have yet to discover where [param] set up their cities. You will be rewarded for finding their territories. = Ви ще не знайшли, де [param] розташовує свої міста. Вас буде винагороджено за знаходження їх територій.
# Requires translation! # Requires translation!
Find Natural Wonder = Find Natural Wonder = Знайти Природнє Диво
# Requires translation! # Requires translation!
Send your best explorers on a quest to discover Natural Wonders. Nobody knows the location of [param] yet. = Send your best explorers on a quest to discover Natural Wonders. Nobody knows the location of [param] yet. = Відправте ваших найкращих дослідників на пошуки природних Див. Ніхто досі не знає, де знаходиться [param].
#################### Lines from Specialists from Civ V - Vanilla #################### #################### Lines from Specialists from Civ V - Vanilla ####################
@ -3006,6 +3007,8 @@ Ocean = Океан
Coast = Узбережжя Coast = Узбережжя
# Requires translation!
Occurs at temperature between [param] and [param2] and humidity between [param3] and [amount] = Зустрічається при температурі від [param] до [param2] та вологості від [param3] до [amount]
Grassland = Пасовище Grassland = Пасовище
Plains = Рівнина Plains = Рівнина
@ -3170,7 +3173,7 @@ Dyes = Барвники
Gems = Коштовні камені Gems = Коштовні камені
# Requires translation! # Requires translation!
Gold Ore = Gold Ore = Золото
Silver = Срібло Silver = Срібло
@ -3232,9 +3235,10 @@ Drill II = Вишкіл II
Drill III = Вишкіл III Drill III = Вишкіл III
Charge = Приступ Charge = Наступ
Siege = Облога # Requires translation!
Besiege = Облога
Formation I = Стрій I Formation I = Стрій I
@ -3266,11 +3270,11 @@ Boarding Party II = Абордаж II
Boarding Party III = Абордаж III Boarding Party III = Абордаж III
Coastal Raider I = Канонерка I Coastal Raider I = Береговий рейдер I
Coastal Raider II = Канонерка II Coastal Raider II = Береговий рейдер II
Coastal Raider III = Канонерка III Coastal Raider III = Береговий рейдер III
Wolfpack I = Вовча зграя I Wolfpack I = Вовча зграя I
+[amount]% Strength when attacking = +[amount]% сили у атаці +[amount]% Strength when attacking = +[amount]% сили у атаці
@ -3375,7 +3379,7 @@ Can build improvements on tiles = Може вдосконалювати кліт
Excess Food converted to Production when under construction = Під час створення надлишкова їжа перетворюється на виробництво Excess Food converted to Production when under construction = Під час створення надлишкова їжа перетворюється на виробництво
# Requires translation! # Requires translation!
Requires at least [amount] population = Requires at least [amount] population = Потребує щонайменш [amount] населення
Founds a new city = Може заснувати нове місто Founds a new city = Може заснувати нове місто
Ignores terrain cost = Перетинає місцевість без перешкод Ignores terrain cost = Перетинає місцевість без перешкод

View File

@ -51,6 +51,7 @@ Add to queue =
Remove from queue = Remove from queue =
Show stats drilldown = Show stats drilldown =
Show construction queue = Show construction queue =
Save =
Diplomacy = Diplomacy =
War = War =

View File

@ -5,7 +5,6 @@ import com.badlogic.gdx.files.FileHandle
import com.badlogic.gdx.utils.Array import com.badlogic.gdx.utils.Array
import com.unciv.JsonParser import com.unciv.JsonParser
import com.unciv.logic.battle.BattleDamage import com.unciv.logic.battle.BattleDamage
import com.unciv.logic.map.MapUnit
import com.unciv.models.metadata.BaseRuleset import com.unciv.models.metadata.BaseRuleset
import com.unciv.models.ruleset.* import com.unciv.models.ruleset.*
import com.unciv.models.ruleset.tech.TechColumn import com.unciv.models.ruleset.tech.TechColumn
@ -17,7 +16,6 @@ import com.unciv.models.ruleset.unit.Promotion
import com.unciv.models.ruleset.unit.UnitType import com.unciv.models.ruleset.unit.UnitType
import com.unciv.models.stats.Stat import com.unciv.models.stats.Stat
import com.unciv.models.stats.Stats import com.unciv.models.stats.Stats
import com.unciv.ui.worldscreen.unit.UnitActions
import java.lang.reflect.Field import java.lang.reflect.Field
object TranslationFileWriter { object TranslationFileWriter {
@ -87,7 +85,7 @@ object TranslationFileWriter {
if (line.startsWith(specialNewLineCode)) { if (line.startsWith(specialNewLineCode)) {
if (!stringBuilder.endsWith("\r\n\r\n")) // don't double-add line breaks - if (!stringBuilder.endsWith("\r\n\r\n")) // don't double-add line breaks -
// this stops lots of line breaks between removed translations in G&K // this stops lots of line breaks between removed translations in G&K
stringBuilder.appendln() stringBuilder.appendLine()
} else // copy as-is } else // copy as-is
stringBuilder.appendLine(line) stringBuilder.appendLine(line)
continue continue
@ -223,7 +221,7 @@ object TranslationFileWriter {
if (parameterName in existingParameterNames) { if (parameterName in existingParameterNames) {
var i = 2 var i = 2
while (parameterName + i in existingParameterNames) i++ while (parameterName + i in existingParameterNames) i++
parameterName = parameterName + i parameterName += i
} }
existingParameterNames += parameterName existingParameterNames += parameterName
@ -270,7 +268,7 @@ object TranslationFileWriter {
return generatedStrings return generatedStrings
} }
val untranslatableFieldSet = setOf( private val untranslatableFieldSet = setOf(
"aiFreeTechs", "aiFreeUnits", "attackSound", "building", "aiFreeTechs", "aiFreeUnits", "attackSound", "building",
"cannotBeBuiltWith", "cultureBuildings", "improvement", "improvingTech", "cannotBeBuiltWith", "cultureBuildings", "improvement", "improvingTech",
"obsoleteTech", "occursOn", "prerequisites", "promotions", "obsoleteTech", "occursOn", "prerequisites", "promotions",

View File

@ -4,10 +4,9 @@ import com.badlogic.gdx.graphics.Color
import com.badlogic.gdx.scenes.scene2d.ui.Table import com.badlogic.gdx.scenes.scene2d.ui.Table
import com.badlogic.gdx.scenes.scene2d.ui.TextField import com.badlogic.gdx.scenes.scene2d.ui.TextField
import com.badlogic.gdx.utils.Align import com.badlogic.gdx.utils.Align
import com.unciv.models.translations.tr
import com.unciv.ui.utils.* import com.unciv.ui.utils.*
class CityScreenCityPickerTable(val cityScreen: CityScreen) : Table() { class CityScreenCityPickerTable(private val cityScreen: CityScreen) : Table() {
fun update() { fun update() {
val city = cityScreen.city val city = cityScreen.city
@ -52,11 +51,11 @@ class CityScreenCityPickerTable(val cityScreen: CityScreen) : Table() {
val textArea = TextField(city.name, CameraStageBaseScreen.skin) val textArea = TextField(city.name, CameraStageBaseScreen.skin)
textArea.alignment = Align.center textArea.alignment = Align.center
editCityNamePopup.add(textArea).colspan(2).row() editCityNamePopup.add(textArea).colspan(2).row()
editCityNamePopup.addCloseButton() editCityNamePopup.addButton("Save") {
editCityNamePopup.addButton("Save".tr()) {
city.name = textArea.text city.name = textArea.text
cityScreen.game.setScreen(CityScreen(city)) cityScreen.game.setScreen(CityScreen(city))
} }
editCityNamePopup.addCloseButton()
editCityNamePopup.open() editCityNamePopup.open()
} }