Fix my previous commit so that it might even work
[mediawiki.git] / maintenance / duplicatetrans.php
blob89d9cff1c77864fccd4658a01c693e7cb60f3811
1 <?php
2 /**
3 * Prints out messages that are the same as the message with the corrisponding
4 * key in the Language.php file
6 * @package MediaWiki
7 * @subpackage Maintenance
8 */
10 require_once('commandLine.inc');
12 if ( 'en' == $wgLanguageCode ) {
13 print "Current selected language is English. Cannot check translations.\n";
14 exit();
17 $count = $total = 0;
18 $msgarray = 'wgAllMessages' . ucfirst( $wgLanguageCode );
20 foreach ( $$msgarray as $code => $msg ) {
21 ++$total;
22 if ( @$wgAllMessagesEn[$code] == $msg ) {
23 echo "* $code\n";
24 ++$count;
28 echo "{$count} messages of {$total} are duplicates\n";