Removing the language maintenance scripts checktrans.php, duplicatetrans.php and...
authorRotem Liss <rotem@users.mediawiki.org>
Thu, 12 Oct 2006 13:29:41 +0000 (13:29 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Thu, 12 Oct 2006 13:29:41 +0000 (13:29 +0000)
maintenance/language/checktrans.php [deleted file]
maintenance/language/duplicatetrans.php [deleted file]
maintenance/language/unusedMessages.php [deleted file]

diff --git a/maintenance/language/checktrans.php b/maintenance/language/checktrans.php
deleted file mode 100644 (file)
index a5772d4..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php
-/**
- * @package MediaWiki
- * @subpackage Maintenance
- * Check to see if all messages have been translated into the selected language.
- * To run this script, you must have a working installation, and you can specify
- * a language, or the script will check the installation language.
- */
-
-/** */
-require_once(dirname(__FILE__).'/../commandLine.inc');
-
-if ( isset( $args[0] ) ) {
-       $code = $args[0];
-} else {
-       $code = $wgLang->getCode();
-}
-
-if ( $code == 'en' ) {
-       print "Current selected language is English. Cannot check translations.\n";
-       exit();
-}
-
-$filename = Language::getMessagesFileName( $code );
-if ( file_exists( $filename ) ) {
-       require( $filename );
-} else {
-       $messages = array();
-}
-
-$count = $total = 0;
-$wgEnglishMessages = Language::getMessagesFor( 'en' );
-$wgLocalMessages = $messages;
-
-foreach ( $wgEnglishMessages as $key => $msg ) {
-       ++$total;
-       if ( !isset( $wgLocalMessages[$key] ) ) {
-               print "'{$key}' => \"$msg\",\n";
-               ++$count;
-       }
-}
-
-print "{$count} messages of {$total} are not translated in the language {$code}.\n";
-?>
diff --git a/maintenance/language/duplicatetrans.php b/maintenance/language/duplicatetrans.php
deleted file mode 100644 (file)
index 9273ee6..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-/**
- * Prints out messages that are the same as the message with the corrisponding
- * key in the English file
- *
- * @package MediaWiki
- * @subpackage Maintenance
- */
-
-require_once(dirname(__FILE__).'/../commandLine.inc');
-
-if ( isset( $args[0] ) ) {
-       $code = $args[0];
-} else {
-       $code = $wgLang->getCode();
-}
-
-if ( $code == 'en' ) {
-       print "Current selected language is English. Cannot check translations.\n";
-       exit();
-}
-
-$filename = Language::getMessagesFileName( $code );
-if ( file_exists( $filename ) ) {
-       require( $filename );
-} else {
-       $messages = array();
-}
-
-$count = $total = 0;
-$wgEnglishMessages = Language::getMessagesFor( 'en' );
-$wgLocalMessages = $messages;
-
-foreach ( $wgLocalMessages as $key => $msg ) {
-       ++$total;
-       if ( @$wgEnglishMessages[$key] == $msg ) {
-               echo "* $key\n";
-               ++$count;
-       }
-}
-
-echo "{$count} messages of {$total} are duplicates in the language {$code}\n";
-?>
diff --git a/maintenance/language/unusedMessages.php b/maintenance/language/unusedMessages.php
deleted file mode 100644 (file)
index 8b117ec..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-/**
- * Prints out messages in localisation files that are no longer used.
- *
- * @package MediaWiki
- * @subpackage Maintenance
- */
-
-require_once(dirname(__FILE__).'/../commandLine.inc');
-
-if ( isset( $args[0] ) ) {
-       $code = $args[0];
-} else {
-       $code = $wgLang->getCode();
-}
-
-if ( $code == 'en' ) {
-       print "Current selected language is English. Cannot check translations.\n";
-       exit();
-}
-
-$filename = Language::getMessagesFileName( $code );
-if ( file_exists( $filename ) ) {
-       require( $filename );
-} else {
-       $messages = array();
-}
-
-$count = $total = 0;
-$wgEnglishMessages = Language::getMessagesFor( 'en' );
-$wgLocalMessages = $messages;
-
-foreach ( $wgLocalMessages as $key => $msg ) {
-       ++$total;
-       if ( !isset( $wgEnglishMessages[$key] ) ) {
-               print "* $key\n";
-               ++$count;
-       }
-}
-
-print "{$count} messages of {$total} are unused in the language {$code}\n";
-?>