summaryrefslogtreecommitdiff
path: root/localized_js.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-24 20:08:18 +0400
committerAndrew Dolgov <[email protected]>2013-03-24 20:08:18 +0400
commitfcbed87b206afaabd5874762720439b2830f6ef8 (patch)
treea9e4310a638664b0990e937c1d908aefc6fc1ec4 /localized_js.php
parent8850646ff375f8858442900dac790c5e38e86f88 (diff)
localized_js: add ngettext
Diffstat (limited to 'localized_js.php')
-rw-r--r--localized_js.php4
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();