Index: trunk/extensions/LiquidThreads/i18n/Lqt.i18n.php |
— | — | @@ -5,10 +5,12 @@ |
6 | 6 | * @package MediaWiki |
7 | 7 | * @addtogroup Extensions |
8 | 8 | * @subpackage LiquidThreads |
9 | | - * @author David McCabe <davemccabe@gmail.com> / I18n file by Erik Moeller and Siebrand Mazeland |
| 9 | + * @author David McCabe <davemccabe@gmail.com> / i18n file by Erik Moeller and Siebrand Mazeland |
10 | 10 | * @licence GPL2 |
11 | 11 | */ |
12 | 12 | |
| 13 | +require_once( dirname(__FILE__) . '/LiquidThreads.magic.php' ); |
| 14 | + |
13 | 15 | $messages = array(); |
14 | 16 | |
15 | 17 | $messages['en'] = array( |
Index: trunk/extensions/LiquidThreads/i18n/LiquidThreads.magic.php |
— | — | @@ -1,20 +1,7 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | | -class LiquidThreadsMagicWords { |
5 | | - static function getMagicWords( &$magicWords, $lang ) { |
6 | | - $words = array(); |
7 | | - |
8 | | - /** |
9 | | - * English |
10 | | - */ |
11 | | - $words['en'] = array( |
12 | | - 'useliquidthreads' => array( 0, 'UseLiquidThreads' ), |
13 | | - ); |
14 | | - |
15 | | - $magicWords += ( $lang == 'en' || !isset( $words[$lang] ) ) |
16 | | - ? $words['en'] |
17 | | - : array_merge( $words['en'], $words[$lang] ); |
18 | | - |
19 | | - return true; |
20 | | - } |
21 | | -} |
| 4 | +$magicWords = array(); |
| 5 | + |
| 6 | +$magicWords['en'] = array( |
| 7 | + 'useliquidthreads' => array( 0, 'UseLiquidThreads' ), |
| 8 | +); |
Index: trunk/extensions/LiquidThreads/LiquidThreads.php |
— | — | @@ -68,9 +68,6 @@ |
69 | 69 | $wgHooks['XmlDumpWriterOpenPage'][] = 'LqtHooks::dumpThreadData'; |
70 | 70 | $wgHooks['ModifyExportQuery'][] = 'LqtHooks::modifyExportQuery'; |
71 | 71 | |
72 | | -// Magic words |
73 | | -$wgHooks['LanguageGetMagic'][] = 'LiquidThreadsMagicWords::getMagicWords'; |
74 | | - |
75 | 72 | // Deletion |
76 | 73 | $wgHooks['ArticleDeleteComplete'][] = 'LqtDeletionController::onArticleDeleteComplete'; |
77 | 74 | $wgHooks['ArticleRevisionUndeleted'][] = 'LqtDeletionController::onArticleRevisionUndeleted'; |
Index: trunk/extensions/Translate/groups/mediawiki-defines.txt |
— | — | @@ -521,6 +521,7 @@ |
522 | 522 | Liquid Threads |
523 | 523 | file = LiquidThreads/i18n/Lqt.i18n.php |
524 | 524 | aliasfile = LiquidThreads/i18n/Lqt.alias.php |
| 525 | +magicfile = LiquidThreads/i18n/LiquidThreads.magic.php |
525 | 526 | descmsg = lqt-desc |
526 | 527 | optional = lqt_rc_ellipsis |
527 | 528 | ignored = lqt_header_warning_before_big |