switch to wfMsgForContent()
[lhc/web/wiklou.git] / maintenance / checktrans.php
index ef0e9fc..af8217b 100644 (file)
@@ -1,11 +1,15 @@
-<?
-
-# 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.
-#
-
+<?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.
+ *
+ * @package MediaWiki
+ * @subpackage Maintenance
+*/
+
+/** */
 if ( ! is_readable( "../LocalSettings.php" ) ) {
        print "A copy of your installation's LocalSettings.php\n" .
          "must exist in the source directory.\n";
@@ -14,7 +18,7 @@ if ( ! is_readable( "../LocalSettings.php" ) ) {
 
 $wgCommandLineMode = true;
 $DP = "../includes";
-include_once( "../LocalSettings.php" );
+require_once( "../LocalSettings.php" );
 
 if ( "en" == $wgLanguageCode ) {
        print "Current selected language is English. Cannot check translations.\n";
@@ -30,7 +34,7 @@ if ( ! is_readable( "{$IP}/{$include}" ) ) {
 umask( 000 );
 set_time_limit( 0 );
 
-include_once( "{$IP}/Setup.php" );
+require_once( "{$IP}/Setup.php" );
 $wgTitle = Title::newFromText( "Translation checking script" );
 
 $count = $total = 0;
@@ -45,4 +49,3 @@ foreach ( $wgAllMessagesEn as $code => $msg ) {
        }
 }
 print "{$count} messages of {$total} not translated.\n";
-