luci-base: cbi.js: support plural translations and disambiguation contexts
authorJo-Philipp Wich <jo@mein.io>
Wed, 22 Jan 2020 20:56:28 +0000 (21:56 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 22 Jan 2020 21:02:24 +0000 (22:02 +0100)
commit894752610d80a2fa1cdb6a845526728eeb0bc984
tree73015bfd148e51cbda12d6e3264c75910bea8011
parent9c1bac4168d151c2a3a5a1f957adbd68b6ae0746
luci-base: cbi.js: support plural translations and disambiguation contexts

 - Implement `N_(count, "String singular", "String plural" [, "Context"])`
   plural translation function.

 - Extend `_()` to optionally accept a second disambiguation context
   argument.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/cbi.js