From: Joe Hunt Date: Wed, 25 Jan 2012 12:00:18 +0000 (+0100) Subject: Fixed a translation bug in gettext php, that could create huge session files left. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=e1b70f9fed6a19079004f28775212a384ae79514;p=textcart.git Fixed a translation bug in gettext php, that could create huge session files left. --- 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