Index: trunk/extensions/I18nTags/I18nTags.i18n.php |
— | — | @@ -1,10 +1,6 @@ |
2 | 2 | <?php |
3 | | -/* Internationnalization messages Files for |
4 | | - I18nTags extension */ |
5 | 3 | |
6 | | -$magicWords['en'] = array( |
7 | | -'languagename' => array( 0, 'languagename' ), |
8 | | -); |
| 4 | +require_once( dirname(__FILE__) . '/I18nTags.magic.php' ); |
9 | 5 | |
10 | 6 | $messages = array(); |
11 | 7 | |
— | — | @@ -346,5 +342,4 @@ |
347 | 343 | */ |
348 | 344 | $messages['zh-hant'] = array( |
349 | 345 | 'i18ntags-desc' => '提供存取任何語言的數字格式、文法和複數型等i18n相關資訊', |
350 | | -); |
351 | | - |
| 346 | +); |
\ No newline at end of file |
Index: trunk/extensions/I18nTags/I18nTags.magic.php |
— | — | @@ -0,0 +1,7 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +$magicWords = array(); |
| 5 | + |
| 6 | +$magicWords['en'] = array( |
| 7 | + 'languagename' => array( 0, 'languagename' ), |
| 8 | +); |
Index: trunk/extensions/I18nTags/I18nTags.php |
— | — | @@ -39,7 +39,7 @@ |
40 | 40 | $wgParser->setHook( 'grammar', array($class, 'grammar') ); |
41 | 41 | $wgParser->setHook( 'plural', array($class, 'plural') ); |
42 | 42 | $wgParser->setHook( 'linktrail', array($class, 'linktrail') ); |
43 | | - wfLoadExtensionMessages( 'I18nTags' ); |
| 43 | + wfLoadExtensionMessages( 'I18nTags' ); // FOR BC |
44 | 44 | $wgParser->setFunctionHook( 'languagename', array($class, 'languageName' ) ); |
45 | 45 | return true; |
46 | 46 | } |