Fix plural forms localization in js. Updated russian locale

This commit is contained in:
gsomgsomgsom 2013-07-17 00:36:37 +04:00
parent aefed7f75c
commit be5e469d65
3 changed files with 711 additions and 395 deletions

View File

@ -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);

Binary file not shown.

File diff suppressed because it is too large Load Diff