
nikerabbit at svn
Nov 24, 2009, 2:27 AM
Post #1 of 1
(77 views)
Permalink
|
|
SVN: [59377] trunk/extensions/Translate/ffs/Gettext.php
|
|
http://www.mediawiki.org/wiki/Special:Code/MediaWiki/59377 Revision: 59377 Author: nikerabbit Date: 2009-11-24 10:27:45 +0000 (Tue, 24 Nov 2009) Log Message: ----------- Fix regexp to actually match inactive sections Modified Paths: -------------- trunk/extensions/Translate/ffs/Gettext.php Modified: trunk/extensions/Translate/ffs/Gettext.php =================================================================== --- trunk/extensions/Translate/ffs/Gettext.php 2009-11-24 06:53:47 UTC (rev 59376) +++ trunk/extensions/Translate/ffs/Gettext.php 2009-11-24 10:27:45 UTC (rev 59377) @@ -352,8 +352,11 @@ // Then parse the messages foreach ( $sections as $section ) { if ( trim( $section ) === '' ) continue; - // These inactive section are of no interest to us - if ( preg_match( '/^#~/', $section ) ) continue; + /* These inactive section are of no interest to us. Multiline mode + * is needed because there may be flags or other annoying stuff + * before the commented out sections. + */ + if ( preg_match( '/^#~/m', $section ) ) continue; $item = array( 'ctxt' => '', _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS [at] lists https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs
|