More profiling sections
[mediawiki.git] / maintenance / redundanttrans.php
blobde09686346087ec5007d1afee82f622aea37d35b
1 <?php
2 /**
3 * Prints out messages that are no longer used.
5 * @package MediaWiki
6 * @subpackage Maintenance
7 */
9 require_once('commandLine.inc');
11 if ( 'en' == $wgLanguageCode ) {
12 print "Current selected language is English. Cannot check translations.\n";
13 exit();
16 $count = $total = 0;
17 $msgarray = 'wgAllMessages' . ucfirst( $wgLanguageCode );
19 foreach ( $$msgarray as $code => $msg ) {
20 ++$total;
21 if ( ! array_key_exists( $code, $wgAllMessagesEn ) ) {
22 print "* $code\n";
23 ++$count;
27 print "{$count} messages of {$total} are redundant\n";