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";
17 $msgarray = "wgAllMessages" . ucfirst( $wgLanguageCode );
19 foreach ( $wgAllMessagesEn as $code => $msg ) {
21 if ( ! array_key_exists( $code, $
$msgarray ) ) {
22 print "'{$code}' => \"$msg\",\n";
27 print "{$count} messages of {$total} not translated.\n";