cvs: phpdoc /scripts check-trans.php
| From: | Yannick Torres | Date: | Sun, 08 Jun 2008 09:09:54 +0000 |
| Subject: | cvs: phpdoc /scripts check-trans.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-1769@lists.php.net to get a copy of this message | ||
yannick Sun Jun 8 09:09:54 2008 UTC
Modified files:
/phpdoc/scripts check-trans.php
Log:
correct para detection
http://cvs.php.net/viewvc.cgi/phpdoc/scripts/check-trans.php?r1=1.11&r2=1.12&diff_format=u
Index: phpdoc/scripts/check-trans.php
diff -u phpdoc/scripts/check-trans.php:1.11 phpdoc/scripts/check-trans.php:1.12
--- phpdoc/scripts/check-trans.php:1.11 Sun Jun 8 07:42:06 2008
+++ phpdoc/scripts/check-trans.php Sun Jun 8 09:09:54 2008
@@ -932,13 +932,13 @@
// para
$en_para = 0;
-preg_match_all("/<para(.*?)<\/para>/s", $en_content, $match2);
-$en_para = count($match2[1]);
+preg_match_all("/<para(( )(.*?))?>/s", $en_content, $match2);
+$en_para = count($match2[0]);
$lang_para = 0;
-preg_match_all("/<para(.*?)<\/para>/s", $lang_content, $match2);
-$lang_para = count($match2[1]);
+preg_match_all("/<para(( )(.*?))?>/s", $lang_content, $match2);
+$lang_para = count($match2[0]);
if( $en_para != $lang_para ) {