cvs: phpdoc /scripts check-trans.php
| From: | Yannick Torres | Date: | Fri, 25 Apr 2008 14:07:36 +0000 |
| Subject: | cvs: phpdoc /scripts check-trans.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-1566@lists.php.net to get a copy of this message | ||
yannick Fri Apr 25 14:07:36 2008 UTC
Modified files:
/phpdoc/scripts check-trans.php
Log:
fix bug with LinkEnd
http://cvs.php.net/viewvc.cgi/phpdoc/scripts/check-trans.php?r1=1.7&r2=1.8&diff_format=u
Index: phpdoc/scripts/check-trans.php
diff -u phpdoc/scripts/check-trans.php:1.7 phpdoc/scripts/check-trans.php:1.8
--- phpdoc/scripts/check-trans.php:1.7 Fri Apr 11 17:18:04 2008
+++ phpdoc/scripts/check-trans.php Fri Apr 25 14:07:35 2008
@@ -221,12 +221,12 @@
// linkend
$en_linkend = array();
-preg_match_all("/<link(\s.*?)linkend=\"(.*?)\"(\s.*)?(\/)?>/s",
$en_content, $match);
-$en_linkend = $match[2];
+preg_match_all("/<link(\s.*?)linkend=(\"|')(.*?)(\"|')(\s.*)?(\/)?>/s",
$en_content, $match);
+$en_linkend = $match[3];
$lang_linkend = array();
-preg_match_all("/<link(\s.*?)linkend=\"(.*?)\"(\s.*)?(\/)?>/s",
$lang_content, $match);
-$lang_linkend = $match[2];
+preg_match_all("/<link(\s.*?)linkend=(\"|')(.*?)(\"|')(\s.*)?(\/)?>/s",
$lang_content, $match);
+$lang_linkend = $match[3];
for( $i=0; $i < count($en_linkend); $i ++ ) {
if( isset($lang_linkend[$i]) && $en_linkend[$i] != $lang_linkend[$i] &&
$en_linkend[$i] != 'somethingelse' ) {