Menu: Allow translating the "Go to" input hint

reviewable/pr7795/r1
NiLuJe 3 years ago committed by Frans de Jonge
parent 594b4c9035
commit df77819dc2

@ -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"),

Loading…
Cancel
Save