diff options
author | Andrew Dolgov <[email protected]> | 2013-03-24 20:08:18 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-03-24 20:08:18 +0400 |
commit | fcbed87b206afaabd5874762720439b2830f6ef8 (patch) | |
tree | a9e4310a638664b0990e937c1d908aefc6fc1ec4 | |
parent | 8850646ff375f8858442900dac790c5e38e86f88 (diff) |
localized_js: add ngettext
-rw-r--r-- | localized_js.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/localized_js.php b/localized_js.php index 46dbe2961..3e1c31e56 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; +} + <?php $l10n = _get_reader(); |