Skip to content

Commit

Permalink
stick 'et al.' on author line in mosaic like in list mode
Browse files Browse the repository at this point in the history
  • Loading branch information
poire-z committed Jan 20, 2018
1 parent 96af191 commit d93474c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/coverbrowser.koplugin/mosaicmenu.lua
Expand Up @@ -26,6 +26,7 @@ local logger = require("logger")
local util = require("util")
local _ = require("gettext")
local Screen = Device.screen
local T = require("ffi/util").template
local getMenuText = require("util").getMenuText

local BookInfoManager = require("bookinfomanager")
Expand Down Expand Up @@ -143,7 +144,7 @@ function FakeCover:init()
if authors and authors:find("\n") then
authors = util.splitToArray(authors, "\n")
if #authors > 3 then
authors = { authors[1], authors[2], authors[3], _("et al.") }
authors = { authors[1], authors[2], T(_("%1 et al."), authors[3]) }
end
authors = table.concat(authors, "\n")
end
Expand Down

0 comments on commit d93474c

Please sign in to comment.