r68273 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r68272‎ | r68273 | r68274 >
Date:14:30, 19 June 2010
Author:nikerabbit
Status:ok
Tags:
Comment:
Allow comment lines starting with #
Modified paths:
  • /trunk/extensions/Translate/MessageGroups.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/MessageGroups.php
@@ -672,6 +672,7 @@
673673 $definitions = array();
674674 /* In theory could have templates that are substitued */
675675 $contents = wfMsg( $this->source );
 676+ $contents = preg_replace( '~^\s*#.*$~m', '', $contents );
676677 $messages = preg_split( '/\s+/', $contents );
677678
678679 foreach ( $messages as $message ) {

Status & tagging log