Index: trunk/tools/ToolserverI18N/TsIntuition.php |
— | — | @@ -30,13 +30,12 @@ |
31 | 31 | private $localBaseDir = __DIR__; // to be moved to p_i18n |
32 | 32 | |
33 | 33 | 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' ), |
41 | 40 | ); |
42 | 41 | |
43 | 42 | private $suppresserrors = false; |
— | — | @@ -76,7 +75,7 @@ |
77 | 76 | private $availableLanguages = array(); |
78 | 77 | |
79 | 78 | // These variable names will be extracted from the message files |
80 | | - private $includeVariables = array( 'messages' ); |
| 79 | + private $includeVariables = array( 'messages', 'url' ); |
81 | 80 | |
82 | 81 | // Address to the dashboard home. Should end with a slash or .extension |
83 | 82 | private $dashboardHome = 'http://toolserver.org/~krinkle/TsIntuition/'; |
— | — | @@ -564,7 +563,7 @@ |
565 | 564 | } |
566 | 565 | |
567 | 566 | // File exists ? |
568 | | - $path = $this->localBaseDir . "/language/messages/$domain.i18n.php"; |
| 567 | + $path = $this->localBaseDir . "/language/messages/" . $this->registeredTextdomains[$domain]['file']; |
569 | 568 | if ( !file_exists( $path ) ) { |
570 | 569 | $this->errTrigger( "Textdomain file not found for \"$domain\" at $path. Ignoring", __METHOD__, E_NOTICE, __FILE__, __LINE__ ); |
571 | 570 | return false; |
Index: trunk/tools/ToolserverI18N/public_html/index.php |
— | — | @@ -32,8 +32,8 @@ |
33 | 33 | |
34 | 34 | // Load all domains so can get some statistics later on and |
35 | 35 | // 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 ); |
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
Index: trunk/tools/ToolserverI18N/language/messages/Getwikiapi.i18n.php |
— | — | @@ -5,6 +5,8 @@ |
6 | 6 | * @toolowner krinkle |
7 | 7 | */ |
8 | 8 | |
| 9 | +$url = '~krinkle/getWikiAPI.php'; |
| 10 | + |
9 | 11 | /** |
10 | 12 | * English |
11 | 13 | * |
Index: trunk/tools/ToolserverI18N/language/messages/Svgtranslate.i18n.php |
— | — | @@ -5,6 +5,8 @@ |
6 | 6 | * @toolowner jarry |
7 | 7 | */ |
8 | 8 | |
| 9 | +$url = '~jarry/svgtranslate/'; |
| 10 | + |
9 | 11 | /** |
10 | 12 | * English |
11 | 13 | * |
Index: trunk/tools/ToolserverI18N/language/messages/Orphantalk2.i18n.php |
— | — | @@ -5,6 +5,8 @@ |
6 | 6 | * @toolowner krinkle |
7 | 7 | */ |
8 | 8 | |
| 9 | +$url = '~krinkle/OrphanTalk2/'; |
| 10 | + |
9 | 11 | /** |
10 | 12 | * English |
11 | 13 | * |
Index: trunk/tools/ToolserverI18N/language/messages/Jarry.i18n.php |
— | — | @@ -5,6 +5,8 @@ |
6 | 6 | * @toolowner jarry |
7 | 7 | */ |
8 | 8 | |
| 9 | +$url = '~jarry/'; |
| 10 | + |
9 | 11 | /** |
10 | 12 | * English |
11 | 13 | * |
Index: trunk/tools/ToolserverI18N/language/messages/Tsintuition.i18n.php |
— | — | @@ -5,6 +5,8 @@ |
6 | 6 | * @toolowner krinkle |
7 | 7 | */ |
8 | 8 | |
| 9 | +$url = '~krinkle/TsIntuition/'; |
| 10 | + |
9 | 11 | /** |
10 | 12 | * English |
11 | 13 | * |