r22797 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22796‎ | r22797 | r22798 >
Date:13:38, 6 June 2007
Author:rotem
Status:old
Tags:
Comment:
Adding the new magic word also to fa (untranslated), whitespace.
Modified paths:
  • /trunk/extensions/ParserFunctions/ParserFunctions.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ParserFunctions/ParserFunctions.php
@@ -271,38 +271,39 @@
272272 function wfParserFunctionsLanguageGetMagic( &$magicWords, $langCode ) {
273273 switch ( $langCode ) {
274274 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' );
 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+ $magicWords['titleparts'] = array( 0, 'titleparts' ); # TODO: translate
284285 break;
285286 case 'he':
286 - $magicWords['expr'] = array( 0, 'חשב', 'expr' );
287 - $magicWords['if'] = array( 0, 'תנאי', 'if' );
288 - $magicWords['ifeq'] = array( 0, 'שווה', 'ifeq' );
289 - $magicWords['ifexpr'] = array( 0, 'חשב תנאי', 'ifexpr' );
290 - $magicWords['switch'] = array( 0, 'בחר', 'switch' );
291 - $magicWords['default'] = array( 0, '#ברירת מחדל', '#default' );
292 - $magicWords['ifexist'] = array( 0, 'קיים', 'ifexist' );
293 - $magicWords['time'] = array( 0, 'זמן', 'time' );
294 - $magicWords['rel2abs'] = array( 0, 'יחסי למוחלט', 'rel2abs' );
 287+ $magicWords['expr'] = array( 0, 'חשב', 'expr' );
 288+ $magicWords['if'] = array( 0, 'תנאי', 'if' );
 289+ $magicWords['ifeq'] = array( 0, 'שווה', 'ifeq' );
 290+ $magicWords['ifexpr'] = array( 0, 'חשב תנאי', 'ifexpr' );
 291+ $magicWords['switch'] = array( 0, 'בחר', 'switch' );
 292+ $magicWords['default'] = array( 0, '#ברירת מחדל', '#default' );
 293+ $magicWords['ifexist'] = array( 0, 'קיים', 'ifexist' );
 294+ $magicWords['time'] = array( 0, 'זמן', 'time' );
 295+ $magicWords['rel2abs'] = array( 0, 'יחסי למוחלט', 'rel2abs' );
295296 $magicWords['titleparts'] = array( 0, 'חלק בכותרת', 'titleparts' );
296297 break;
297298 default:
298 - $magicWords['expr'] = array( 0, 'expr' );
299 - $magicWords['if'] = array( 0, 'if' );
300 - $magicWords['ifeq'] = array( 0, 'ifeq' );
301 - $magicWords['ifexpr'] = array( 0, 'ifexpr' );
302 - $magicWords['switch'] = array( 0, 'switch' );
303 - $magicWords['default'] = array( 0, '#default' );
304 - $magicWords['ifexist'] = array( 0, 'ifexist' );
305 - $magicWords['time'] = array( 0, 'time' );
306 - $magicWords['rel2abs'] = array( 0, 'rel2abs' );
 299+ $magicWords['expr'] = array( 0, 'expr' );
 300+ $magicWords['if'] = array( 0, 'if' );
 301+ $magicWords['ifeq'] = array( 0, 'ifeq' );
 302+ $magicWords['ifexpr'] = array( 0, 'ifexpr' );
 303+ $magicWords['switch'] = array( 0, 'switch' );
 304+ $magicWords['default'] = array( 0, '#default' );
 305+ $magicWords['ifexist'] = array( 0, 'ifexist' );
 306+ $magicWords['time'] = array( 0, 'time' );
 307+ $magicWords['rel2abs'] = array( 0, 'rel2abs' );
307308 $magicWords['titleparts'] = array( 0, 'titleparts' );
308309 }
309310 return true;

Status & tagging log