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-Tag: 2.3-final~494 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=e9c096d1f088117803d7362699c43c962e852ede;p=fa-stable.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 a8ddcfc9..b5ab6130 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