mediawiki-extensions-Parser.../ParserFunctions.i18n.magic.php
Happy-melon 7ec54c6cfc Follow-up r81074 CR:
* Use autoloader for ConvertParser, and ExprParser which the code was cloned from
* Fix PHP 5.1 compatibility, while there's no requirement for us to keep it, there's also no need to break it unnecessarily, and it's a really trivial fix in this case.
* Tidy whitespace
* Use ConvertDimension::getLocalisedName() for the dimensionmismatch error, as intended
2011-01-27 17:34:37 +00:00

438 lines
16 KiB
PHP
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
$magicWords = array();
/**
* English
*/
$magicWords = array();
/** English (English) */
$magicWords['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' ),
'convert' => array( 0, 'convert' ),
'sourceunit' => array( 0, '#sourceunit' ),
'targetunit' => array( 0, '#targetunit' ),
'linkunit' => array( 0, '#linkunit' ),
'decimalplaces' => array( 0, '#dp' ),
'significantfigures' => array( 0, '#sf' ),
'abbreviate' => array( 0, '#abbreviate' ),
'len' => array( 0, 'len' ),
'pos' => array( 0, 'pos' ),
'rpos' => array( 0, 'rpos' ),
'sub' => array( 0, 'sub' ),
'count' => array( 0, 'count' ),
'replace' => array( 0, 'replace' ),
'explode' => array( 0, 'explode' ),
'urldecode' => array( 0, 'urldecode' ),
);
/** Arabic (العربية) */
$magicWords['ar'] = 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' ),
'len' => array( 0, 'لين', 'len' ),
'pos' => array( 0, 'بوس', 'pos' ),
'rpos' => array( 0, 'آربوس', 'rpos' ),
'sub' => array( 0, 'متفرع', 'sub' ),
'count' => array( 0, 'عدد', 'count' ),
'replace' => array( 0, 'استبدال', 'replace' ),
'explode' => array( 0, 'انفجار', 'explode' ),
'urldecode' => array( 0, 'فك_مسار', 'urldecode' ),
);
/** Egyptian Spoken Arabic (مصرى) */
$magicWords['arz'] = 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' ),
'len' => array( 0, 'لين', 'len' ),
'pos' => array( 0, 'بوس', 'pos' ),
'rpos' => array( 0, 'آربوس', 'rpos' ),
'sub' => array( 0, 'متفرع', 'sub' ),
'count' => array( 0, 'عدد', 'count' ),
'replace' => array( 0, 'استبدال', 'replace' ),
'explode' => array( 0, 'انفجار', 'explode' ),
);
/** Chechen (Нохчийн) */
$magicWords['ce'] = array(
'time' => array( 0, 'хан', 'time' ),
'replace' => array( 0, 'хийцарна', 'замена', 'replace' ),
);
/** Czech (Česky) */
$magicWords['cs'] = array(
'expr' => array( 0, 'výraz', 'expr' ),
'if' => array( 0, 'když', 'if' ),
'ifexist' => array( 0, 'kdyžexist', 'ifexist' ),
'time' => array( 0, 'čas', 'time' ),
'len' => array( 0, 'délka', 'len' ),
'count' => array( 0, 'počet', 'count' ),
'replace' => array( 0, 'nahradit', 'replace' ),
);
/** Esperanto (Esperanto) */
$magicWords['eo'] = array(
'expr' => array( 0, 'espr', 'esprimo' ),
'if' => array( 0, 'se' ),
'ifeq' => array( 0, 'seekv', 'seekvacio' ),
'ifexpr' => array( 0, 'seespr', 'seeksprimo' ),
'iferror' => array( 0, 'seeraras' ),
'switch' => array( 0, 'ŝaltu', 'ŝalti', 'sxaltu', 'sxalti' ),
'default' => array( 0, '#defaŭlte', '#defauxlte' ),
'ifexist' => array( 0, 'seekzistas' ),
'time' => array( 0, 'tempo' ),
'timel' => array( 0, 'tempoo' ),
);
/** Spanish (Español) */
$magicWords['es'] = array(
'if' => array( 0, 'si', 'if' ),
'ifexpr' => array( 0, 'siexpr', 'ifexpr' ),
'iferror' => array( 0, 'sierror', 'iferror' ),
'switch' => array( 0, 'según', 'switch' ),
'ifexist' => array( 0, 'siexiste', 'ifexist' ),
'time' => array( 0, 'tiempo', 'time' ),
'len' => array( 0, 'long', 'longitud', 'len' ),
'replace' => array( 0, 'reemplazar', 'replace' ),
'explode' => array( 0, 'separar', 'explode' ),
);
/** Persian (فارسی) */
$magicWords['fa'] = array(
'expr' => array( 0, 'حساب' ),
'if' => array( 0, 'اگر' ),
'ifeq' => array( 0, 'اگرمساوی' ),
'ifexpr' => array( 0, 'اگرحساب' ),
'iferror' => array( 0, 'اگرخطا' ),
'switch' => array( 0, 'گزینه' ),
'default' => array( 0, '#پیش‌فرض' ),
'ifexist' => array( 0, 'اگرموجود' ),
'time' => array( 0, 'زمان' ),
'timel' => array( 0, 'زمان‌بلند' ),
'rel2abs' => array( 0, 'نسبی‌به‌مطلق' ),
'titleparts' => array( 0, 'پاره‌عنوان' ),
'len' => array( 0, 'طول' ),
'pos' => array( 0, 'جا' ),
'rpos' => array( 0, 'جار' ),
'sub' => array( 0, 'تکه' ),
'count' => array( 0, 'شمار' ),
'replace' => array( 0, 'جایگزین' ),
'explode' => array( 0, 'گسترش' ),
'urldecode' => array( 0, 'نشانی‌بی‌کد' ),
);
/** Hebrew (עברית) */
$magicWords['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' ),
);
/** Hungarian (Magyar) */
$magicWords['hu'] = array(
'expr' => array( 0, 'kif', 'expr' ),
'if' => array( 0, 'ha', 'if' ),
'ifeq' => array( 0, 'haegyenlő', 'ifeq' ),
'ifexpr' => array( 0, 'hakif', 'ifexpr' ),
'iferror' => array( 0, 'hahibás', 'iferror' ),
'default' => array( 0, '#alapértelmezett', '#default' ),
'ifexist' => array( 0, 'halétezik', 'ifexist' ),
'time' => array( 0, 'idő', 'time' ),
'len' => array( 0, 'hossz', 'len' ),
'pos' => array( 0, 'pozíció', 'pos' ),
'rpos' => array( 0, 'jpozíció', 'rpos' ),
);
/** Indonesian (Bahasa Indonesia) */
$magicWords['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' ),
'titleparts' => array( 0, 'bagianjudul', 'titleparts' ),
);
/** Igbo (Igbo) */
$magicWords['ig'] = array(
'if' => array( 0, 'ȯ_bú', 'if' ),
'time' => array( 0, 'ógè', 'time' ),
'timel' => array( 0, 'ógèl', 'timel' ),
);
/** Italian (Italiano) */
$magicWords['it'] = array(
'ifexist' => array( 0, 'ifexists' ),
);
/** Japanese (日本語) */
$magicWords['ja'] = array(
'expr' => array( 0, '式' ),
'if' => array( 0, 'もし' ),
'ifeq' => array( 0, 'もし等しい' ),
'ifexpr' => array( 0, 'もし式' ),
'iferror' => array( 0, 'もしエラー' ),
'switch' => array( 0, '切り替え' ),
'default' => array( 0, '#既定' ),
'ifexist' => array( 0, 'もし存在' ),
'time' => array( 0, '時間' ),
'timel' => array( 0, '時間地方' ),
'rel2abs' => array( 0, '参照から絶対' ),
'titleparts' => array( 0, 'タイトル部分' ),
'len' => array( 0, '長さ' ),
'pos' => array( 0, '位置' ),
'rpos' => array( 0, '最後の位置' ),
'sub' => array( 0, '切り取り' ),
'count' => array( 0, '回数' ),
'replace' => array( 0, '置き換え' ),
'explode' => array( 0, '分割' ),
'urldecode' => array( 0, 'URLデコード' ),
);
/** Korean (한국어) */
$magicWords['ko'] = array(
'expr' => array( 0, '수식' ),
'switch' => array( 0, '스위치' ),
'default' => array( 0, '#기본값' ),
'time' => array( 0, '시간' ),
'timel' => array( 0, '지역시간' ),
'len' => array( 0, '길이' ),
'count' => array( 0, '개수' ),
'replace' => array( 0, '교체' ),
'explode' => array( 0, '분리' ),
'urldecode' => array( 0, '주소디코딩:' ),
);
/** Ladino (Ladino) */
$magicWords['lad'] = array(
'switch' => array( 0, 'asegún', 'según', 'switch' ),
);
/** Malagasy (Malagasy) */
$magicWords['mg'] = array(
'if' => array( 0, 'raha', 'if' ),
'ifeq' => array( 0, 'rahamitovy', 'ifeq' ),
'ifexpr' => array( 0, 'rahamarina', 'ifexpr' ),
'iferror' => array( 0, 'rahadiso', 'iferror' ),
'default' => array( 0, '#tsipalotra', '#default' ),
'ifexist' => array( 0, 'rahamisy', 'ifexist' ),
'time' => array( 0, 'lera', 'time' ),
);
/** Malayalam (മലയാളം) */
$magicWords['ml'] = array(
'if' => array( 0, 'എങ്കിൽ' ),
'ifeq' => array( 0, 'സമെമെങ്കിൽ' ),
'ifexpr' => array( 0, 'എക്സ്പ്രെഷനെങ്കിൽ' ),
'iferror' => array( 0, 'പിഴവെങ്കിൽ' ),
'switch' => array( 0, 'മാറ്റുക' ),
'default' => array( 0, '#സ്വതവേ' ),
'ifexist' => array( 0, 'ഉണ്ടെങ്കിൽ' ),
'time' => array( 0, 'സമയം' ),
'timel' => array( 0, 'സമയം|' ),
'sub' => array( 0, 'ഉപം' ),
'count' => array( 0, 'എണ്ണുക' ),
'replace' => array( 0, 'മാറ്റിച്ചേർക്കുക' ),
'explode' => array( 0, 'വിസ്ഫോടനം' ),
);
/** Marathi (मराठी) */
$magicWords['mr'] = 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' ),
'titleparts' => array( 0, 'शीर्षकखंड', 'टाइटलपार्ट्स', 'titleparts' ),
'len' => array( 0, 'लांबी', 'len' ),
'pos' => array( 0, 'स्थशोध', 'pos' ),
'rpos' => array( 0, 'माग्चास्थशोध', 'rpos' ),
'sub' => array( 0, 'उप', 'sub' ),
'count' => array( 0, 'मोज', 'मोजा', 'count' ),
'replace' => array( 0, 'नेबदल', 'रिप्लेस', 'replace' ),
'explode' => array( 0, 'एकफोड', 'explode' ),
);
/** Nedersaksisch (Nedersaksisch) */
$magicWords['nds-nl'] = array(
'if' => array( 0, 'as', 'als', 'if' ),
'ifeq' => array( 0, 'asgelieke', 'alsgelijk', 'ifeq' ),
'ifexpr' => array( 0, 'asexpressie', 'alsexpressie', 'ifexpr' ),
'iferror' => array( 0, 'asfout', 'alsfout', 'iferror' ),
'default' => array( 0, '#standard', '#standaard', '#default' ),
'ifexist' => array( 0, 'asbesteet', 'alsbestaat', 'ifexist' ),
'time' => array( 0, 'tied', 'tijd', 'time' ),
'timel' => array( 0, 'tiedl', 'tijdl', 'timel' ),
'rel2abs' => array( 0, 'relatiefnaorabseluut', 'relatiefnaarabsoluut', 'rel2abs' ),
);
/** Dutch (Nederlands) */
$magicWords['nl'] = array(
'expr' => array( 0, 'expressie' ),
'if' => array( 0, 'als' ),
'ifeq' => array( 0, 'alsgelijk' ),
'ifexpr' => array( 0, 'alsexpressie' ),
'iferror' => array( 0, 'alsfout' ),
'switch' => array( 0, 'schakelen' ),
'default' => array( 0, '#standaard' ),
'ifexist' => array( 0, 'alsbestaat' ),
'time' => array( 0, 'tijd' ),
'timel' => array( 0, 'tijdl' ),
'rel2abs' => array( 0, 'relatiefnaarabsoluut' ),
'titleparts' => array( 0, 'paginanaamdelen' ),
'count' => array( 0, 'telling' ),
'replace' => array( 0, 'vervangen' ),
'explode' => array( 0, 'exploderen' ),
);
/** Norwegian Nynorsk (Norsk (nynorsk)) */
$magicWords['nn'] = array(
'expr' => array( 0, 'uttrykk', 'expr' ),
'if' => array( 0, 'om', 'if' ),
'ifeq' => array( 0, 'omlik', 'ifeq' ),
'ifexpr' => array( 0, 'omuttrykk', 'ifexpr' ),
'iferror' => array( 0, 'omfeil', 'iferror' ),
'switch' => array( 0, 'byt', 'switch' ),
'ifexist' => array( 0, 'omfinst', 'ifexist' ),
'time' => array( 0, 'tid', 'time' ),
'timel' => array( 0, 'tidl', 'timel' ),
'rel2abs' => array( 0, 'reltilabs', 'rel2abs' ),
'titleparts' => array( 0, 'titteldelar', 'titleparts' ),
'len' => array( 0, 'lengd', 'len' ),
'replace' => array( 0, 'erstatt', 'replace' ),
);
/** Pashto (پښتو) */
$magicWords['ps'] = array(
'if' => array( 0, 'که', 'if' ),
'time' => array( 0, 'وخت', 'time' ),
'count' => array( 0, 'شمېرل', 'count' ),
);
/** Portuguese (Português) */
$magicWords['pt'] = array(
'if' => array( 0, 'se', 'if' ),
'ifeq' => array( 0, 'seigual', 'ifeq' ),
'ifexpr' => array( 0, 'seexpr', 'ifexpr' ),
'iferror' => array( 0, 'seerro', 'iferror' ),
'default' => array( 0, '#padrão', '#padrao', '#default' ),
'ifexist' => array( 0, 'seexiste', 'ifexist' ),
'titleparts' => array( 0, 'partesdotítulo', 'partesdotitulo', 'titleparts' ),
'len' => array( 0, 'comprimento', 'len' ),
);
/** Russian (Русский) */
$magicWords['ru'] = array(
'replace' => array( 0, 'замена', 'replace' ),
);
/** Swedish (Svenska) */
$magicWords['sv'] = array(
'expr' => array( 0, 'utr', 'expr' ),
'if' => array( 0, 'om', 'if' ),
'ifeq' => array( 0, 'omlika', 'ifeq' ),
'ifexpr' => array( 0, 'omutr', 'ifexpr' ),
'iferror' => array( 0, 'omfel', 'iferror' ),
'switch' => array( 0, 'växel', 'switch' ),
'default' => array( 0, '#standard', '#default' ),
'ifexist' => array( 0, 'omfinns', 'ifexist' ),
'time' => array( 0, 'tid', 'time' ),
'timel' => array( 0, 'tidl', 'timel' ),
'replace' => array( 0, 'ersätt', 'replace' ),
'explode' => array( 0, 'explodera', 'explode' ),
);
/** Tamil (தமிழ்) */
$magicWords['ta'] = array(
'count' => array( 0, 'எண்ணிக்கை' ),
);
/** Turkish (Türkçe) */
$magicWords['tr'] = array(
'expr' => array( 0, 'işlem', 'expr' ),
'if' => array( 0, 'eğer', 'if' ),
'switch' => array( 0, 'değiştir', 'switch' ),
'default' => array( 0, '#vas', '#default' ),
);
/** Ukrainian (Українська) */
$magicWords['uk'] = 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' ),
);
/** Vietnamese (Tiếng Việt) */
$magicWords['vi'] = array(
'expr' => array( 0, 'côngthức' ),
);
/** Yiddish (ייִדיש) */
$magicWords['yi'] = array(
'expr' => array( 0, 'רעכן', 'חשב' ),
'if' => array( 0, 'תנאי' ),
'ifeq' => array( 0, 'גלייך', 'שווה' ),
'ifexpr' => array( 0, 'אויברעכן', 'חשב_תנאי' ),
'switch' => array( 0, 'קלייב', 'בחר' ),
'default' => array( 0, '#גרונט', '#ברירת_מחדל' ),
'ifexist' => array( 0, 'עקזיסט', 'קיים' ),
'time' => array( 0, 'צייט', 'זמן' ),
'timel' => array( 0, 'צייטל', 'זמןמ' ),
);