r22750 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22749‎ | r22750 | r22751 >
Date:09:27, 5 June 2007
Author:raymond
Status:old
Tags:
Comment:
(bug 10144) Adding Farsi translation for magic words
Modified paths:
  • /trunk/extensions/ParserFunctions/ParserFunctions.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ParserFunctions/ParserFunctions.php
@@ -270,6 +270,17 @@
271271
272272 function wfParserFunctionsLanguageGetMagic( &$magicWords, $langCode ) {
273273 switch ( $langCode ) {
 274+ case 'fa':
 275+ $magicWords['expr'] = array( 0, 'حساب', 'expr' );
 276+ $magicWords['if'] = array( 0, 'اگر', 'if' );
 277+ $magicWords['ifeq'] = array( 0, 'اگرمساوی', 'ifeq' );
 278+ $magicWords['ifexpr'] = array( 0, 'اگرحساب', 'ifexpr' );
 279+ $magicWords['switch'] = array( 0, 'گزینه', 'switch' );
 280+ $magicWords['default'] = array( 0, '#پیش‌فرض', '#default' );
 281+ $magicWords['ifexist'] = array( 0, 'اگرموجود', 'ifexist' );
 282+ $magicWords['time'] = array( 0, 'زمان', 'time' );
 283+ $magicWords['rel2abs'] = array( 0, 'نسبی‌به‌مطلق', 'rel2abs' );
 284+ break;
274285 case 'he':
275286 $magicWords['expr'] = array( 0, 'חשב', 'expr' );
276287 $magicWords['if'] = array( 0, 'תנאי', 'if' );

Status & tagging log