Index: trunk/tools/ToolserverI18N/TsIntuition.php |
— | — | @@ -29,8 +29,11 @@ |
30 | 30 | |
31 | 31 | private $localBaseDir = __DIR__; // to be moved to p_i18n |
32 | 32 | |
33 | | - private $registeredTextdomains; |
| 33 | + public $registeredTextdomains; |
34 | 34 | |
| 35 | + // Address to the dashboard home. Should end with a slash or .extension |
| 36 | + public $dashboardHome = 'http://toolserver.org/~krinkle/TsIntuition/'; |
| 37 | + |
35 | 38 | // Construct options |
36 | 39 | private $currentTextdomain; |
37 | 40 | private $currentLanguage; |
— | — | @@ -74,9 +77,6 @@ |
75 | 78 | // These variable names will be extracted from the message files |
76 | 79 | private $includeVariables = array( 'messages', 'url' ); |
77 | 80 | |
78 | | - // Address to the dashboard home. Should end with a slash or .extension |
79 | | - private $dashboardHome = 'http://toolserver.org/~krinkle/TsIntuition/'; |
80 | | - |
81 | 81 | // Redirect address and status |
82 | 82 | private $redirectTo = null; |
83 | 83 | |
— | — | @@ -169,6 +169,10 @@ |
170 | 170 | // Initialize language choise |
171 | 171 | $this->initLangSelect( $options['lang'] ); |
172 | 172 | |
| 173 | + if ( function_exists( 'TsIntuition_inithook' ) ) { |
| 174 | + TsIntuition_inithook( $this ); |
| 175 | + } |
| 176 | + |
173 | 177 | } |
174 | 178 | |
175 | 179 | |
Index: trunk/tools/ToolserverI18N/ToolStart.php |
— | — | @@ -13,6 +13,12 @@ |
14 | 14 | // This is a valid entry, define true |
15 | 15 | define( 'TS_INTUITION', __DIR__ ); |
16 | 16 | |
| 17 | +// Local override |
| 18 | +if ( file_exists( __DIR__ . '/LocalConfig.php' ) ) { |
| 19 | + include_once( __DIR__ . '/LocalConfig.php' ); |
| 20 | +} |
| 21 | + |
| 22 | + |
17 | 23 | // Files |
18 | 24 | require_once( __DIR__ . '/TsIntuitionUtil.php' ); |
19 | 25 | require_once( __DIR__ . '/TsIntuition.php' ); |