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:
ryan 2007-01-16 01:37:48 +00:00
parent d8ca8009d3
commit f9e84c7b77
1 changed files with 5 additions and 1 deletions

View File

@ -302,7 +302,11 @@ class gettext_reader {
$string = str_replace('nplurals',"\$total",$string);
$string = str_replace("n",$n,$string);
$string = str_replace('plural',"\$plural",$string);
# poEdit doesn't put any semicolons, which
# results in parse error in eval
$string .= ';';
$total = 0;
$plural = 0;