diff --git a/frontend/apps/filemanager/filemanager.lua b/frontend/apps/filemanager/filemanager.lua index c6d23f683..78e305f84 100644 --- a/frontend/apps/filemanager/filemanager.lua +++ b/frontend/apps/filemanager/filemanager.lua @@ -109,7 +109,7 @@ function FileManager:init() local ConfirmBox = require("ui/widget/confirmbox") UIManager:close(self.file_dialog) 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() deleteFile(file) self:refreshPath() diff --git a/frontend/apps/filemanager/filemanagersearch.lua b/frontend/apps/filemanager/filemanagersearch.lua index 5efa7c1b6..fecca324e 100644 --- a/frontend/apps/filemanager/filemanagersearch.lua +++ b/frontend/apps/filemanager/filemanagersearch.lua @@ -72,7 +72,7 @@ function Search:getCalibre() DEBUG("search Calibre database") self.metafile_1 = findcalibre("/mnt") 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 settings_changed = true end @@ -82,7 +82,7 @@ function Search:getCalibre() end 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) else self.metafile_1 = SEARCH_LIBRARY_PATH .. "." .. calibre @@ -207,7 +207,7 @@ function Search:ShowSearch() UIManager:show(self.search_dialog) else 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