From 6a0cc0afc66f95fe8c10dea18f539f97dd948b49 Mon Sep 17 00:00:00 2001 From: chrox Date: Tue, 26 Aug 2014 10:47:15 +0800 Subject: [PATCH] remove too verbose information that is utterly untranslatable I would suggest when creating a translate string you'd better keep as much words together as you can other than trying to call the `_` function on each word which may cause the final translation in some languages unreadable. For example, no matter how we translate the single words, the Chinese translation of ``` _("No ") .. some_thing .. _("found ") .. _("matching") .. other_thing ``` will be nonsense. Better way would be: ``` some_thing .. " is not found matching" .. other_thing ``` --- frontend/apps/filemanager/filemanagersearch.lua | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/frontend/apps/filemanager/filemanagersearch.lua b/frontend/apps/filemanager/filemanagersearch.lua index 63263adcb..9f4240632 100644 --- a/frontend/apps/filemanager/filemanagersearch.lua +++ b/frontend/apps/filemanager/filemanagersearch.lua @@ -514,15 +514,7 @@ function Search:find(option) self:browse(option,1) end else - if option == "find" then - dummy = _("No match for") .. " " .. self.search_value - else - dummy = _("No") .. " " .. option .. " " .. _("found") - if string.len(self.search_value) > 0 then - dummy = dummy .. " " .. _("matching") .. " " .. self.search_value - end - dummy = dummy .. "!" - end + dummy = _("No match for") .. " " .. self.search_value UIManager:show(InfoMessage:new{text = dummy}) end end