add gettext to all reader widgets

This commit is contained in:
Qingping Hou
2013-04-08 15:21:59 +08:00
parent f36279ed53
commit 3602c61b1f
10 changed files with 64 additions and 58 deletions

View File

@@ -24,7 +24,8 @@ it works using data gathered from a document interface
ReaderUI = InputContainer:new{
key_events = {
Close = { {"Home"}, doc = "close document", event = "Close" },
Close = { { "Home" },
doc = _("close document"), event = "Close" },
},
active_widgets = {},
@@ -52,8 +53,8 @@ function ReaderUI:init()
end
if Device:hasKeyboard() then
self.key_events.Back = {
{ "Back" }, doc = "close document",
self.key_events.Back = {
{ "Back" }, doc = _("close document"),
event = "Close" }
end
@@ -102,7 +103,7 @@ function ReaderUI:init()
if self.document.info.has_pages then
-- for page specific controller
-- if needed, insert a paging container
local pager = ReaderPaging:new{
dialog = self.dialog,