Remove ?>'s from files. They're pointless, and just asking for people to mess with...
[lhc/web/wiklou.git] / maintenance / language / transstat.php
index 590da12..6a1423a 100644 (file)
@@ -2,8 +2,7 @@
 /**
  * Statistics about the localisation.
  *
- * @package MediaWiki
- * @subpackage Maintenance
+ * @addtogroup Maintenance
  *
  * @author Ævar Arnfjörð Bjarmason <avarab@gmail.com>
  * @author Ashar Voultoiz <thoane@altern.org>
@@ -12,7 +11,7 @@
  * http://meta.wikimedia.org/wiki/Localization_statistics
  */
 
-require_once( 'maintenance/commandLine.inc' );
+require_once( dirname(__FILE__).'/../commandLine.inc' );
 require_once( 'languages.inc' );
 
 if ( isset( $options['help'] ) ) {
@@ -67,7 +66,7 @@ class wikiStatsOutput extends statsOutput {
                echo "'''Statistics are based on:''' <code>" . $version . "</code>\n\n";
                echo "'''Note:''' These statistics can be generated by running <code>php maintenance/language/transstat.php</code>.\n\n";
                echo "For additional information on specific languages (the message names, the actual problems, etc.), run <code>php maintenance/language/checkLanguage.php --lang=foo</code>.\n\n";
-               echo '{| border="2" cellpadding="4" cellspacing="0" style="background-color: #F9F9F9; border: 1px #AAAAAA solid; border-collapse: collapse;" width="100%"'."\n";
+               echo '{| class="sortable wikitable" border="2" cellpadding="4" cellspacing="0" style="background-color: #F9F9F9; border: 1px #AAAAAA solid; border-collapse: collapse; clear:both;" width="100%"'."\n";
        }
        function footer() {
                echo "|}\n";
@@ -160,6 +159,7 @@ $wgLanguages = new languages();
 $wgOut->heading();
 $wgOut->blockstart();
 $wgOut->element( 'Language', true );
+$wgOut->element( 'Code', true );
 $wgOut->element( 'Translated', true );
 $wgOut->element( '%', true );
 $wgOut->element( 'Obsolete', true );
@@ -195,7 +195,8 @@ foreach ( $wgLanguages->getLanguages() as $code ) {
 
        # Output them
        $wgOut->blockstart();
-       $wgOut->element( "$language ($code)" );
+       $wgOut->element( "$language" );
+       $wgOut->element( "$code" );
        $wgOut->element( "$requiredMessagesNumber/$wgRequiredMessagesNumber" );
        $wgOut->element( $requiredMessagesPercent );
        $wgOut->element( "$obsoleteMessagesNumber/$messagesNumber" );
@@ -208,4 +209,4 @@ foreach ( $wgLanguages->getLanguages() as $code ) {
 # Footer
 $wgOut->footer();
 
-?>
+