Fix plural form parsing. Props nbachiyski. fixes #3577

git-svn-id: https://develop.svn.wordpress.org/trunk@4736 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-01-16 01:37:48 +00:00
parent e8967ab756
commit 51eab57361
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;