From e1b70f9fed6a19079004f28775212a384ae79514 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Wed, 25 Jan 2012 13:00:18 +0100 Subject: [PATCH] Fixed a translation bug in gettext php, that could create huge session files left. --- includes/lang/gettext.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/lang/gettext.php b/includes/lang/gettext.php index a8ddcfc..b5ab613 100644 --- a/includes/lang/gettext.php +++ b/includes/lang/gettext.php @@ -474,6 +474,7 @@ class gettext_php_support_parser */ function _parse_line($line, $nbr) { + $line = str_replace("\\\"", "'", $line); if (preg_match('/^\s*?#/', $line)) { return; } if (preg_match('/^\s*?msgid \"(.*?)(?!<\\\)\"/', $line, $m)) { $this->_store_key(); @@ -559,8 +560,6 @@ function set_ext_domain($path='') { array_shift($domain_stack); $path = $domain_stack[0]; } - $lang_path = $path_to_root . ($path ? '/' : '') .$path.'/lang'; - $lang_path = $path_to_root . ($path ? '/' : '') .$path.'/lang'; // ignore change when extension does not provide translation structure -- 2.30.2