* Fix for XHTML valid output
[lhc/web/wiklou.git] / maintenance / checktrans-enhanced.php
index fa06345..2fd4819 100644 (file)
@@ -1,17 +1,20 @@
-<?
-
-# 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.
-#
-# The enhanced version will check more arrays than just
-# wgAllMessages
-
-
-
-function check($arrayname)
-{
+<?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.
+ *
+ * The enhanced version will check more arrays than just
+ * wgAllMessages
+ *
+ * @todo document
+ * @package MediaWiki
+ * @subpackage Maintenance
+ */
+
+/** */
+function check($arrayname) {
        $arraynameprinted = 0;
        
        global $count, $total, $wgLanguageCode;
@@ -37,11 +40,6 @@ function check($arrayname)
        }
 }
 
-
-
-
-
-
 if ( ! is_readable( "../LocalSettings.php" ) ) {
        print "A copy of your installation's LocalSettings.php\n" .
          "must exist in the source directory.\n";
@@ -49,7 +47,7 @@ if ( ! is_readable( "../LocalSettings.php" ) ) {
 }
 
 $DP = "../includes";
-include_once( "../LocalSettings.php" );
+require_once( "../LocalSettings.php" );
 
 if ( "en" == $wgLanguageCode ) {
        print "Current selected language is English. Cannot check translations.\n";
@@ -65,18 +63,13 @@ 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" );
 $wgCommandLineMode = true;
 
 $count = $total = 0;
 
 
-
-
-
-
-
 check("wgLanguageNames");
 check("wgNamespaceNames");
 check("wgDefaultUserOptions");
@@ -93,4 +86,3 @@ check("wgDeveloperSpecialPages");
 check("wgAllMessages");
 
 print "{$count} messages of {$total} not translated.\n";
-