* (bug 2188) Correct template namespace for Greek localization
[lhc/web/wiklou.git] / maintenance / checktrans.php
1 <?php
2 /**
3 * @package MediaWiki
4 * @subpackage Maintenance
5 * Check to see if all messages have been translated into the selected language.
6 * To run this script, you must have a working installation, and it checks the
7 * selected language of that installation.
8 */
9
10 /** */
11 require_once("commandLine.inc");
12
13 if ( 'en' == $wgLanguageCode ) {
14 print "Current selected language is English. Cannot check translations.\n";
15 exit();
16 }
17
18 $count = $total = 0;
19 $msgarray = 'wgAllMessages' . ucfirst( $wgLanguageCode );
20
21 foreach ( $wgAllMessagesEn as $code => $msg ) {
22 ++$total;
23 if ( ! array_key_exists( $code, $$msgarray ) ) {
24 print "'{$code}' => \"$msg\",\n";
25 ++$count;
26 }
27 }
28
29 print "{$count} messages of {$total} not translated.\n";
30 ?>