Index: trunk/extensions/Translate/SpecialLanguageStats.php |
— | — | @@ -195,7 +195,7 @@ |
196 | 196 | foreach ( $groups as $groupName => $g ) { |
197 | 197 | // Do not report if this group is blacklisted. |
198 | 198 | $groupId = $g->getId(); |
199 | | - $blacklisted = self::isBlacklisted( $groupId, $code ); |
| 199 | + $blacklisted = $this->isBlacklisted( $groupId, $code ); |
200 | 200 | |
201 | 201 | if ( $blacklisted !== null ) { |
202 | 202 | continue; |
Index: trunk/extensions/Translate/FFS.php |
— | — | @@ -815,7 +815,7 @@ |
816 | 816 | $match = null; |
817 | 817 | |
818 | 818 | while ( preg_match( $regex, $message, $match ) ) { |
819 | | - $uniqkey = self::placeholder(); |
| 819 | + $uniqkey = $this->placeholder(); |
820 | 820 | $placeholders[$uniqkey] = $match[0]; |
821 | 821 | $message = preg_replace( $regex, $uniqkey, $message ); |
822 | 822 | } |
— | — | @@ -826,7 +826,7 @@ |
827 | 827 | $match = null; |
828 | 828 | |
829 | 829 | while ( preg_match( $regex, $message, $match ) ) { |
830 | | - $uniqkey = self::placeholder(); |
| 830 | + $uniqkey = $this->placeholder(); |
831 | 831 | $matches[$uniqkey] = $match; |
832 | 832 | $message = preg_replace( $regex, $uniqkey, $message ); |
833 | 833 | } |
Index: trunk/extensions/Translate/MessageGroups.php |
— | — | @@ -303,6 +303,8 @@ |
304 | 304 | } |
305 | 305 | |
306 | 306 | public function getBools() { |
| 307 | + global $wgOptionalMessages, $wgIgnoredMessages; |
| 308 | + |
307 | 309 | require( $this->getMetaDataPrefix() . '/messageTypes.inc' ); |
308 | 310 | |
309 | 311 | return array( |
Index: trunk/extensions/Translate/ffs/Wiki.php |
— | — | @@ -116,6 +116,8 @@ |
117 | 117 | |
118 | 118 | require( $dir . '/messages.inc' ); |
119 | 119 | |
| 120 | + global $wgMessageStructure, $wgBlockComments; |
| 121 | + |
120 | 122 | # Sort messages to blocks |
121 | 123 | $sortedMessages['unknown'] = $messages; |
122 | 124 | foreach ( $wgMessageStructure as $blockName => $block ) { |
Index: trunk/extensions/Translate/spyc/spyc.php |
— | — | @@ -481,8 +481,6 @@ |
482 | 482 | $line = trim( $line ); |
483 | 483 | if ( !$line ) return array(); |
484 | 484 | |
485 | | - $array = array(); |
486 | | - |
487 | 485 | $group = $this->nodeContainsGroup( $line ); |
488 | 486 | if ( $group ) { |
489 | 487 | $this->addGroup( $line, $group ); |