From: Alan H. <min...@us...> - 2006-02-27 21:44:25
|
Update of /cvsroot/gallery/gallery2/lib/tools/po In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10057/lib/tools/po Modified Files: extract.php Log Message: Update extract.php to allow whitespace between array( and 'text' or 'one'. This now catches 5 strings that were missing from po files. Index: extract.php =================================================================== RCS file: /cvsroot/gallery/gallery2/lib/tools/po/extract.php,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- extract.php 15 Feb 2006 19:21:11 -0000 1.20 +++ extract.php 27 Feb 2006 21:44:21 -0000 1.21 @@ -139,7 +139,7 @@ } /* grab phrases of this format: translate(array('one' => '...', 'many' => '...')) */ - if (preg_match_all("/translate\(.*?array\('one'\s*=>\s*'(.*?)'.*?'many'\s*=>\s*'(.*?)'.*?\).*?\)/s", + if (preg_match_all("/translate\(.*?array\(\s*'one'\s*=>\s*'(.*?)'.*?'many'\s*=>\s*'(.*?)'.*?\).*?\)/s", $data, $matches, PREG_SET_ORDER)) { foreach ($matches as $match) { $one = $match[1]; @@ -157,7 +157,7 @@ } /* grab phrases of this format: translate(array('text' => '...', ...)) */ - if (preg_match_all("/translate\(\s*array\('text'\s*=>\s+'(.*?[^\\\])'/s", + if (preg_match_all("/translate\(\s*array\(\s*'text'\s*=>\s+'(.*?[^\\\])'/s", $data, $matches, PREG_SET_ORDER)) { foreach ($matches as $match) { $text = $match[1]; |