fix some issues with phpdoc
authorAntoine Musso <hashar@users.mediawiki.org>
Tue, 5 Jul 2005 21:22:25 +0000 (21:22 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Tue, 5 Jul 2005 21:22:25 +0000 (21:22 +0000)
41 files changed:
includes/BlockCache.php
includes/DateFormatter.php
includes/DefaultSettings.php
includes/ExternalStoreDB.php
includes/HttpFunctions.php
includes/Image.php
includes/MimeMagic.php
includes/ObjectCache.php
includes/OutputPage.php
includes/PageHistory.php
includes/ProxyTools.php
includes/Sanitizer.php
includes/SearchEngine.php
includes/SearchMySQL.php
includes/SiteConfiguration.php
includes/SpecialConfirmemail.php
includes/SpecialContributions.php
includes/SpecialImport.php
includes/SpecialPage.php
includes/SpecialUploadMogile.php
includes/StreamFile.php
includes/Title.php
includes/WikiError.php
languages/Language.php
languages/LanguageAr.php
languages/LanguageBg.php
languages/LanguageBn.php
languages/LanguageCa.php
languages/LanguageCs.php
languages/LanguageCy.php
languages/LanguageDa.php
languages/LanguageDe.php
languages/LanguageEl.php
languages/LanguageEn.php
languages/LanguageEo.php
languages/LanguageFr.php
languages/LanguageUtf8.php
maintenance/cleanupDupes.php
maintenance/dumpHTML.inc
maintenance/splitLanguageFiles.inc [new file with mode: 0644]
maintenance/splitLanguageFiles.php [new file with mode: 0644]

index c64adc1..0df3a14 100644 (file)
@@ -1,7 +1,6 @@
 <?php
 /**
  * Contain the blockcache class
- * @package MediaWiki
  * @package Cache
  */
 
index b32a3ac..f5cad86 100755 (executable)
@@ -6,6 +6,7 @@
  * @subpackage Parser
  */
 
+/** */
 define('DF_ALL', -1);
 define('DF_NONE', 0);
 define('DF_MDY', 1);
index 1063a08..ead20d4 100644 (file)
@@ -217,7 +217,6 @@ $wgLoadFileinfoExtension= false;
 /** Sets an external mime detector program. The command must print only the mime type to standard output.
 * the name of the file to process will be appended to the command given here.
 * If not set or NULL, mime_content_type will be used if available.
-* @global string $wgMimeTypeFile
 */
 $wgMimeDetectorCommand= NULL; # use internal mime_content_type function, available since php 4.3.0
 #$wgMimeDetectorCommand= "file -bi" #use external mime detector (linux)
index 9d12dc6..00f8c48 100644 (file)
@@ -9,9 +9,12 @@
 require_once( 'LoadBalancer.php' ); 
 
 
-
+/** @package MediaWiki */
 class ExternalStoreDB {
-       /* Fetch data from given URL */
+       /**
+        * Fetch data from given URL
+        * @param string $url An url
+        */
        function fetchFromURL($url) {
                global $wgExternalServers;
                #
@@ -30,7 +33,7 @@ class ExternalStoreDB {
                return $ret;
        }
 
-       /* XXX: may require other methods, for store, delete, 
+       /* @fixme XXX: may require other methods, for store, delete, 
         * whatever, for initial ext storage  
         */
 }
index ed93aaa..19cd63e 100644 (file)
@@ -1,4 +1,7 @@
 <?php
+/**
+ * Various HTTP related functions
+ */
 
 /**
  * Get the contents of a file by HTTP
index ffd7713..edb2418 100644 (file)
@@ -3,12 +3,14 @@
  * @package MediaWiki
  */
 
-# NOTE FOR WINDOWS USERS:
-# To enable EXIF functions, add the folloing lines to the
-# "Windows extensions" section of php.ini:
-#
-# extension=extensions/php_mbstring.dll
-# extension=extensions/php_exif.dll
+/**
+ * NOTE FOR WINDOWS USERS:
+ * To enable EXIF functions, add the folloing lines to the
+ * "Windows extensions" section of php.ini:
+ *
+ * extension=extensions/php_mbstring.dll
+ * extension=extensions/php_exif.dll
+ */
 
 if ($wgShowEXIF)
        require_once('Exif.php');
index 076dcc2..5be0ee6 100644 (file)
@@ -73,6 +73,7 @@ if ($wgLoadFileinfoExtension) {
 *
 * Instances of this class are stateles, there only needs to be one global instance
 * of MimeMagic. Please use wfGetMimeMagic to get that instance. 
+* @package MediaWiki
 */
 class MimeMagic {
        
index 9ead4b4..a1db1c2 100644 (file)
@@ -4,13 +4,18 @@
  * @subpackage Cache
  */
 
+/** */
 if (!defined('MEDIAWIKI')) die( "Not a valid entry point\n");
 
 
-# FakeMemCachedClient imitates the API of memcached-client v. 0.1.2.
-# It acts as a memcached server with no RAM, that is, all objects are
-# cleared the moment they are set. All set operations succeed and all
-# get operations return null.
+/**
+ * FakeMemCachedClient imitates the API of memcached-client v. 0.1.2.
+ * It acts as a memcached server with no RAM, that is, all objects are
+ * cleared the moment they are set. All set operations succeed and all
+ * get operations return null.
+ * @package MediaWiki
+ * @subpackage Cache
+ */
 class FakeMemCachedClient {
        function add ($key, $val, $exp = 0) { return true; }
        function decr ($key, $amt=1) { return null; }
@@ -32,6 +37,7 @@ class FakeMemCachedClient {
 global $wgCaches;
 $wgCaches = array();
 
+/** @todo document */
 function &wfGetCache( $inputType ) {
        global $wgCaches, $wgMemCachedServers, $wgMemCachedDebug;
        $cache = false;
index a5a69ad..05e2756 100644 (file)
@@ -880,7 +880,7 @@ class OutputPage {
        /**
         * Turn off regular page output and return an error reponse
         * for when rate limiting has triggered.
-        * @todo: i18n
+        * @todo i18n
         * @access public
         */
        function rateLimited() {
index 9b5ded0..80e4dea 100644 (file)
@@ -6,10 +6,11 @@
  * @package MediaWiki
  */
 
-include_once ( "SpecialValidate.php" );
+/** */
+include_once ( 'SpecialValidate.php' );
 
-define("DIR_PREV", 0);
-define("DIR_NEXT", 1);
+define('DIR_PREV', 0);
+define('DIR_NEXT', 1);
 
 /**
  * This class handles printing the history page for an article.  In order to
@@ -166,12 +167,13 @@ class PageHistory {
                 * Article validation line.
                 */
                if ($wgUseValidation)
-                       $s .= "<p>" . Validation::link2statistics ( $this->mArticle ) . "</p>" ;
+                       $s .= '<p>' . Validation::link2statistics ( $this->mArticle ) . '</p>' ;
 
                $wgOut->addHTML( $s );
                wfProfileOut( $fname );
        }
 
+       /** @todo document */
        function beginHistoryList() {
                global $wgTitle;
                $this->lastdate = '';
@@ -184,6 +186,7 @@ class PageHistory {
                return $s;
        }
 
+       /** @todo document */
        function endHistoryList() {
                $last = wfMsg( 'last' );
 
@@ -193,6 +196,7 @@ class PageHistory {
                return $s;
        }
 
+       /** @todo document */
        function submitButton( $bits = array() ) {
                return ( $this->linesonpage > 0 )
                        ? wfElement( 'input', array_merge( $bits,
@@ -206,6 +210,7 @@ class PageHistory {
                        : '';
        }
 
+       /** @todo document */
        function historyLine( $row, $next, $counter = '', $notificationtimestamp = false, $latest = false ) {
                global $wgLang, $wgContLang;
 
@@ -253,6 +258,7 @@ class PageHistory {
                return $s;
        }
 
+       /** @todo document */
        function revLink( $row ) {
                global $wgUser, $wgLang;
                $date = $wgLang->timeanddate( $row->rev_timestamp, true );
@@ -266,6 +272,7 @@ class PageHistory {
                }
        }
 
+       /** @todo document */
        function curLink( $row, $latest ) {
                global $wgUser;
                $cur = htmlspecialchars( wfMsg( 'cur' ) );
@@ -281,6 +288,7 @@ class PageHistory {
                }
        }
 
+       /** @todo document */
        function lastLink( $row, $next, $counter ) {
                global $wgUser;
                $last = htmlspecialchars( wfMsg( 'last' ) );
@@ -298,6 +306,7 @@ class PageHistory {
                }
        }
 
+       /** @todo document */
        function diffButtons( $row, $latest, $counter ) {
                global $wgUser;
                if( $this->linesonpage > 1) {
@@ -340,14 +349,17 @@ class PageHistory {
                }
        }
 
+       /** @todo document */
        function getLatestOffset($id) {
                return $this->getExtremeOffset( $id, 'max' );
        }
 
+       /** @todo document */
        function getEarliestOffset($id) {
                return $this->getExtremeOffset( $id, 'min' );
        }
 
+       /** @todo document */
        function getExtremeOffset( $id, $func ) {
                $db =& wfGetDB(DB_SLAVE);
                return $db->selectField( 'revision',
@@ -356,6 +368,7 @@ class PageHistory {
                        'PageHistory::getExtremeOffset' );
        }
 
+       /** @todo document */
        function getLatestID( $id ) {
                $db =& wfGetDB(DB_SLAVE);
                return $db->selectField( 'revision',
@@ -364,6 +377,7 @@ class PageHistory {
                        'PageHistory::getLatestID' );
        }
 
+       /** @todo document */
        function getLastOffsetForPaging( $id, $step = 50 ) {
                $db =& wfGetDB(DB_SLAVE);
                $revision = $db->tableName( 'revision' );
@@ -380,6 +394,7 @@ class PageHistory {
                return $last;
        }
 
+       /** @todo document */
        function getDirection() {
                global $wgRequest;
 
@@ -389,6 +404,7 @@ class PageHistory {
                        return DIR_NEXT;
        }
 
+       /** @todo document */
        function fetchRevisions($limit, $offset, $direction) {
                global $wgUser, $wgShowUpdatedMarker;
 
@@ -433,6 +449,7 @@ class PageHistory {
                return $result;
        }
 
+       /** @todo document */
        function getNotificationTimestamp() {
                global $wgUser, $wgShowUpdatedMarker;
 
@@ -456,6 +473,7 @@ class PageHistory {
                return $this->mNotificationTimestamp;
        }
 
+       /** @todo document */
        function makeNavbar($revisions, $offset, $limit, $direction) {
                global $wgTitle, $wgLang;
 
@@ -486,8 +504,8 @@ class PageHistory {
 
                $firsturl = $wgTitle->escapeLocalURL("action=history&limit={$limit}&go=first");
                $lasturl = $wgTitle->escapeLocalURL("action=history&limit={$limit}");
-               $firsttext = wfMsgHtml("histfirst");
-               $lasttext = wfMsgHtml("histlast");
+               $firsttext = wfMsgHtml('histfirst');
+               $lasttext = wfMsgHtml('histlast');
 
                $prevurl = $wgTitle->escapeLocalURL("action=history&dir=prev&offset={$latestShown}&limit={$limit}");
                $nexturl = $wgTitle->escapeLocalURL("action=history&offset={$earliestShown}&limit={$limit}");
index 0978621..3ef4a20 100644 (file)
@@ -1,19 +1,15 @@
 <?php
-
-if ( !defined( 'MEDIAWIKI' ) ) {
-       die();
-}
-
 /**
  * Functions for dealing with proxies
+ * @package MediaWiki
  */
 
+if ( !defined( 'MEDIAWIKI' ) ) {
+       die();
+}
 
-/**
- * Work out the IP address based on various globals
- */
-function wfGetIP()
-{
+/** Work out the IP address based on various globals */
+function wfGetIP() {
        global $wgSquidServers, $wgSquidServersNoPurge;
 
        /* collect the originating ips */
@@ -52,8 +48,8 @@ function wfGetIP()
        return $ip;
 }
 
-function wfIP2Unsigned( $ip )
-{
+/** */
+function wfIP2Unsigned( $ip ) {
        $n = ip2long( $ip );
        if ( $n == -1 ) {
                $n = false;
@@ -67,8 +63,7 @@ function wfIP2Unsigned( $ip )
  * Determine if an IP address really is an IP address, and if it is public, 
  * i.e. not RFC 1918 or similar
  */
-function wfIsIPPublic( $ip )
-{
+function wfIsIPPublic( $ip ) {
        $n = wfIP2Unsigned( $ip );
        if ( !$n ) {
                return false;
index dd59f44..2b59108 100644 (file)
@@ -1,5 +1,4 @@
 <?php
-
 /**
  * (X)HTML sanitizer for MediaWiki
  *
@@ -317,6 +316,7 @@ $wgHtmlEntities = array(
        'zwj'      => 8205,
        'zwnj'     => 8204 );
 
+/** @package MediaWiki */
 class Sanitizer {
        /**
         * Cleans up HTML, removes dangerous tags and attributes, and
index 81d2ad6..7642351 100644 (file)
@@ -213,6 +213,7 @@ class SearchEngine {
     }
 }
 
+/** @package MediaWiki */
 class SearchResultSet {
        /**
         * Fetch an array of regular expression fragments for matching
@@ -287,6 +288,7 @@ class SearchResultSet {
        }
 }
 
+/** @package MediaWiki */
 class SearchResult {
        function SearchResult( $row ) {
                $this->mTitle = Title::makeTitle( $row->page_namespace, $row->page_title );
index 4cf30c8..b36cea6 100644 (file)
@@ -27,6 +27,7 @@
 /** */
 require_once( 'SearchEngine.php' );
 
+/** @package MediaWiki */
 class SearchMySQL extends SearchEngine {
        /**
         * Perform a full text search query and return a result set.
@@ -180,6 +181,7 @@ class SearchMySQL extends SearchEngine {
        }
 }
 
+/** @package MediaWiki */
 class MySQLSearchResultSet extends SearchResultSet {
        function MySQLSearchResultSet( $resultSet, $terms ) {
                $this->mResultSet = $resultSet;
index c7c78a6..e3befe7 100644 (file)
@@ -5,11 +5,6 @@
  * @package MediaWiki
  */
 
-/**
- *
- * @package MediaWiki
- */
-
 /**
  * The include paths change after this file is included from commandLine.inc, 
  * meaning that require_once() fails to detect that it is including the same
 if (!defined('SITE_CONFIGURATION')) {
 define('SITE_CONFIGURATION', 1);
 
+/** @package MediaWiki */
 class SiteConfiguration {
        var $suffixes = array();
        var $wikis = array();
        var $settings = array();
        var $localDatabases = array();
        var $localVHosts = array();
-       
+
+       /** */  
        function get( $setting, $wiki, $suffix, $params = array() ) {
                if ( array_key_exists( $wiki, $this->settings[$setting] ) ) {
                        $retval = $this->settings[$setting][$wiki];
@@ -43,27 +40,32 @@ class SiteConfiguration {
                return $retval;
        }
 
+       /** */
        function getBool( $setting, $wiki, $suffix ) {
                return (bool)($this->get( $setting, $wiki, $suffix ));
        }
 
+       /** */
        function &getLocalDatabases() {
                return $this->localDatabases;
        }
-       
+
+       /** */
        function initialise() {
                foreach ( $this->wikis as $db ) {
                        $this->localDatabases[$db] = $db;
                }
        }
 
+       /** */
        function extractVar( $setting, $wiki, $suffix, &$var, $params ) {
                $value = $this->get( $setting, $wiki, $suffix, $params );
                if ( !is_null( $value ) ) {
                        $var = $value;
                }
        }
-       
+
+       /** */
        function extractGlobal( $setting, $wiki, $suffix, $params ) {
                $value = $this->get( $setting, $wiki, $suffix, $params );
                if ( !is_null( $value ) ) {
@@ -71,6 +73,7 @@ class SiteConfiguration {
                }
        }
 
+       /** */
        function extractAllGlobals( $wiki, $suffix, $params ) {
                foreach ( $this->settings as $varName => $setting ) {
                        $this->extractGlobal( $varName, $wiki, $suffix, $params );
@@ -94,6 +97,7 @@ class SiteConfiguration {
                return array( $site, $lang );
        }
 
+       /** */
        function isLocalVHost( $vhost ) {
                return in_array( $vhost, $this->localVHosts );
        }
index f88545b..ac6415e 100644 (file)
@@ -8,12 +8,15 @@
  * @subpackage SpecialPage
  */
 
+/** @todo document */
 function wfSpecialConfirmemail( $code ) {
        $form = new ConfirmationForm();
        $form->show( $code );
 }
 
+/** @package MediaWiki */
 class ConfirmationForm {
+       /** */
        function show( $code ) {
                if( empty( $code ) ) {
                        $this->showEmpty( $this->checkAndSend() );
@@ -21,7 +24,8 @@ class ConfirmationForm {
                        $this->showCode( $code );
                }
        }
-       
+
+       /** */
        function showCode( $code ) {
                $user = User::newFromConfirmationCode( $code );
                if( is_null( $user ) ) {
@@ -30,8 +34,8 @@ class ConfirmationForm {
                        $this->confirmAndShow( $user );
                }
        }
-       
-       
+
+       /** */  
        function confirmAndShow( $user ) {
                if( $user->confirmEmail() ) {
                        $this->showSuccess();
@@ -39,7 +43,8 @@ class ConfirmationForm {
                        $this->showError();
                }
        }
-       
+
+       /** */
        function checkAndSend() {
                global $wgUser, $wgRequest;
                if( $wgRequest->wasPosted() &&
@@ -56,7 +61,8 @@ class ConfirmationForm {
                        return '';
                }
        }
-       
+
+       /** */
        function showEmpty( $err ) {
                require_once( 'templates/Confirmemail.php' );
                global $wgOut, $wgUser;
@@ -71,17 +77,20 @@ class ConfirmationForm {
                
                $wgOut->addTemplate( $tpl );
        }
-       
+
+       /** */
        function showInvalidCode() {
                global $wgOut;
                $wgOut->addWikiText( wfMsg( 'confirmemail_invalid' ) );
        }
-       
+
+       /** */
        function showError() {
                global $wgOut;
                $wgOut->addWikiText( wfMsg( 'confirmemail_error' ) );
        }
-       
+
+       /** */
        function showSuccess() {
                global $wgOut, $wgRequest, $wgUser;
                
index 041dba1..5e5e1fa 100644 (file)
@@ -4,6 +4,7 @@
  * @subpackage SpecialPage
  */
 
+/** @package MediaWiki */
 class contribs_finder {
        var $username, $offset, $limit;
        var $dbr;
index ae3ca83..07b2df5 100644 (file)
@@ -23,6 +23,7 @@
  * @subpackage SpecialPage
  */
 
+/** */
 require_once( 'WikiError.php' );
 
 /**
@@ -533,6 +534,7 @@ class WikiImporter {
 
 }
 
+/** @package MediaWiki */
 class ImportStringSource {
        function ImportStringSource( $string ) {
                $this->mString = $string;
@@ -553,6 +555,7 @@ class ImportStringSource {
        }
 }
 
+/** @package MediaWiki */
 class ImportStreamSource {
        function ImportStreamSource( $handle ) {
                $this->mHandle = $handle;
index fca20c0..2487405 100644 (file)
@@ -430,6 +430,7 @@ class UnlistedSpecialPage extends SpecialPage
 
 /**
  * Shortcut to construct an includable special  page
+ * @package MediaWiki
  */
 class IncludableSpecialPage extends SpecialPage
 {
index 20d53cd..6519d51 100644 (file)
@@ -20,7 +20,7 @@ function wfSpecialUploadMogile() {
         $form->execute();
 }
 
-
+/** @package MediaWiki */
 class UploadFormMogile extends UploadForm {
        /**
         * Move the uploaded file from its temporary location to the final
index e154d6a..3098ea8 100644 (file)
@@ -1,5 +1,7 @@
 <?php
+/** */
 
+/** */
 function wfStreamFile( $fname ) {
        global $wgSquidMaxage;
        $stat = stat( $fname );
@@ -37,6 +39,7 @@ does not.</p>
        readfile( $fname );
 }
 
+/** */
 function wfGetType( $filename ) {
        global $wgTrivialMimeDetection;
 
@@ -46,13 +49,13 @@ function wfGetType( $filename ) {
                $ext= strtolower(strrchr($filename, '.'));
                
                switch ($ext) {
-                       case '.gif': return "image/gif";
-                       case '.png': return "image/png";
-                       case '.jpg': return "image/jpeg";
-                       case '.jpeg': return "image/jpeg";
+                       case '.gif': return 'image/gif';
+                       case '.png': return 'image/png';
+                       case '.jpg': return 'image/jpeg';
+                       case '.jpeg': return 'image/jpeg';
                }
                
-               return "unknown/unknown";
+               return 'unknown/unknown';
        }
        else {
                $magic=& wfGetMimeMagic();
index 4c6cfa1..d2167ca 100644 (file)
@@ -5,6 +5,7 @@
  * @package MediaWiki
  */
 
+/** */
 require_once( 'normal/UtfNormal.php' );
 
 $wgTitleInterwikiCache = array();
index ece931f..f693003 100644 (file)
@@ -25,6 +25,7 @@
 /**
  * Since PHP4 doesn't have exceptions, here's some error objects
  * loosely modeled on the standard PEAR_Error model...
+ * @package MediaWiki
  */
 class WikiError {
        /**
@@ -65,6 +66,7 @@ class WikiError {
 
 /**
  * Localized error message object
+ * @package MediaWiki
  */
 class WikiErrorMsg extends WikiError {
        /**
@@ -79,7 +81,8 @@ class WikiErrorMsg extends WikiError {
 }
 
 /**
- * 
+ * @package MediaWiki
+ * @todo document
  */
 class WikiXmlError extends WikiError {
        /**
@@ -91,7 +94,8 @@ class WikiXmlError extends WikiError {
                $this->mMessage = $message;
                xml_parser_free( $parser );
        }
-       
+
+       /** @return string */   
        function getMessage() {
                return $this->mMessage . ': ' . xml_error_string( $this->mXmlError );
        }
index 15d1c38..fa9a37b 100644 (file)
@@ -159,6 +159,7 @@ if(isset($wgExtraNamespaces)) {
 
 # Read language names
 global $wgLanguageNames;
+/** */
 require_once( 'Names.php' );
 
 $wgLanguageNamesEn =& $wgLanguageNames;
index 91ec82f..6627ee0 100644 (file)
@@ -5,6 +5,7 @@
   * @subpackage Language
   */
 
+/** This is an UTF-8 language  */
 require_once('LanguageUtf8.php');
 
 /* private */ $wgNamespaceNamesAr = array(
index f1bf46c..662e379 100644 (file)
@@ -1366,8 +1366,13 @@ $3...
   'mw_math_mathml' => 'MathML по възможност (експериментално)'
 );
 
+/** This is an UTF-8 language */
 require_once( 'LanguageUtf8.php' );
 
+/**
+ * @package MediaWiki
+ * @subpackage Language
+ */
 class LanguageBg extends LanguageUtf8 {
 
        function getBookstoreList () {
index 35fbc5d..6e16bec 100644 (file)
@@ -5,6 +5,7 @@
   * @subpackage Language
   */
 
+/** This is an UTF8 language */
 require_once( 'LanguageUtf8.php' );
 
 /* private */ $wgNamespaceNamesBn = array(
index 2495fa2..a79752c 100644 (file)
@@ -877,7 +877,10 @@ Incorporeu-les manualment, si us plau.",
 
 );
 
-require_once( "LanguageUtf8.php" );
+/** This is an UTF8 language */
+require_once( 'LanguageUtf8.php' );
+
+/** @package MediaWiki */
 class LanguageCa extends LanguageUtf8 {
 
        function getNamespaces() {
index 8ab6846..843cbbe 100644 (file)
@@ -5,6 +5,7 @@
  * @subpackage Language
  */
 
+/** */
 require_once( 'LanguageUtf8.php' );
 
 # See Language.php for notes.
index 4254a8d..19f5ccb 100644 (file)
@@ -1010,8 +1010,10 @@ amusement.",
 );
 
 
-require_once( "LanguageUtf8.php" );
+/** */
+require_once( 'LanguageUtf8.php' );
 
+/** @package MediaWiki */
 class LanguageCy extends LanguageUtf8 {
 
        function getBookstoreList () {
index a871385..4aca5d1 100644 (file)
@@ -5,6 +5,7 @@
   * @subpackage Language
   */
 
+/** */
 require_once( "LanguageUtf8.php" );
 
 #--------------------------------------------------------------------------
@@ -1630,6 +1631,7 @@ ta[\'ca-nstab-category\'] = new Array(\'c\',\'Se kategorisiden\');
 
 );
 
+/** @package MediaWiki */
 class LanguageDa extends LanguageUtf8 {
 
        function getBookstoreList () {
index 8aa0ce9..01a015e 100644 (file)
@@ -5,6 +5,7 @@
   * @subpackage Language
   */
 
+/** */
 require_once( 'LanguageUtf8.php' );
 
 # See Language.php for notes.
@@ -1345,6 +1346,7 @@ Der Bestätigungskode läuft am $4 ab.
 
 );
 
+/** @package MediaWiki */
 class LanguageDe extends LanguageUtf8 {
 
        function getBookstoreList() {
index 8ec1b95..fd326db 100644 (file)
@@ -5,6 +5,7 @@
   * @subpackage Language
   */
 
+/** */
 require_once( 'LanguageUtf8.php' );
 
 $wgNamespaceNamesEl = array(
@@ -65,7 +66,7 @@ $wgAllMessagesEl = array(
 'dec' => 'Δεκ',
 );
 
-
+/** @package MediaWiki */
 class LanguageEl extends LanguageUtf8 {
 
        function getNamespaces() {
index 705d4e4..3feba17 100644 (file)
@@ -5,8 +5,10 @@
   * @subpackage Language
   */
 
+/** */
 require_once( 'LanguageUtf8.php' );
 
+/** @package MediaWiki */
 class LanguageEn extends LanguageUtf8 {
        # Inherit everything
 }
index 243b312..a298244 100644 (file)
@@ -3,6 +3,8 @@
   * @package MediaWiki
   * @subpackage Language
   */
+
+/** */
 require_once("LanguageUtf8.php");
 
 # See language.txt
@@ -970,7 +972,7 @@ Bonvolu permane kunigi ilin.",
 
 );
 
-
+/** @package MediaWiki */
 class LanguageEo extends LanguageUtf8 {
 
        function getDefaultUserOptions () {
index 9b5fa83..7d95a25 100644 (file)
@@ -1409,6 +1409,9 @@ class LanguageFr extends LanguageUtf8 {
                return $wgTranslateNumerals ? strtr($number, $this->digitTransTable ) : $number;
        }
 
+       function isRTL() {
+               return false;
+       }
 
        function getValidSpecialPages() {
                global $wgValidSpecialPagesFr;
index f1035b6..05e7986 100644 (file)
@@ -31,7 +31,10 @@ if( function_exists( 'mb_strtoupper' ) ) {
        }
 }
 
-# Base stuff useful to all UTF-8 based language files
+/**
+ * Base stuff useful to all UTF-8 based language files
+ * @package MediaWiki
+ */
 class LanguageUtf8 extends Language {
 
        # These two functions use mbstring library, if it is loaded
index ed2e472..85c5d1b 100644 (file)
 
 $options = array( 'fix', 'index' );
 
-require_once( "commandLine.inc" );
+/** */
+require_once( 'commandLine.inc' );
 require_once( 'cleanupDupes.inc' );
-$wgTitle = Title::newFromText( "Dupe cur entry cleanup script" );
+$wgTitle = Title::newFromText( 'Dupe cur entry cleanup script' );
 
 checkDupes( isset( $options['fix'] ), isset( $options['index'] ) );
 
-?>
\ No newline at end of file
+?>
index 7abdb1b..baba866 100644 (file)
@@ -35,7 +35,7 @@ class DumpHTML {
                
                for ($id = $start; $id <= $end; $id++) {
                        if ( !($id % REPORTING_INTERVAL) ) {
-                               print("$id\n");
+                               print "Processing ID: $id".chr(13);
                        }
                        $title = Title::newFromID( $id );
                        if ( $title ) {
diff --git a/maintenance/splitLanguageFiles.inc b/maintenance/splitLanguageFiles.inc
new file mode 100644 (file)
index 0000000..9fe1fe7
--- /dev/null
@@ -0,0 +1,1176 @@
+<?php
+/**
+ * This is an experimental list. It will later be used with a script to split
+ * the languages files in several parts then the message system will only load
+ * in memory the parts which are actually needed.
+ * 
+ * Generated using: grep -r foobar *
+ * 
+ * $commonMsg is the default array. Other arrays will only be loaded if needed.
+ */
+$installerMsg = array (
+'mainpagetext',
+'mainpagedocfooter',
+);
+
+$ActionMsg = array (
+'delete' => array(
+       'delete',
+       'deletethispage',
+       'undelete_short1',
+       'undelete_short',
+       'undelete',
+       'undeletepage',
+       'undeletepagetext',
+       'undeletearticle',
+       'undeleterevisions',
+       'undeletehistory',
+       'undeleterevision',
+       'undeletebtn',
+       'undeletedarticle',
+       'undeletedrevisions',
+       'undeletedtext',
+       ),
+'move' => array(
+       'move',
+       'movethispage',
+),
+'revert' => array(
+
+),
+'protect' => array(
+       'confirmprotect',
+       'confirmprotecttext',
+       'confirmunprotect',
+       'confirmunprotecttext',
+       'protect',
+       'protectcomment',
+       'protectmoveonly',
+       'protectpage',
+       'protectreason',
+       'protectsub',
+       'protectthispage',
+       'unprotect',
+       'unprotectthispage',
+       'unprotectsub',
+       'unprotectcomment',
+),
+);
+
+$CreditsMsg = array(
+'anonymous',
+'siteuser',
+'lastmodifiedby',
+'and',
+'othercontribs',
+'others',
+'siteusers',
+'creditspage',
+'nocredits',
+);
+
+// When showing differences
+$DifferenceMsg = array(
+'previousdiff',
+'nextdiff',
+);
+
+// used on page edition
+$EditMsg = array(
+'bold_sample',
+'bold_tip',
+'italic_sample',
+'italic_tip',
+'link_sample',
+'link_tip',
+'extlink_sample',
+'extlink_tip',
+'headline_sample',
+'headline_tip',
+'math_sample',
+'math_tip',
+'nowiki_sample',
+'nowiki_tip',
+'image_sample',
+'image_tip',
+'media_sample',
+'media_tip',
+'sig_tip',
+'hr_tip',
+
+'accesskey-search',
+'accesskey-minoredit',
+'accesskey-save',
+'accesskey-preview',
+'accesskey-diff',
+'accesskey-compareselectedversions',
+'tooltip-search',
+'tooltip-minoredit',
+'tooltip-save',
+'tooltip-preview',
+'tooltip-diff',
+'tooltip-compareselectedversions',
+'tooltip-watch',
+
+'copyrightwarning',
+'copyrightwarning2',
+'editconflict',
+'editing',
+'editingcomment',
+'editingold',
+'editingsection',
+'explainconflict',
+'infobox',
+'infobox_alert',
+'longpagewarning',
+'nonunicodebrowser',
+'previewconflict',
+'previewnote',
+'protectedpagewarning',
+'readonlywarning',
+'spamprotectiontitle',
+'spamprotectiontext',
+'spamprotectionmatch',
+'templatesused',
+'yourdiff',
+'yourtext',
+);
+
+// Per namespace
+$NamespaceCategory = array (
+'category_header',
+'categoryarticlecount',
+'categoryarticlecount1',
+'listingcontinuesabbrev',
+'subcategories',
+'subcategorycount',
+'subcategorycount1',
+'usenewcategorypage',
+);
+
+$NamespaceImage = array (
+'deletedrevision',
+'edit-externally',
+'edit-externally-help',
+'showbigimage',
+);
+
+$NamespaceSpecialMsg = array(
+'nosuchspecialpage',
+'nospecialpagetext',
+);
+
+
+
+// per special pages
+$SpecialAllMessages = array(
+'allmessages',
+'allmessagesname',
+'allmessagesdefault',
+'allmessagescurrent',
+'allmessagestext',
+'allmessagesnotsupportedUI',
+'allmessagesnotsupportedDB',
+);
+
+
+$SpecialAllPages = array(
+'articlenamespace',
+'allpagesformtext1',
+'allpagesformtext2',
+'allarticles',
+'allpagesprev',
+'allpagesnext',
+'allpagesnamespace',
+'allpagessubmit',
+);
+
+
+$SpecialAskSQLMsg = array(
+'asksql',
+'asksqltext',
+'sqlislogged',
+'sqlquery',
+'querybtn',
+'selectonly',
+'querysuccessful',
+);
+
+$SpecialBlockip = array(
+'blockip',
+'blockiptext',
+'range_block_disabled',
+'ipb_expiry_invalid',
+'ip_range_invalid',
+'ipbexpiry',
+'ipbsubmit',
+);
+
+$SpecialContributions = array(
+'contribsub',
+'contributionsall',
+'newbies',
+'nocontribs',
+'ucnote',
+'uclinks',
+'uctop',
+);
+
+$SpecialExportMsg = array (
+'export',
+'exporttext',
+'exportcuronly',
+);
+
+$SpecialImagelist = array(
+'imagelistall',
+);
+
+$SpecialImportMsg = array (
+'import',
+'importtext',
+'importfailed',
+'importnotext',
+'importsuccess',
+'importhistoryconflict',
+);
+
+$SpecialLockdbMsg = array(
+'lockdb',
+'unlockdb',
+'lockdbtext',
+'unlockdbtext',
+'lockconfirm',
+'unlockconfirm',
+'lockbtn',
+'unlockbtn',
+'locknoconfirm',
+'lockdbsuccesssub',
+'unlockdbsuccesssub',
+'lockdbsuccesstext',
+'unlockdbsuccesstext',
+);
+
+$SpecialLogMsg = array(
+'specialloguserlabel',
+'speciallogtitlelabel',
+);
+
+$SpecialMaintenance = array(
+'maintenance',
+'maintnancepagetext',
+'maintenancebacklink',
+'disambiguations',
+'disambiguationspage',
+'disambiguationstext',
+'doubleredirects',
+'doubleredirectstext',
+'brokenredirects',
+'brokenredirectstext',
+'selflinks',
+'selflinkstext',
+'mispeelings',
+'mispeelingstext',
+'mispeelingspage',
+'missinglanguagelinks',
+'missinglanguagelinksbutton',
+'missinglanguagelinkstext',
+);
+
+$SpecialMakeSysopMsg = array (
+'already_bureaucrat',
+'already_sysop',
+'makesysop',
+'makesysoptitle',
+'makesysoptext',
+'makesysopname',
+'makesysopsubmit',
+'makesysopok',
+'makesysopfail',
+'rights',
+'set_rights_fail',
+'set_user_rights',
+'user_rights_set',
+);
+
+$SpecialMovepageMsg = array(
+'newtitle',
+'movearticle',
+'movenologin',
+'movenologintext',
+'movepage',
+'movepagebtn',
+'movepagetalktext',
+'movepagetext',
+'movetalk',
+'pagemovedsub',
+'pagemovedtext',
+'talkexists',
+'talkpagemoved',
+'talkpagenotmoved',
+
+);
+
+$SpecialPreferencesMsg = array(
+'tog-underline',
+'tog-highlightbroken',
+'tog-justify',
+'tog-hideminor',
+'tog-usenewrc',
+'tog-numberheadings',
+'tog-showtoolbar',
+'tog-editondblclick',
+'tog-editsection',
+'tog-editsectiononrightclick',
+'tog-showtoc',
+'tog-rememberpassword',
+'tog-editwidth',
+'tog-watchdefault',
+'tog-minordefault',
+'tog-previewontop',
+'tog-previewonfirst',
+'tog-nocache',
+'tog-enotifwatchlistpages',
+'tog-enotifusertalkpages',
+'tog-enotifminoredits',
+'tog-enotifrevealaddr',
+'tog-shownumberswatching',
+'tog-rcusemodstyle',
+'tog-showupdated',
+'tog-fancysig',
+'tog-externaleditor',
+
+'imagemaxsize',
+'prefs-help-email',
+'prefs-help-email-enotif',
+'prefs-help-realname',
+'prefs-help-userdata',
+'prefs-misc',
+'prefs-personal',
+'prefs-rc',
+'resetprefs',
+'saveprefs',
+'oldpassword',
+'newpassword',
+'retypenew',
+'textboxsize',
+'rows',
+'columns',
+'searchresultshead',
+'resultsperpage',
+'contextlines',
+'contextchars',
+'stubthreshold',
+'recentchangescount',
+'savedprefs',
+'timezonelegend',
+'timezonetext',
+'localtime',
+'timezoneoffset',
+'servertime',
+'guesstimezone',
+'emailflag',
+'defaultns',
+'default',
+);
+
+$SpecialRecentchangesMsg = array(
+'changes',
+'recentchanges',
+'recentchanges-url',
+'recentchangestext',
+'rcloaderr',
+'rcnote',
+'rcnotefrom',
+'rclistfrom',
+'showhideminor',
+'rclinks',
+'rchide',
+'rcliu',
+'diff',
+'hist',
+'hide',
+'show',
+'tableform',
+'listform',
+'nchanges',
+'minoreditletter',
+'newpageletter',
+'sectionlink',
+'number_of_watching_users_RCview',
+'number_of_watching_users_pageview',
+'recentchangesall',
+);
+
+$SpecialRecentchangeslinkedMsg = array(
+'rclsub',
+);
+
+$SpecialSearchMsg = array(
+'searchresults',
+'searchresulttext',
+'searchquery',
+'badquery',
+'badquerytext',
+'matchtotals',
+'nogomatch',
+'titlematches',
+'notitlematches',
+'textmatches',
+'notextmatches',
+);
+
+$SpecialSitesettingsMsg = array(
+'sitesettings',
+'sitesettings-features',
+'sitesettings-permissions',
+'sitesettings-memcached',
+'sitesettings-debugging',
+'sitesettings-caching',
+'sitesettings-wgShowIPinHeader',
+'sitesettings-wgUseDatabaseMessages',
+'sitesettings-wgUseCategoryMagic',
+'sitesettings-wgUseCategoryBrowser',
+'sitesettings-wgHitcounterUpdateFreq',
+'sitesettings-wgAllowExternalImages',
+'sitesettings-permissions-readonly',
+'sitesettings-permissions-whitelist',
+'sitesettings-permissions-banning',
+'sitesettings-permissions-miser',
+'sitesettings-wgReadOnly',
+'sitesettings-wgReadOnlyFile',
+'sitesettings-wgWhitelistEdit',
+'sitesettings-wgWhitelistRead',
+'sitesettings-wgWhitelistAccount-user',
+'sitesettings-wgWhitelistAccount-sysop',
+'sitesettings-wgWhitelistAccount-developer',
+'sitesettings-wgSysopUserBans',
+'sitesettings-wgSysopRangeBans',
+'sitesettings-wgDefaultBlockExpiry',
+'sitesettings-wgMiserMode',
+'sitesettings-wgDisableQueryPages',
+'sitesettings-wgUseWatchlistCache',
+'sitesettings-wgWLCacheTimeout',
+'sitesettings-cookies',
+'sitesettings-performance',
+'sitesettings-images',
+);
+
+$SpecialStatisticsMsg = array(
+'statistics',
+'sitestats',
+'userstats',
+'sitestatstext',
+'userstatstext',
+);
+
+$SpecialUndelte = array(
+'deletepage',
+);
+
+$SpecialUploadMsg = array(
+'affirmation',
+'badfilename',
+'badfiletype',
+'emptyfile',
+'fileexists',
+'filedesc',
+'filename',
+'filesource',
+'filestatus',
+'fileuploaded',
+'ignorewarning',
+'illegalfilename',
+'largefile',
+'minlength',
+'noaffirmation',
+'reupload',
+'reuploaddesc',
+'savefile',
+'successfulupload',
+'upload',
+'uploadbtn',
+'uploadcorrupt',
+'uploaddisabled',
+'uploadfile',
+'uploadedimage',
+'uploaderror',
+'uploadlink',
+'uploadlog',
+'uploadlogpage',
+'uploadlogpagetext',
+'uploadnologin',
+'uploadnologintext',
+'uploadtext',
+'uploadwarning',
+);
+
+$SpecialUserlevelsMsg = array(
+'saveusergroups',
+'userlevels-editusergroup',
+'userlevels-groupsavailable',
+'userlevels-groupshelp',
+'userlevels-groupsmember',
+);
+
+$SpecialUserloginMsg = array(
+'acct_creation_throttle_hit',
+'loginend',
+'loginsuccesstitle',
+'loginsuccess',
+'nocookiesnew',
+'nocookieslogin',
+'noemail',
+'noname',
+'nosuchuser',
+'mailmypassword',
+'mailmypasswordauthent',
+'passwordremindermailsubject',
+'passwordremindermailbody',
+'passwordsent',
+'passwordsentforemailauthentication',
+'userexists',
+'wrongpassword',
+);
+
+$SpecialValidateMsg = array(
+'val_yes',
+'val_no',
+'val_revision',
+'val_time',
+'val_list_header',
+'val_add',
+'val_del',
+'val_warning',
+'val_rev_for',
+'val_rev_stats_link',
+'val_iamsure',
+'val_clear_old',
+'val_merge_old',
+'val_form_note',
+'val_noop',
+'val_percent',
+'val_percent_single',
+'val_total',
+'val_version',
+'val_tab',
+'val_this_is_current_version',
+'val_version_of',
+'val_table_header',
+'val_stat_link_text',
+'val_view_version',
+'val_validate_version',
+'val_user_validations',
+'val_no_anon_validation',
+'val_validate_article_namespace_only',
+'val_validated',
+'val_article_lists',
+'val_page_validation_statistics',
+);
+
+$SpecialVersionMsg = array(
+'special_version_prefix',
+'special_version_postfix'
+);
+
+$SpecialWatchlistMsg = array(
+'watchlistall1',
+'watchlistall2',
+'wlnote',
+'wlshowlast',
+'wlsaved',
+'wlhideshowown',
+'wlshow',
+'wlhide',
+);
+
+$SpecialWhatlinkshereMsg = array(
+'linklistsub',
+'nolinkshere',
+'isredirect',
+);
+
+
+$commonMsg = array (
+'sunday',
+'monday',
+'tuesday',
+'wednesday',
+'thursday',
+'friday',
+'saturday',
+'january',
+'february',
+'march',
+'april',
+'may_long',
+'june',
+'july',
+'august',
+'september',
+'october',
+'november',
+'december',
+'jan',
+'feb',
+'mar',
+'apr',
+'may',
+'jun',
+'jul',
+'aug',
+'sep',
+'oct',
+'nov',
+'dec',
+'categories',
+'category',
+'linktrail',
+'mainpage',
+'portal',
+'portal-url',
+'about',
+'aboutsite',
+'aboutpage',
+'article',
+'help',
+'helppage',
+'wikititlesuffix',
+'bugreports',
+'bugreportspage',
+'sitesupport',
+'sitesupport-url',
+'faq',
+'faqpage',
+'edithelp',
+'newwindow',
+'edithelppage',
+'cancel',
+'qbfind',
+'qbbrowse',
+'qbedit',
+'qbpageoptions',
+'qbpageinfo',
+'qbmyoptions',
+'qbspecialpages',
+'moredotdotdot',
+'mypage',
+'mytalk',
+'anontalk',
+'navigation',
+'metadata',
+'metadata_page',
+'currentevents',
+'currentevents-url',
+'disclaimers',
+'disclaimerpage',
+'errorpagetitle',
+'returnto',
+'tagline',
+'whatlinkshere',
+'search',
+'go',
+'history',
+'history_short',
+'info_short',
+'printableversion',
+'edit',
+'editthispage',
+'newpage',
+'talkpage',
+'specialpage',
+'personaltools',
+'postcomment',
+'addsection',
+'articlepage',
+'subjectpage',
+'talk',
+'toolbox',
+'userpage',
+'wikipediapage',
+'imagepage',
+'viewtalkpage',
+'otherlanguages',
+'redirectedfrom',
+'lastmodified',
+'viewcount',
+'copyright',
+'poweredby',
+'printsubtitle',
+'protectedpage',
+'administrators',
+'sysoptitle',
+'sysoptext',
+'developertitle',
+'developertext',
+'bureaucrattitle',
+'bureaucrattext',
+'nbytes',
+'ok',
+'sitetitle',
+'pagetitle',
+'sitesubtitle',
+'retrievedfrom',
+'newmessages',
+'newmessageslink',
+'editsection',
+'toc',
+'showtoc',
+'hidetoc',
+'thisisdeleted',
+'restorelink',
+'feedlinks',
+'sitenotice',
+'nstab-main',
+'nstab-user',
+'nstab-media',
+'nstab-special',
+'nstab-wp',
+'nstab-image',
+'nstab-mediawiki',
+'nstab-template',
+'nstab-help',
+'nstab-category',
+'nosuchaction',
+'nosuchactiontext',
+
+
+'error',
+'databaseerror',
+'dberrortext',
+'dberrortextcl',
+'noconnect',
+'nodb',
+'cachederror',
+'laggedslavemode',
+'readonly',
+'enterlockreason',
+'readonlytext',
+'missingarticle',
+'internalerror',
+'filecopyerror',
+'filerenameerror',
+'filedeleteerror',
+'filenotfound',
+'unexpected',
+'formerror',
+'badarticleerror',
+'cannotdelete',
+'badtitle',
+'badtitletext',
+'perfdisabled',
+'perfdisabledsub',
+'perfcached',
+'wrong_wfQuery_params',
+'viewsource',
+'protectedtext',
+'seriousxhtmlerrors',
+'logouttitle',
+'logouttext',
+'welcomecreation',
+
+'loginpagetitle',
+'yourname',
+'yourpassword',
+'yourpasswordagain',
+'newusersonly',
+'remembermypassword',
+'loginproblem',
+'alreadyloggedin',
+'login',
+'loginprompt',
+'userlogin',
+'logout',
+'userlogout',
+'notloggedin',
+'createaccount',
+'createaccountmail',
+'badretype',
+
+'youremail',
+'yourrealname',
+'yourlanguage',
+'yourvariant',
+'yournick',
+'emailforlost',
+'loginerror',
+'nosuchusershort',
+
+'mailerror',
+'emailauthenticated',
+'emailnotauthenticated',
+'invalidemailaddress',
+'disableduntilauthent',
+'disablednoemail',
+
+'summary',
+'subject',
+'minoredit',
+'watchthis',
+'savearticle',
+'preview',
+'showpreview',
+'showdiff',
+'blockedtitle',
+'blockedtext',
+'whitelistedittitle',
+'whitelistedittext',
+'whitelistreadtitle',
+'whitelistreadtext',
+'whitelistacctitle',
+'whitelistacctext',
+'loginreqtitle',
+'loginreqtext',
+'accmailtitle',
+'accmailtext',
+'newarticle',
+'newarticletext',
+'talkpagetext',
+'anontalkpagetext',
+'noarticletext',
+'clearyourcache',
+'usercssjsyoucanpreview',
+'usercsspreview',
+'userjspreview',
+'updated',
+'note',
+'storedversion', // not used ? Editpage ?
+'revhistory',
+'nohistory',
+'revnotfound',
+'revnotfoundtext',
+'loadhist',
+'currentrev',
+'revisionasof',
+'revisionasofwithlink',
+'previousrevision',
+'nextrevision',
+'currentrevisionlink',
+'cur',
+'next',
+'last',
+'orig',
+'histlegend',
+'history_copyright',
+'difference',
+'loadingrev',
+'lineno',
+'editcurrent',
+'selectnewerversionfordiff',
+'selectolderversionfordiff',
+'compareselectedversions',
+
+'prevn',
+'nextn',
+'viewprevnext',
+'showingresults',
+'showingresultsnum',
+'nonefound',
+'powersearch',
+'powersearchtext',
+'searchdisabled',
+'googlesearch',
+'blanknamespace',
+'preferences',
+'prefsnologin',
+'prefsnologintext',
+'prefslogintext',
+'prefsreset',
+'qbsettings',
+'qbsettingsnote',
+'changepassword',
+'skin',
+'math',
+'dateformat',
+
+'math_failure',
+'math_unknown_error',
+'math_unknown_function',
+'math_lexing_error',
+'math_syntax_error',
+'math_image_error',
+'math_bad_tmpdir',
+'math_bad_output',
+'math_notexvc',
+
+
+
+
+
+
+'grouplevels-lookup-group',
+'grouplevels-group-edit',
+'editgroup',
+'addgroup',
+'userlevels-lookup-user',
+'userlevels-user-editname',
+'editusergroup',
+'grouplevels-editgroup',
+'grouplevels-addgroup',
+'grouplevels-editgroup-name',
+'grouplevels-editgroup-description',
+'savegroup',
+
+// common to several pages
+'copyrightpage',
+'copyrightpagename',
+'imagelist',
+'imagelisttext',
+'ilshowmatch',
+'ilsubmit',
+'showlast',
+'byname',
+'bydate',
+'bysize',
+
+
+
+'imgdelete',
+'imgdesc',
+'imglegend',
+'imghistory',
+'revertimg',
+'deleteimg',
+'deleteimgcompletely',
+'imghistlegend',
+'imagelinks',
+'linkstoimage',
+'nolinkstoimage',
+
+// unused ??
+'uploadedfiles',
+'getimagelist',
+
+
+'sharedupload',
+'shareduploadwiki',
+
+// Special pages names
+'orphans',
+'geo',
+'validate',
+'lonelypages',
+'uncategorizedpages',
+'uncategorizedcategories',
+'unusedimages',
+'popularpages',
+'nviews',
+'wantedpages',
+'nlinks',
+'allpages',
+'randompage',
+'randompage-url',
+'shortpages',
+'longpages',
+'deadendpages',
+'listusers',
+'listadmins',
+'specialpages',
+'spheading',
+'restrictedpheading',
+'asksqlpheading',
+'blockpheading',
+'createaccountpheading',
+'deletepheading',
+'userrightspheading',
+'grouprightspheading',
+'siteadminpheading',
+'recentchangeslinked',
+
+
+'debug',
+'newpages',
+'ancientpages',
+'intl',
+'unusedimagestext',
+'booksources',
+'categoriespagetext',
+'data',
+'userlevels',
+'grouplevels',
+'booksourcetext',
+'isbn',
+'rfcurl',
+'pubmedurl',
+'alphaindexline',
+'version',
+'log',
+'alllogstext',
+'nextpage',
+'mailnologin',
+'mailnologintext',
+'emailuser',
+'emailpage',
+'emailpagetext',
+'usermailererror',
+'defemailsubject',
+'noemailtitle',
+'noemailtext',
+'emailfrom',
+'emailto',
+'emailsubject',
+'emailmessage',
+'emailsend',
+'emailsent',
+'emailsenttext',
+'watchlist',
+'watchlistsub',
+'nowatchlist',
+'watchnologin',
+'watchnologintext',
+'addedwatch',
+'addedwatchtext',
+'removedwatch',
+'removedwatchtext',
+'watch',
+'watchthispage',
+'unwatch',
+'unwatchthispage',
+'notanarticle',
+'watchnochange',
+'watchdetails',
+'watchmethod-recent',
+'watchmethod-list',
+'removechecked',
+'watchlistcontains',
+'watcheditlist',
+'removingchecked',
+'couldntremove',
+'iteminvalidname',
+
+'updatedmarker',
+'email_notification_mailer',
+'email_notification_infotext',
+'email_notification_reset',
+'email_notification_newpagetext',
+'email_notification_to',
+'email_notification_subject',
+'email_notification_lastvisitedrevisiontext',
+'email_notification_body',
+
+'confirm',
+'excontent',
+'exbeforeblank',
+'exblank',
+'confirmdelete',
+'deletesub',
+'historywarning',
+'confirmdeletetext',
+'actioncomplete',
+'deletedtext',
+'deletedarticle',
+'dellogpage',
+'dellogpagetext',
+'deletionlog',
+'reverted',
+'deletecomment',
+'imagereverted',
+'rollback',
+'rollback_short',
+'rollbacklink',
+'rollbackfailed',
+'cantrollback',
+'alreadyrolled',
+'revertpage',
+'editcomment',
+'sessionfailure',
+
+'protectlogpage',
+'protectlogtext',
+
+'protectedarticle',
+'unprotectedarticle',
+
+'contributions',
+'mycontris',
+'notargettitle', // not used ?
+'notargettext', // not used ?
+
+'linkshere',
+
+'ipaddress',
+'ipadressorusername', // not used ?
+'ipbreason',
+
+'badipaddress',
+'noblockreason',
+'blockipsuccesssub',
+'blockipsuccesstext',
+'unblockip',
+'unblockiptext',
+'ipusubmit',
+'ipusuccess',
+'ipblocklist',
+'blocklistline',
+'blocklink',
+'unblocklink',
+'contribslink',
+'autoblocker',
+'blocklogpage',
+'blocklogentry',
+'blocklogtext',
+'unblocklogentry', // not used ?
+
+'proxyblocker',
+'proxyblockreason',
+'proxyblocksuccess',
+'sorbs',
+'sorbsreason',
+
+'setbureaucratflag',
+'bureaucratlog',
+'rightslogtext',
+'bureaucratlogentry',
+
+'articleexists', // not used ?
+
+'movedto',
+'1movedto2',
+'1movedto2_redir',
+'movelogpage',
+'movelogpagetext',
+
+'thumbnail-more',
+'missingimage',
+'filemissing',
+'Monobook.css',
+'nodublincore',
+'nocreativecommons',
+'notacceptable',
+
+// used in Article::
+'infosubtitle',
+'numedits',
+'numtalkedits',
+'numwatchers',
+'numauthors',
+'numtalkauthors',
+
+// not used ?
+'mw_math_png',
+'mw_math_simple',
+'mw_math_html',
+'mw_math_source',
+'mw_math_modern',
+'mw_math_mathml',
+
+// Patrolling
+'markaspatrolleddiff',
+'markaspatrolledlink',
+'markaspatrolledtext',
+'markedaspatrolled',
+'markedaspatrolledtext',
+'rcpatroldisabled', // not used ?
+'rcpatroldisabledtext', // not used ?
+
+'Monobook.js',
+'newimages',
+'noimages',
+'variantname-zh-cn',
+'variantname-zh-tw',
+'variantname-zh-hk',
+'variantname-zh-sg',
+'variantname-zh',
+'zhconversiontable',
+'passwordtooshort', // sp preferences / userlogin
+?>
diff --git a/maintenance/splitLanguageFiles.php b/maintenance/splitLanguageFiles.php
new file mode 100644 (file)
index 0000000..04cd261
--- /dev/null
@@ -0,0 +1,13 @@
+<?php
+/**
+ * splitLanguageFiles
+ * Should read each of the languages files then split them in several subpart
+ * under ./languages/XX/ according to the arrays in splitLanguageFiles.inc .
+ * 
+ * Also need to rewrite the wfMsg system / message-cache.
+ */
+
+include('commandLine.inc');
+
+
+?>