Various language-related fixes.

pull/1174/head
Frans de Jonge 10 years ago
parent 2dbda247a2
commit 324d67a7a8

@ -109,7 +109,7 @@ function FileManager:init()
local ConfirmBox = require("ui/widget/confirmbox") local ConfirmBox = require("ui/widget/confirmbox")
UIManager:close(self.file_dialog) UIManager:close(self.file_dialog)
UIManager:show(ConfirmBox:new{ UIManager:show(ConfirmBox:new{
text = _("Are you sure that you want to delete this file?\n") .. file .. ("\nIf you delete a file, it is permanently lost"), text = _("Are you sure that you want to delete this file?\n") .. file .. ("\n") .. _("If you delete a file, it is permanently lost."),
ok_callback = function() ok_callback = function()
deleteFile(file) deleteFile(file)
self:refreshPath() self:refreshPath()

@ -72,7 +72,7 @@ function Search:getCalibre()
DEBUG("search Calibre database") DEBUG("search Calibre database")
self.metafile_1 = findcalibre("/mnt") self.metafile_1 = findcalibre("/mnt")
if not self.metafile_1 then if not self.metafile_1 then
self.error = "SEARCH_LIBRARY_PATH in DEFAULTS.LUA is not set!" self.error = _("SEARCH_LIBRARY_PATH should be defined in DEFAULTS.LUA.")
else else
settings_changed = true settings_changed = true
end end
@ -82,7 +82,7 @@ function Search:getCalibre()
end end
if io.open(SEARCH_LIBRARY_PATH .. calibre,"r") == nil then if io.open(SEARCH_LIBRARY_PATH .. calibre,"r") == nil then
if io.open(SEARCH_LIBRARY_PATH .. "." .. calibre,"r") == nil then if io.open(SEARCH_LIBRARY_PATH .. "." .. calibre,"r") == nil then
self.error = SEARCH_LIBRARY_PATH .. calibre .. " not found!" self.error = SEARCH_LIBRARY_PATH .. calibre .. " " .. _("not found.")
DEBUG(self.error) DEBUG(self.error)
else else
self.metafile_1 = SEARCH_LIBRARY_PATH .. "." .. calibre self.metafile_1 = SEARCH_LIBRARY_PATH .. "." .. calibre
@ -207,7 +207,7 @@ function Search:ShowSearch()
UIManager:show(self.search_dialog) UIManager:show(self.search_dialog)
else else
if self.error then if self.error then
UIManager:show(InfoMessage:new{text = self.error .. _( " A search for a " .. calibre .. " file was not successful!"),}) UIManager:show(InfoMessage:new{text = self.error .. ("\n") .. _( "Unable to find a calibre metadata file."),})
end end
end end

Loading…
Cancel
Save