diff options
Diffstat (limited to 'maintenance/language/duplicatetrans.php')
-rw-r--r-- | maintenance/language/duplicatetrans.php | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/maintenance/language/duplicatetrans.php b/maintenance/language/duplicatetrans.php deleted file mode 100644 index 9273ee6e..00000000 --- a/maintenance/language/duplicatetrans.php +++ /dev/null @@ -1,43 +0,0 @@ -<?php -/** - * Prints out messages that are the same as the message with the corrisponding - * key in the English file - * - * @package MediaWiki - * @subpackage Maintenance - */ - -require_once(dirname(__FILE__).'/../commandLine.inc'); - -if ( isset( $args[0] ) ) { - $code = $args[0]; -} else { - $code = $wgLang->getCode(); -} - -if ( $code == 'en' ) { - print "Current selected language is English. Cannot check translations.\n"; - exit(); -} - -$filename = Language::getMessagesFileName( $code ); -if ( file_exists( $filename ) ) { - require( $filename ); -} else { - $messages = array(); -} - -$count = $total = 0; -$wgEnglishMessages = Language::getMessagesFor( 'en' ); -$wgLocalMessages = $messages; - -foreach ( $wgLocalMessages as $key => $msg ) { - ++$total; - if ( @$wgEnglishMessages[$key] == $msg ) { - echo "* $key\n"; - ++$count; - } -} - -echo "{$count} messages of {$total} are duplicates in the language {$code}\n"; -?> |