r54113 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r54112‎ | r54113 | r54114 >
Date:18:29, 31 July 2009
Author:nikerabbit
Status:ok
Tags:
Comment:
Magic word localisation
Modified paths:
  • /trunk/extensions/I18nTags/I18nTags.i18n.php (modified) (history)
  • /trunk/extensions/I18nTags/I18nTags.magic.php (added) (history)
  • /trunk/extensions/I18nTags/I18nTags.php (modified) (history)

Diff [purge]

Index: trunk/extensions/I18nTags/I18nTags.i18n.php
@@ -1,10 +1,6 @@
22 <?php
3 -/* Internationnalization messages Files for
4 - I18nTags extension */
53
6 -$magicWords['en'] = array(
7 -'languagename' => array( 0, 'languagename' ),
8 -);
 4+require_once( dirname(__FILE__) . '/I18nTags.magic.php' );
95
106 $messages = array();
117
@@ -346,5 +342,4 @@
347343 */
348344 $messages['zh-hant'] = array(
349345 '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 @@
4040 $wgParser->setHook( 'grammar', array($class, 'grammar') );
4141 $wgParser->setHook( 'plural', array($class, 'plural') );
4242 $wgParser->setHook( 'linktrail', array($class, 'linktrail') );
43 - wfLoadExtensionMessages( 'I18nTags' );
 43+ wfLoadExtensionMessages( 'I18nTags' ); // FOR BC
4444 $wgParser->setFunctionHook( 'languagename', array($class, 'languageName' ) );
4545 return true;
4646 }

Status & tagging log