r85286 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r85285‎ | r85286 | r85287 >
Date:21:46, 3 April 2011
Author:krinkle
Status:deferred
Tags:
Comment:
adding url in tool textdomain files for easy reference, removed Monumentsearch (was just for test)
Modified paths:
  • /trunk/tools/ToolserverI18N/TsIntuition.php (modified) (history)
  • /trunk/tools/ToolserverI18N/language/messages/Getwikiapi.i18n.php (modified) (history)
  • /trunk/tools/ToolserverI18N/language/messages/Jarry.i18n.php (modified) (history)
  • /trunk/tools/ToolserverI18N/language/messages/Orphantalk2.i18n.php (modified) (history)
  • /trunk/tools/ToolserverI18N/language/messages/Svgtranslate.i18n.php (modified) (history)
  • /trunk/tools/ToolserverI18N/language/messages/Tsintuition.i18n.php (modified) (history)
  • /trunk/tools/ToolserverI18N/public_html/index.php (modified) (history)

Diff [purge]

Index: trunk/tools/ToolserverI18N/TsIntuition.php
@@ -30,13 +30,12 @@
3131 private $localBaseDir = __DIR__; // to be moved to p_i18n
3232
3333 private static $registeredTextdomains = array(
34 - 'general' => 'General.i18n.php',
35 - 'Getwikiapi' => 'Getwikiapi.i18n.php',
36 - 'Jarry' => 'Jarry.i18n.php',
37 - 'Monumentsearch' => 'Monumentsearch.i18n.php',
38 - 'Orphantalk2' => 'Orphantalk2.i18n.php',
39 - 'Svgtranslate' => 'Svgtranslate.i18n.php',
40 - 'Tsintuition' => 'Tsintuition.i18n.php',
 34+ 'general' => array( 'file' => 'General.i18n.php' ),
 35+ 'Getwikiapi' => array( 'file' => 'Getwikiapi.i18n.php' ),
 36+ 'Jarry' => array( 'file' => 'Jarry.i18n.php' ),
 37+ 'Orphantalk2' => array( 'file' => 'Orphantalk2.i18n.php' ),
 38+ 'Svgtranslate' => array( 'file' => 'Svgtranslate.i18n.php' ),
 39+ 'Tsintuition' => array( 'file' => 'Tsintuition.i18n.php' ),
4140 );
4241
4342 private $suppresserrors = false;
@@ -76,7 +75,7 @@
7776 private $availableLanguages = array();
7877
7978 // These variable names will be extracted from the message files
80 - private $includeVariables = array( 'messages' );
 79+ private $includeVariables = array( 'messages', 'url' );
8180
8281 // Address to the dashboard home. Should end with a slash or .extension
8382 private $dashboardHome = 'http://toolserver.org/~krinkle/TsIntuition/';
@@ -564,7 +563,7 @@
565564 }
566565
567566 // File exists ?
568 - $path = $this->localBaseDir . "/language/messages/$domain.i18n.php";
 567+ $path = $this->localBaseDir . "/language/messages/" . $this->registeredTextdomains[$domain]['file'];
569568 if ( !file_exists( $path ) ) {
570569 $this->errTrigger( "Textdomain file not found for \"$domain\" at $path. Ignoring", __METHOD__, E_NOTICE, __FILE__, __LINE__ );
571570 return false;
Index: trunk/tools/ToolserverI18N/public_html/index.php
@@ -32,8 +32,8 @@
3333
3434 // Load all domains so can get some statistics later on and
3535 // make sure "getAvailableLangs" is compelte
36 -foreach ( $I18N->getAllRegisteredDomains() as $domain => $file ) {
37 - $I18N->loadTextdomain( $domain );
 36+foreach ( $I18N->getAllRegisteredDomains() as $domainKey => $domain ) {
 37+ $I18N->loadTextdomain( $domainKey );
3838 }
3939
4040 /**
Index: trunk/tools/ToolserverI18N/language/messages/Getwikiapi.i18n.php
@@ -5,6 +5,8 @@
66 * @toolowner krinkle
77 */
88
 9+$url = '~krinkle/getWikiAPI.php';
 10+
911 /**
1012 * English
1113 *
Index: trunk/tools/ToolserverI18N/language/messages/Svgtranslate.i18n.php
@@ -5,6 +5,8 @@
66 * @toolowner jarry
77 */
88
 9+$url = '~jarry/svgtranslate/';
 10+
911 /**
1012 * English
1113 *
Index: trunk/tools/ToolserverI18N/language/messages/Orphantalk2.i18n.php
@@ -5,6 +5,8 @@
66 * @toolowner krinkle
77 */
88
 9+$url = '~krinkle/OrphanTalk2/';
 10+
911 /**
1012 * English
1113 *
Index: trunk/tools/ToolserverI18N/language/messages/Jarry.i18n.php
@@ -5,6 +5,8 @@
66 * @toolowner jarry
77 */
88
 9+$url = '~jarry/';
 10+
911 /**
1012 * English
1113 *
Index: trunk/tools/ToolserverI18N/language/messages/Tsintuition.i18n.php
@@ -5,6 +5,8 @@
66 * @toolowner krinkle
77 */
88
 9+$url = '~krinkle/TsIntuition/';
 10+
911 /**
1012 * English
1113 *

Follow-up revisions

RevisionCommit summaryAuthorDate
r85287FU: r85286krinkle21:47, 3 April 2011

Status & tagging log