Index: trunk/phase3/maintenance/language/dumpMessages.php |
— | — | @@ -35,6 +35,7 @@ |
36 | 36 | foreach ( array_keys( Language::getMessagesFor( 'en' ) ) as $key ) { |
37 | 37 | $messages[$key] = wfMsg( $key ); |
38 | 38 | } |
| 39 | + global $wgVersion; |
39 | 40 | $this->output( "MediaWiki $wgVersion language file\n" ); |
40 | 41 | $this->output( serialize( $messages ) ); |
41 | 42 | } |
Index: trunk/phase3/maintenance/language/writeMessagesArray.inc |
— | — | @@ -80,6 +80,8 @@ |
81 | 81 | # Load messages |
82 | 82 | $dir = $prefix ? $prefix : dirname( __FILE__ ); |
83 | 83 | |
| 84 | + global $wgMessageStructure, $wgBlockComments, $wgIgnoredMessages, $wgOptionalMessages; |
| 85 | + |
84 | 86 | require( $dir . '/messages.inc' ); |
85 | 87 | self::$messageStructure = $wgMessageStructure; |
86 | 88 | self::$blockComments = $wgBlockComments; |
Index: trunk/phase3/maintenance/language/languages.inc |
— | — | @@ -32,6 +32,9 @@ |
33 | 33 | */ |
34 | 34 | function __construct( $exif = true ) { |
35 | 35 | require( dirname(__FILE__) . '/messageTypes.inc' ); |
| 36 | + |
| 37 | + global $wgIgnoredMessages, $wgOptionalMessages, $wgEXIFMessages; |
| 38 | + |
36 | 39 | $this->mIgnoredMessages = $wgIgnoredMessages; |
37 | 40 | if ( $exif ) { |
38 | 41 | $this->mOptionalMessages = array_merge( $wgOptionalMessages ); |