From: Andrew Dolgov Date: Sun, 24 Mar 2013 16:08:18 +0000 (+0400) Subject: localized_js: add ngettext X-Git-Tag: 1.7.6~324 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=fcbed87b206afaabd5874762720439b2830f6ef8;p=tt-rss.git localized_js: add ngettext --- diff --git a/localized_js.php b/localized_js.php index 46dbe296..3e1c31e5 100644 --- a/localized_js.php +++ b/localized_js.php @@ -30,6 +30,10 @@ function __(msg) { } } +function ngettext(msg1, msg2, n) { + return (parseInt(n) > 1) ? msg2 : msg1; +} +