]> git.wh0rd.org - tt-rss.git/commitdiff
localized_js: add ngettext
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 24 Mar 2013 16:08:18 +0000 (20:08 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 24 Mar 2013 16:08:18 +0000 (20:08 +0400)
localized_js.php

index 46dbe2961131e3ce93904731a344d3cce7ebfc87..3e1c31e565a0d55a50a0126683b12f2660529b94 100644 (file)
@@ -30,6 +30,10 @@ function __(msg) {
        }
 }
 
+function ngettext(msg1, msg2, n) {
+       return (parseInt(n) > 1) ? msg2 : msg1;
+}
+
 <?php
        $l10n = _get_reader();