Update the maintenance script alltrans.php for the new language files.
authorRotem Liss <rotem@users.mediawiki.org>
Wed, 2 Aug 2006 18:37:55 +0000 (18:37 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Wed, 2 Aug 2006 18:37:55 +0000 (18:37 +0000)
maintenance/alltrans.php

index 2fdc449..f5bd8ef 100644 (file)
@@ -2,10 +2,15 @@
 /**
  * @package MediaWiki
  * @subpackage Maintenance
+ *
+ * Get all the translations messages, as defined in the English language file.
  */
 
-require_once('commandLine.inc');
+require_once( 'commandLine.inc' );
 
-foreach(array_keys($wgAllMessagesEn) as $key)
+$wgLang = new Language();
+foreach( array_keys( $wgLang->getAllMessages() ) as $key ) {
        echo "$key\n";
+}
+
 ?>