wiki.techinc.nl/maintenance/checktrans.php
Evan Prodromou 629e3c2c73 Updated the checktrans.php script to be a little more modern and to
WFM. Removed the two variations on the theme, since they don't work.
Might as well have just one broken script instead of three.
2004-10-10 23:28:45 +00:00

29 lines
672 B
PHP

<?php
# Check to see if all messages have been translated into
# the selected language. To run this script, you must have
# a working installation, and it checks the selected language
# of that installation.
#
require_once("commandLine.inc");
if ( "en" == $wgLanguageCode ) {
print "Current selected language is English. Cannot check translations.\n";
exit();
}
$count = $total = 0;
$msgarray = "wgAllMessages" . ucfirst( $wgLanguageCode );
foreach ( $wgAllMessagesEn as $code => $msg ) {
++$total;
if ( ! array_key_exists( $code, $$msgarray ) ) {
print "'{$code}' => \"$msg\",\n";
++$count;
}
}
print "{$count} messages of {$total} not translated.\n";
?>