Some English improvements in evernote.koplugin

pull/1214/head
Frans de Jonge 10 years ago
parent fad702b6d5
commit 6a7e6ed6ca

@ -190,7 +190,7 @@ function EvernoteExporter:doLogin(username, password)
return return
elseif not ok and token then elseif not ok and token then
UIManager:show(InfoMessage:new{ UIManager:show(InfoMessage:new{
text = _("Error occurs when login:") .. "\n" .. token, text = _("An error occurred while logging in:") .. "\n" .. token,
}) })
return return
end end
@ -205,13 +205,13 @@ function EvernoteExporter:doLogin(username, password)
return return
elseif not ok and guid then elseif not ok and guid then
UIManager:show(InfoMessage:new{ UIManager:show(InfoMessage:new{
text = _("Error occurs when login:") .. "\n" .. guid, text = _("An error occurred while logging in:") .. "\n" .. guid,
}) })
elseif ok and guid then elseif ok and guid then
self.evernote_token = token self.evernote_token = token
self.notebook_guid = guid self.notebook_guid = guid
UIManager:show(InfoMessage:new{ UIManager:show(InfoMessage:new{
text = _("Login to Evernote successfully"), text = _("Logged in to Evernote successfully."),
}) })
end end
@ -340,21 +340,21 @@ function EvernoteExporter:exportClippings(clippings)
end end
end end
local msg = "Not exported anything." local msg = "Nothing was exported."
local all_count = export_count + error_count local all_count = export_count + error_count
if export_count > 0 and error_count == 0 then if export_count > 0 and error_count == 0 then
if all_count == 1 then if all_count == 1 then
msg = _("Exported notes in book:") .. "\n" .. export_title msg = _("Exported notes from book:") .. "\n" .. export_title
else else
msg = _("Exported notes in book:") .. "\n" .. export_title msg = _("Exported notes from book:") .. "\n" .. export_title
msg = msg .. "\n" .. _("and ") .. all_count-1 .. _(" others.") msg = msg .. "\n" .. _("and ") .. all_count-1 .. _(" others.")
end end
elseif error_count > 0 then elseif error_count > 0 then
if all_count == 1 then if all_count == 1 then
msg = _("Error occurs when exporting book:") .. "\n" .. error_title msg = _("An error occurred while trying to export notes from book:") .. "\n" .. error_title
else else
msg = _("Errors occur when exporting book:") .. "\n" .. error_title msg = _("Multiple errors occurred while trying to export notes from book:") .. "\n" .. error_title
msg = msg .. "\n" .. _("and ") .. error_count-1 .. (" others.") msg = msg .. "\n" .. _("and ") .. error_count-1 .. _(" others.")
end end
end end
UIManager:show(InfoMessage:new{ text = msg }) UIManager:show(InfoMessage:new{ text = msg })

Loading…
Cancel
Save