3 * Prints out messages that are the same as the message with the corrisponding
4 * key in the English file
7 * @subpackage Maintenance
10 require_once('commandLine.inc');
12 if ( isset( $args[0] ) ) {
15 $code = $wgLang->getCode();
18 if ( $code == 'en' ) {
19 print "Current selected language is English. Cannot check translations.\n";
23 $filename = Language
::getFileName( "$IP/languages/Messages", $code, '.php' );
24 if ( file_exists( $filename ) ) {
31 $wgEnglishMessages = Language
::getMessagesFor( 'en' );
32 $wgLocalMessages = $messages;
34 foreach ( $wgLocalMessages as $key => $msg ) {
36 if ( @$wgEnglishMessages[$key] == $msg ) {
42 echo "{$count} messages of {$total} are duplicates in the language {$code}\n";