typo: missing ')'
[lhc/web/wiklou.git] / maintenance / checktrans.php
1 <?php
2
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.
7 #
8
9 require_once("commandLine.inc");
10
11 if ( "en" == $wgLanguageCode ) {
12 print "Current selected language is English. Cannot check translations.\n";
13 exit();
14 }
15
16 $count = $total = 0;
17 $msgarray = "wgAllMessages" . ucfirst( $wgLanguageCode );
18
19 foreach ( $wgAllMessagesEn as $code => $msg ) {
20 ++$total;
21 if ( ! array_key_exists( $code, $$msgarray ) ) {
22 print "'{$code}' => \"$msg\",\n";
23 ++$count;
24 }
25 }
26
27 print "{$count} messages of {$total} not translated.\n";
28
29 ?>