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 echo "Note: the script also lists the messages which are not defined in this language file, please wait for the bugfix.\n\n";
14 if ( $wgLang->getCode() == 'en' ) {
15 print "Current selected language is English. Cannot check translations.\n";
20 $wgEnglishLang = Language
::factory( 'en' );
21 $wgEnglishMessages = $wgEnglishLang->getAllMessages();
22 $wgLocalMessages = $wgLang->getAllMessages();
24 foreach ( $wgEnglishMessages as $code => $msg ) {
26 if ( $wgLocalMessages[$code] == $wgEnglishMessages[$code] ) {
32 echo "{$count} messages of {$total} are duplicates\n";