You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
koreader/frontend/ui
Frans de Jonge 2c555830f9
[feat, i18n] Implement ngettext (#5257)
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)
```
5 years ago
..
data [i18n] Add translator notes (#5250) 5 years ago
elements [Desktop] Open writable font dir, toggle system+user/user fonts, fix openLink on mac (#5220) 5 years ago
message [doc] Tag @todo, @fixme and @warning (#5244) 5 years ago
network [i18n] Add translator notes (#5250) 5 years ago
plugin SwitchPlugin and BackgroundTaskPlugin with tests (#3137) 7 years ago
widget [feat, i18n] Implement ngettext (#5257) 5 years ago
downloadmgr.lua PathChooser: clearer usage and behaviour (#4133) 6 years ago
event.lua doc: event propagation for widgets 8 years ago
font.lua split UI agnostic code from font.lua into fontlist.lua 5 years ago
geometry.lua [doc] Tag @todo, @fixme and @warning (#5244) 5 years ago
gesturerange.lua Text input fixes and enhancements (#4084) 6 years ago
hook_container.lua Move kobo auto-suspension logic out of UIManager (#2933) 7 years ago
language.lua [i18n] Add Slovak to translations (#4548) 5 years ago
menusorter.lua [fix] MenuSorter: don't add empty menu item (#4848) 5 years ago
opdsparser.lua Escape &, < and > when removing CDATA. 6 years ago
otamanager.lua [doc] Tag @todo, @fixme and @warning (#5244) 5 years ago
quickstart.lua [CI] Switch to custom xgettext build to extract multiline strings (#5242) 5 years ago
renderimage.lua decouple device from pdfdocument, font & bgr checking 5 years ago
rendertext.lua [doc] Tag @todo, @fixme and @warning (#5244) 5 years ago
screensaver.lua Update screensaver.lua (#5123) 5 years ago
size.lua Text input fixes and enhancements (#4084) 6 years ago
timeval.lua [fix] TimeVal: add dbg:guard against incorrect subtraction order (#4669) 5 years ago
translator.lua [i18n] Add translator notes (#5250) 5 years ago
trapper.lua [doc] Tag @todo, @fixme and @warning (#5244) 5 years ago
uimanager.lua [doc] Tag @todo, @fixme and @warning (#5244) 5 years ago
wikipedia.lua [doc] Tag @todo, @fixme and @warning (#5244) 5 years ago