not too many of enotif errors or cleanup involved here, just unbreaking wiki
[mediawiki.git] / maintenance / checktrans.php
blob172e1e43cc4922d944a55f5e4dbf8780aa36852f
1 <?php
3 # Check to see if all messages have been translated into
4 # the selected language. To run this script, you must have
5 # a working installation, and it checks the selected language
6 # of that installation.
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 ( $wgAllMessagesEn as $code => $msg ) {
20 ++$total;
21 if ( ! array_key_exists( $code, $$msgarray ) ) {
22 print "'{$code}' => \"$msg\",\n";
23 ++$count;
27 print "{$count} messages of {$total} not translated.\n";