<?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 it checks the
+ * selected language of that installation.
+ */
-# 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 ) {
+if ( 'en' == $wgLanguageCode ) {
print "Current selected language is English. Cannot check translations.\n";
exit();
}
$count = $total = 0;
-$msgarray = "wgAllMessages" . ucfirst( $wgLanguageCode );
+$msgarray = 'wgAllMessages' . ucfirst( $wgLanguageCode );
foreach ( $wgAllMessagesEn as $code => $msg ) {
++$total;
}
print "{$count} messages of {$total} not translated.\n";
-
-?>
+?>
\ No newline at end of file
* If on the old non-unique indexes, check the cur table for duplicate
* entries and remove them...
*
+ * @author <brion@pobox.com>
* @package MediaWiki
* @subpackage Maintenance
*/
$options = array( 'fix' );
-require_once( "commandLine.inc" );
-$wgTitle = Title::newFromText( "Dupe cur entry cleanup script" );
+/** */
+require_once( 'commandLine.inc' );
+$wgTitle = Title::newFromText( 'Dupe cur entry cleanup script' );
checkDupes( isset( $options['fix'] ) );
fixDupes( $fixthem );
}
}
-
?>
\ No newline at end of file
$this->template = 'MonoBookTemplate';
}
}
-
+
+/**
+ * @todo document
+ * @package MediaWiki
+ * @subpackage Skins
+ */
class MonoBookTemplate extends QuickTemplate {
/**
* Template filter callback for MonoBook skin.
<?php
}
}
-
-?>
+?>
\ No newline at end of file