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
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
..
apps [fix, i18n] Make two strings translatable (#5256) 5 years ago
device [doc] Tag @todo, @fixme and @warning (#5244) 5 years ago
document [doc] Tag @todo, @fixme and @warning (#5244) 5 years ago
ui [feat, i18n] Implement ngettext (#5257) 5 years ago
cache.lua rename runtimectl to document/canvascontext 5 years ago
cacheitem.lua cleanup: expand tab to 4 spaces 10 years ago
configurable.lua decouple UI definitions from document modules 5 years ago
dbg.lua [doc] Tag @todo, @fixme and @warning (#5244) 5 years ago
depgraph.lua Gesture manager (initial) (#4240) 6 years ago
device.lua [feat] Add support for BQ/Fnac devices (#4294) 6 years ago
docsettings.lua [doc] Tag @todo, @fixme and @warning (#5244) 5 years ago
dump.lua [doc] Tag @todo, @fixme and @warning (#5244) 5 years ago
fontlist.lua [Desktop] Open writable font dir, toggle system+user/user fonts, fix openLink on mac (#5220) 5 years ago
gettext.lua [feat, i18n] Implement ngettext (#5257) 5 years ago
httpclient.lua build: enforce luacheck in travis build 8 years ago
logger.lua use android log categories 6 years ago
luadata.lua Add LuaData and Dictionary Lookup History (#3161) 7 years ago
luasettings.lua [doc] Tag @todo, @fixme and @warning (#5244) 5 years ago
luxl.lua treate quoted slash as plain text in attribute value 10 years ago
optmath.lua Faster blitting @ BB8/BBRGB32 when no processing is needed (#4847) 5 years ago
pluginloader.lua Add vertical edge gesture (#5156) 5 years ago
pluginshare.lua Move PluginShare.backgroundJobs into PluginShare module (#3128) 7 years ago
random.lua Faster blitting @ BB8/BBRGB32 when no processing is needed (#4847) 5 years ago
readhistory.lua [doc] Tag @todo, @fixme and @warning (#5244) 5 years ago
up_reg.list adapt widgets to new refresh/repaint API 10 years ago
util.lua [i18n] Add translator notes (#5250) 5 years ago
version.lua [doc, fix] Some documentation issues (#5066) 5 years ago