mirror of
https://github.com/koreader/koreader.git
synced 2025-12-24 12:14:05 +01:00
template -> T (#3966)
This commit is contained in:
@@ -27,7 +27,7 @@ local VerticalSpan = require("ui/widget/verticalspan")
|
|||||||
local util = require("util")
|
local util = require("util")
|
||||||
local _ = require("gettext")
|
local _ = require("gettext")
|
||||||
local Screen = Device.screen
|
local Screen = Device.screen
|
||||||
local template = require("ffi/util").template
|
local T = require("ffi/util").template
|
||||||
|
|
||||||
local stats_book = {}
|
local stats_book = {}
|
||||||
|
|
||||||
@@ -306,7 +306,7 @@ function BookStatusWidget:genBookInfoGroup()
|
|||||||
)
|
)
|
||||||
-- complete text
|
-- complete text
|
||||||
local text_complete = TextWidget:new{
|
local text_complete = TextWidget:new{
|
||||||
text = template(_("%1% Completed"),
|
text = T(_("%1% Completed"),
|
||||||
string.format("%1.f", read_percentage * 100)),
|
string.format("%1.f", read_percentage * 100)),
|
||||||
face = self.small_font_face,
|
face = self.small_font_face,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user