From 462fc6fab737ee7f0b57b22d0dd9047308b64394 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Sun, 8 Sep 2019 19:27:00 +0300 Subject: [PATCH] English translations --- android/assets/jsons/Translations/Units,Promotions.json | 4 ++++ core/src/com/unciv/logic/city/CityInfo.kt | 2 ++ core/src/com/unciv/ui/worldscreen/optionstable/DropBox.kt | 5 +++++ 3 files changed, 11 insertions(+) diff --git a/android/assets/jsons/Translations/Units,Promotions.json b/android/assets/jsons/Translations/Units,Promotions.json index a315a47af1..5b6735f376 100644 --- a/android/assets/jsons/Translations/Units,Promotions.json +++ b/android/assets/jsons/Translations/Units,Promotions.json @@ -27,6 +27,7 @@ } "WaterCivilian":{ // In the file "Uints.json", every unit have the "unitType", i think we should show the "unitType" in wiki,because some units get a bonus attack to other units. + English:"Water Civilian" Italian:"marittima civile" //Unità marittima civile Simplified_Chinese:"海上平民单位" French:"Civil embarqué" @@ -46,6 +47,7 @@ } "WaterMelee":{ + English:"Water Melee" Italian:"marittima da mischia" //Unità marittima da mischia Simplified_Chinese:"海军近战单位" French:"Navire de combat rapproché" @@ -65,6 +67,7 @@ } "WaterRanged":{ + English:"Water Ranged" Italian:"marittima a distanza" //Unità marittima a distanza Simplified_Chinese:"海军远程单位" French:"Navire de combat à distance" @@ -72,6 +75,7 @@ } "WaterSubmarine":{ //In the file "Uints.json", every unit have the "unitType".This unitType includes submarine and nuclear submarine. + English:"Submarine" Italian:"sottomarina" //Unità sottomarina Simplified_Chinese:"海军潜艇单位" French:"Navires sous-marins" diff --git a/core/src/com/unciv/logic/city/CityInfo.kt b/core/src/com/unciv/logic/city/CityInfo.kt index bb05e21701..7e7f8c6a54 100644 --- a/core/src/com/unciv/logic/city/CityInfo.kt +++ b/core/src/com/unciv/logic/city/CityInfo.kt @@ -24,6 +24,7 @@ class CityInfo { var location: Vector2 = Vector2.Zero var name: String = "" + var foundingCiv = "" var health = 200 var resistanceCounter = 0 @@ -41,6 +42,7 @@ class CityInfo { constructor() // for json parsing, we need to have a default constructor constructor(civInfo: CivilizationInfo, cityLocation: Vector2) { // new city! this.civInfo = civInfo + foundingCiv = civInfo.civName this.location = cityLocation setTransients() diff --git a/core/src/com/unciv/ui/worldscreen/optionstable/DropBox.kt b/core/src/com/unciv/ui/worldscreen/optionstable/DropBox.kt index 45b62c92df..ce587fd862 100644 --- a/core/src/com/unciv/ui/worldscreen/optionstable/DropBox.kt +++ b/core/src/com/unciv/ui/worldscreen/optionstable/DropBox.kt @@ -64,6 +64,11 @@ class DropBox(){ data,"application/octet-stream", """{"path":"$fileName"$overwriteModeString}""") } + fun deleteFile(fileName:String){ + val response = dropboxApi("https://api.dropboxapi.com/2/files/delete_v2", + "{\"path\":\"$fileName\"}","application/json") + } + class FolderList{ var entries = ArrayList()