[fix] Add plural string for number of books (#6431)

Reported by https://hosted.weblate.org/user/leschek/
reviewable/pr6433/r1
Frans de Jonge 4 years ago committed by GitHub
parent 2f3fda3fe8
commit 4c70e6cb56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -11,6 +11,7 @@ local logger = require("logger")
local util = require("ffi/util")
local splitFilePathName = require("util").splitFilePathName
local _ = require("gettext")
local N_ = _.ngettext
local T = require("ffi/util").template
-- Util functions needed by this plugin, but that may be added to existing base/ffi/ files
@ -776,7 +777,7 @@ Do you want to prune the cache of removed books?]]
UIManager:close(info)
if refresh_existing then
info = InfoMessage:new{text = T(_("Found %1 books to index."), #files)}
info = InfoMessage:new{text = T(N_("Found 1 book to index.", "Found %1 books to index."), #files)}
UIManager:show(info)
UIManager:forceRePaint()
util.sleep(2) -- Let the user see that
@ -823,7 +824,7 @@ Do you want to prune the cache of removed books?]]
end
end
UIManager:close(info)
info = InfoMessage:new{text = T(_("Found %1 books to index."), #files)}
info = InfoMessage:new{text = T(N_("Found 1 book to index.", "Found %1 books to index."), #files)}
UIManager:show(info)
UIManager:forceRePaint()
util.sleep(2) -- Let the user see that

Loading…
Cancel
Save