chore: style cleanup for infomessage

This commit is contained in:
Qingping Hou
2017-05-08 00:26:01 -07:00
committed by Frans de Jonge
parent 0b47c81b1a
commit 23c2955500
8 changed files with 52 additions and 43 deletions

View File

@@ -27,7 +27,7 @@ function DropBox:downloadFile(item, password, path, close)
})
else
UIManager:show(InfoMessage:new{
text = _("Could not save file to:\n") .. path,
text = T(_("Could not save file to:\n%1"), path),
timeout = 3,
})
end
@@ -81,7 +81,7 @@ function DropBox:config(item, callback)
{
text = _("Info"),
callback = function()
UIManager:show(InfoMessage:new{text = text_info })
UIManager:show(InfoMessage:new{ text = text_info })
end
},
{
@@ -99,7 +99,9 @@ function DropBox:config(item, callback)
self.settings_dialog:onClose()
UIManager:close(self.settings_dialog)
else
UIManager:show(InfoMessage:new{text = "Please fill in all fields." })
UIManager:show(InfoMessage:new{
text = _("Please fill in all fields.")
})
end
end
},