From be5e469d65db5a7b6ff83faa48a4b1d547ccb36c Mon Sep 17 00:00:00 2001 From: gsomgsomgsom Date: Wed, 17 Jul 2013 00:36:37 +0400 Subject: Fix plural forms localization in js. Updated russian locale --- include/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/functions.php') diff --git a/include/functions.php b/include/functions.php index 58aad1113..6312fa761 100644 --- a/include/functions.php +++ b/include/functions.php @@ -4283,8 +4283,8 @@ $orig = $l10n->get_original_string($i); if(strpos($orig, "\000") !== FALSE) { // Plural forms $key = explode(chr(0), $orig); - print T_js_decl($key[0], ngettext($key[0], $key[1], 1)); // Singular - print T_js_decl($key[1], ngettext($key[0], $key[1], 2)); // Plural + print T_js_decl($key[0], _ngettext($key[0], $key[1], 1)); // Singular + print T_js_decl($key[1], _ngettext($key[0], $key[1], 2)); // Plural } else { $translation = __($orig); print T_js_decl($orig, $translation); -- cgit v1.2.3