Follow-up r62648: Add new message key to maintenance script
[lhc/web/wiklou.git] / maintenance / language / diffLanguage.php
index b8d5e71..bbdb865 100644 (file)
@@ -35,8 +35,8 @@
  * percentage of messages correctly localised and the number of messages to be
  * translated.
  *
- * @package MediaWiki
- * @subpackage Maintenance
+ * @file
+ * @ingroup MaintenanceLanguage
  */
 
 /** This script run from the commandline */
@@ -69,7 +69,7 @@ function ucfirstlcrest($string) {
 
 /**
  * Return a $wgAllmessages array shipped in MediaWiki
- * @param string $languageCode Formated language code
+ * @param $languageCode String: formated language code
  * @return array The MediaWiki default $wgAllMessages array requested
  */
 function getMediawikiMessages($languageCode = 'En') {
@@ -84,7 +84,6 @@ function getMediawikiMessages($languageCode = 'En') {
                $langFile = $IP.'/languages/classes/Language'.$languageCode.'.php';
                if (file_exists( $langFile ) ) {
                        print "Including $langFile\n";
-                       global $wgNamespaceNamesEn;  // potentially unused global declaration?
                        include($langFile);
                } else wfDie("ERROR: The file $langFile does not exist !\n");
        }
@@ -94,8 +93,8 @@ function getMediawikiMessages($languageCode = 'En') {
 /**
  * Return a $wgAllmessages array in a given file. Language of the array
  * need to be given cause we can not detect which language it provides
- * @param string $filename Filename of the file containing a message array
- * @param string $languageCode Language of the external array
+ * @param $filename String: filename of the file containing a message array
+ * @param $languageCode String: language of the external array
  * @return array A $wgAllMessages array from an external file.
  */
 function getExternalMessages($filename, $languageCode) {
@@ -157,4 +156,4 @@ foreach($referenceMessages as $index => $ref)
 echo "\n----\n".$msg;
 echo "$referenceLanguage language is complete at ".number_format((100 - $i/count($wgAllMessagesEn) * 100),2)."%\n";
 echo "$i unlocalised messages of the ".count($wgAllMessagesEn)." messages available.\n";
-?>
+