This file is indexed.

/usr/share/mediawiki-extensions/base/ParserFunctions/ParserFunctions.i18n.magic.php is in mediawiki-extensions-base 2.5.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
<?php

/**
 * Get translated magic words, if available
 *
 * @param string $lang Language code
 * @return array
 */
function efParserFunctionsWords( $lang ) {
	$words = array();

	/**
	 * English
	 */
	$words['en'] = array(
		'expr'       => array( 0, 'expr' ),
		'if'         => array( 0, 'if' ),
		'ifeq'       => array( 0, 'ifeq' ),
		'ifexpr'     => array( 0, 'ifexpr' ),
		'iferror'    => array( 0, 'iferror' ),
		'switch'     => array( 0, 'switch' ),
		'default'    => array( 0, '#default' ),
		'ifexist'    => array( 0, 'ifexist' ),
		'time'       => array( 0, 'time' ),
		'timel'      => array( 0, 'timel' ),
		'rel2abs'    => array( 0, 'rel2abs' ),
		'titleparts' => array( 0, 'titleparts' ),
	);

	/**
	 * Farsi-Persian
	 */
	$words['fa'] = array(
		'expr' 		 => array( 0, 'حساب',         'expr' ),
		'if' 		 => array( 0, 'اگر',          'if' ),
		'ifeq' 		 => array( 0, 'اگرمساوی',     'ifeq' ),
		'ifexpr' 	 => array( 0, 'اگرحساب',      'ifexpr' ),
		'iferror'    => array( 0, 'اگرخطا',       'iferror' ),
		'switch' 	 => array( 0, 'گزینه',        'switch' ),
		'default' 	 => array( 0, '#پیش‌فرض',      '#default' ),
		'ifexist' 	 => array( 0, 'اگرموجود',     'ifexist' ),
		'time' 		 => array( 0, 'زمان',         'time' ),
		'timel'      => array( 0, 'زمان‌بلند',     'timel' ),
		'rel2abs' 	 => array( 0, 'نسبی‌به‌مطلق',   'rel2abs' ),
		'titleparts' => array( 0, 'پاره‌عنوان',    'titleparts' ),
	);

	/**
	 * Hebrew
	 */
	$words['he'] = array(
		'expr'       => array( 0, 'חשב',         'expr' ),
		'if'         => array( 0, 'תנאי',        'if' ),
		'ifeq'       => array( 0, 'שווה',        'ifeq' ),
		'ifexpr'     => array( 0, 'חשב תנאי',    'ifexpr' ),
		'iferror'    => array( 0, 'תנאי שגיאה',  'iferror' ),
		'switch'     => array( 0, 'בחר',         'switch' ),
		'default'    => array( 0, '#ברירת מחדל', '#default' ),
		'ifexist'    => array( 0, 'קיים',        'ifexist' ),
		'time'       => array( 0, 'זמן',         'time' ),
		'timel'      => array( 0, 'זמןמ',        'timel' ),
		'rel2abs'    => array( 0, 'יחסי למוחלט', 'rel2abs' ),
		'titleparts' => array( 0, 'חלק בכותרת',  'titleparts' ),
	);

	/**
	 * Indonesian
	 */
	$words['id'] = array(
		'expr'       => array( 0, 'hitung',       'expr' ),
		'if'         => array( 0, 'jika',         'if' ),
		'ifeq'       => array( 0, 'jikasama',     'ifeq' ),
		'ifexpr'     => array( 0, 'jikahitung',   'ifexpr' ),
		'iferror'    => array( 0, 'jikasalah',   'iferror' ),
		'switch'     => array( 0, 'pilih',        'switch' ),
		'default'    => array( 0, '#baku',        '#default' ),
		'ifexist'    => array( 0, 'jikaada',      'ifexist' ),
		'time'       => array( 0, 'waktu',        'time' ),
		'timel'      => array( 0, 'waktu1',       'timel' ),
		'rel2abs'    => array( 0, 'rel2abs' ),
		'titleparts' => array( 0, 'bagianjudul',  'titleparts' ),
	);

	/**
	 * Yiddish
	 */
	$words['yi'] = array(
		'expr'       => array( 0, 'רעכן',    'expr' ),
		'if'         => array( 0, 'תנאי',    'if' ),
		'ifeq'       => array( 0, 'גלייך',   'ifeq' ),
		'ifexpr'     => array( 0, 'אויברעכן', 'ifexpr' ),
		'switch'     => array( 0, 'קלייב',   'switch' ),
		'default'    => array( 0, '#גרונט',  '#default' ),
		'ifexist'    => array( 0, 'עקזיסט',  'ifexist' ),
		'time'       => array( 0, 'צייט',    'time' ),
		'timel'      => array( 0, 'צייטל',   'timel' ),
	);

	# English is used as a fallback, and the English synonyms are
	# used if a translation has not been provided for a given word
	return ( $lang == 'en' || !isset( $words[$lang] ) )
		? $words['en']
		: array_merge( $words['en'], $words[$lang] );
}