diff --git a/frontend/apps/reader/modules/readerhighlight.lua b/frontend/apps/reader/modules/readerhighlight.lua index ec87b09f8..c6ffec366 100644 --- a/frontend/apps/reader/modules/readerhighlight.lua +++ b/frontend/apps/reader/modules/readerhighlight.lua @@ -10,6 +10,7 @@ local Translator = require("ui/translator") local UIManager = require("ui/uimanager") local logger = require("logger") local _ = require("gettext") +local C_ = _.pgettext local T = require("ffi/util").template local Screen = Device.screen @@ -800,7 +801,7 @@ function ReaderHighlight:onHoldRelease() }, { { - text = "Copy", + text = C_("Text", "Copy"), enabled = Device:hasClipboard(), callback = function() Device.input.setClipboardText(self.selected_text.text) diff --git a/plugins/statistics.koplugin/main.lua b/plugins/statistics.koplugin/main.lua index 22aba0be2..98ab455a4 100755 --- a/plugins/statistics.koplugin/main.lua +++ b/plugins/statistics.koplugin/main.lua @@ -1021,7 +1021,10 @@ function ReaderStatistics:getCurrentStat(id_book) -- adding 0.5 rounds to nearest integer with math.floor { _("Percentage completed"), math.floor(total_read_pages / self.data.pages * 100 + 0.5) .. "%" }, { _("Average time per day"), util.secondsToClock(total_time_book/tonumber(total_days)), false }, - { _("Estimated reading finished"), string.format("%s (%d day(s))", estimate_end_of_read_date, estimate_days_to_read) }, + { _("Estimated reading finished"), + --- @todo Plurals for translations. + -- @translators Estimated reading finished date (%1), estimated remaining days to read (%2). Please see https://github.com/koreader/koreader/issues/5249 to track proper plural translation. + T(_("%1 (%2 day(s))"), estimate_end_of_read_date, estimate_days_to_read) }, } end