From 4c70e6cb565ddd931b6aae122f33187239137c25 Mon Sep 17 00:00:00 2001 From: Frans de Jonge Date: Sat, 25 Jul 2020 18:28:19 +0200 Subject: [PATCH] [fix] Add plural string for number of books (#6431) Reported by https://hosted.weblate.org/user/leschek/ --- plugins/coverbrowser.koplugin/bookinfomanager.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/coverbrowser.koplugin/bookinfomanager.lua b/plugins/coverbrowser.koplugin/bookinfomanager.lua index ac2d8ed1c..85b4f37a5 100644 --- a/plugins/coverbrowser.koplugin/bookinfomanager.lua +++ b/plugins/coverbrowser.koplugin/bookinfomanager.lua @@ -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