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:
Frans de Jonge
2014-11-28 12:48:15 +01:00
parent cf93605d04
commit 66f04af8fb
4 changed files with 35 additions and 14 deletions

View File

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