From 51eab5736186c5b7a91d8fbeaab04244bfbccb9a Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 16 Jan 2007 01:37:48 +0000 Subject: [PATCH] Fix plural form parsing. Props nbachiyski. fixes #3577 git-svn-id: https://develop.svn.wordpress.org/trunk@4736 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/gettext.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wp-includes/gettext.php b/wp-includes/gettext.php index ed94ca9ee7..a35b0b9a99 100644 --- a/wp-includes/gettext.php +++ b/wp-includes/gettext.php @@ -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;