localized_js: add ngettext

This commit is contained in:
Andrew Dolgov 2013-03-24 20:08:18 +04:00
parent 8850646ff3
commit fcbed87b20
1 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,10 @@ function __(msg) {
}
}
function ngettext(msg1, msg2, n) {
return (parseInt(n) > 1) ? msg2 : msg1;
}
<?php
$l10n = _get_reader();