mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Various applications of util.template
This is the first bunch for #1276. I'd like to resolve #1281 before doing more.
This commit is contained in:
@@ -10,6 +10,7 @@ local Event = require("ui/event")
|
||||
local UIManager = require("ui/uimanager")
|
||||
local Screen = require("device").screen
|
||||
local DEBUG = require("dbg")
|
||||
local T = require("ffi/util").template
|
||||
local _ = require("gettext")
|
||||
|
||||
local ReaderFont = InputContainer:new{
|
||||
@@ -210,7 +211,7 @@ end
|
||||
function ReaderFont:makeDefault(face)
|
||||
if face then
|
||||
UIManager:show(ConfirmBox:new{
|
||||
text = _("Set default font to ")..face.."?",
|
||||
text = T( _("Set default font to %1?"), face),
|
||||
ok_callback = function()
|
||||
G_reader_settings:saveSetting("cre_font", face)
|
||||
end,
|
||||
|
||||
Reference in New Issue
Block a user