Fix plural form parsing. Props nbachiyski. fixes #3577
git-svn-id: http://svn.automattic.com/wordpress/trunk@4736 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d8ca8009d3
commit
f9e84c7b77
|
@ -302,7 +302,11 @@ class gettext_reader {
|
||||||
$string = str_replace('nplurals',"\$total",$string);
|
$string = str_replace('nplurals',"\$total",$string);
|
||||||
$string = str_replace("n",$n,$string);
|
$string = str_replace("n",$n,$string);
|
||||||
$string = str_replace('plural',"\$plural",$string);
|
$string = str_replace('plural',"\$plural",$string);
|
||||||
|
|
||||||
|
# poEdit doesn't put any semicolons, which
|
||||||
|
# results in parse error in eval
|
||||||
|
$string .= ';';
|
||||||
|
|
||||||
$total = 0;
|
$total = 0;
|
||||||
$plural = 0;
|
$plural = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue