mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Menu: Allow translating the "Go to" input hint
This commit is contained in:
@@ -34,6 +34,7 @@ local logger = require("logger")
|
||||
local _ = require("gettext")
|
||||
local Input = Device.input
|
||||
local Screen = Device.screen
|
||||
local T = FFIUtil.template
|
||||
|
||||
local ItemShortCutIcon = WidgetContainer:new{
|
||||
dimen = Geom:new{ w = Screen:scaleBySize(22), h = Screen:scaleBySize(22) },
|
||||
@@ -817,7 +818,8 @@ function Menu:init()
|
||||
title_goto = _("Enter page number or letter")
|
||||
type_goto = "string"
|
||||
hint_func = function()
|
||||
return string.format("(1 - %s) or (a - z)", self.page_num)
|
||||
-- @translators First group is a page number range, second group the standard range for alphabetic searches
|
||||
return T(_("(1 - %1) or (a - z)"), self.page_num)
|
||||
end
|
||||
table.insert(buttons[1], {
|
||||
text = _("Go to letter"),
|
||||
|
||||
Reference in New Issue
Block a user