summaryrefslogtreecommitdiffstats
path: root/wp-includes/gettext.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/gettext.php')
-rw-r--r--wp-includes/gettext.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/wp-includes/gettext.php b/wp-includes/gettext.php
index ed94ca9..a35b0b9 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;