Added mod screen translation terms

This commit is contained in:
Yair Morgenstern 2020-09-07 23:03:12 +03:00
parent 4fa77ac20b
commit 3719b5c4f6
2 changed files with 23 additions and 5 deletions

View file

@ -888,9 +888,27 @@ ID successfully set! =
Invalid ID! =
# Mods
Mods =
Download [modName] =
Could not download mod list =
[amount] Stars =
Download mod from URL =
Download =
Done! =
Delete [modName] =
Are you SURE you want to delete this mod? =
# Uniques that are relevant to more than one type of game object
[stats] from every [param] =
[stats] from [param] tiles in this city =
[stats] for each adjacent [param] =
+[amount]% vs [unitType] =
# City filters
in this city =
in every city =
in capital =

View file

@ -48,10 +48,10 @@ class ModManagementScreen: PickerScreen() {
rightSideButton.enable()
rightSideButton.setText("Download [${repo.name}]".tr())
rightSideButton.onClick {
rightSideButton.setText("Downloading...")
rightSideButton.setText("Downloading...".tr())
rightSideButton.disable()
downloadMod(repo.svn_url) {
rightSideButton.setText("Done!".tr())
rightSideButton.setText("Downloaded!".tr())
}
}
}
@ -64,14 +64,14 @@ class ModManagementScreen: PickerScreen() {
}
fun getDownloadButton(): TextButton {
val downloadButton = "Download mod".toTextButton()
val downloadButton = "Download mod from URL".toTextButton()
downloadButton.onClick {
val popup = Popup(this)
val textArea = TextArea("https://github.com/yairm210/Unciv-IV-mod",skin)
val textArea = TextArea("https://github.com/...",skin)
popup.add(textArea).width(stage.width/2).row()
val downloadButton = "Download".toTextButton()
downloadButton.onClick {
downloadButton.setText("Downloading...")
downloadButton.setText("Downloading...".tr())
downloadButton.disable()
downloadMod(textArea.text) { popup.close() }
}