mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Fixes <https://github.com/koreader/koreader/issues/5249>. See https://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html and https://www.gnu.org/software/gettext/manual/html_node/Translating-plural-forms.html for more information. Usage: ```lua local T = ffiUtil.template local _ = require("gettext") local N_ = _.ngettext local items_string = T(N_("1 item", "%1 items", num_items), num_items) ```