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

@ -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() }
}