Index: trunk/extensions/Translate/MessageGroups.php |
— | — | @@ -377,6 +377,21 @@ |
378 | 378 | public function exists() { |
379 | 379 | return is_readable( $this->getMessageFileWithPath( 'en' ) ); |
380 | 380 | } |
| 381 | + |
| 382 | + public function getChecker() { |
| 383 | + $checker = new MediaWikiMessageChecker( $this ); |
| 384 | + $checker->setChecks( array( |
| 385 | + array( $checker, 'pluralCheck' ), |
| 386 | + array( $checker, 'wikiParameterCheck' ), |
| 387 | + array( $checker, 'wikiLinksCheck' ), |
| 388 | + array( $checker, 'XhtmlCheck' ), |
| 389 | + array( $checker, 'braceBalanceCheck' ), |
| 390 | + array( $checker, 'pagenameMessagesCheck' ), |
| 391 | + array( $checker, 'miscMWChecks' ) |
| 392 | + ) ); |
| 393 | + return $checker; |
| 394 | + } |
| 395 | + |
381 | 396 | } |
382 | 397 | |
383 | 398 | class AliasMessageGroup extends ExtensionMessageGroup { |
— | — | @@ -438,20 +453,6 @@ |
439 | 454 | $writer->commaToArray = true; |
440 | 455 | return $writer; |
441 | 456 | } |
442 | | - |
443 | | - public function getChecker() { |
444 | | - $checker = new MediaWikiMessageChecker( $this ); |
445 | | - $checker->setChecks( array( |
446 | | - array( $checker, 'pluralCheck' ), |
447 | | - array( $checker, 'wikiParameterCheck' ), |
448 | | - array( $checker, 'wikiLinksCheck' ), |
449 | | - array( $checker, 'XhtmlCheck' ), |
450 | | - array( $checker, 'braceBalanceCheck' ), |
451 | | - array( $checker, 'pagenameMessagesCheck' ), |
452 | | - array( $checker, 'miscMWChecks' ) |
453 | | - ) ); |
454 | | - return $checker; |
455 | | - } |
456 | 457 | } |
457 | 458 | |
458 | 459 | class CoreMostUsedMessageGroup extends CoreMessageGroup { |