From a4edbfa031eb4cd72678051f1510afde4f77951e Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Fri, 28 Feb 2014 08:36:29 +0100 Subject: Update to MediaWiki 1.22.3 --- .../ParserFunctions/ParserFunctions.i18n.magic.php | 95 +++++++++++++-------- .../ParserFunctions/ParserFunctions.i18n.php | 97 ++++++++++++++++++++-- extensions/ParserFunctions/ParserFunctions.php | 12 ++- .../ParserFunctions/ParserFunctions_body.php | 2 +- 4 files changed, 162 insertions(+), 44 deletions(-) (limited to 'extensions/ParserFunctions') diff --git a/extensions/ParserFunctions/ParserFunctions.i18n.magic.php b/extensions/ParserFunctions/ParserFunctions.i18n.magic.php index 5d26cb71..e92ffe12 100644 --- a/extensions/ParserFunctions/ParserFunctions.i18n.magic.php +++ b/extensions/ParserFunctions/ParserFunctions.i18n.magic.php @@ -58,25 +58,26 @@ $magicWords['ar'] = array( /** 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' ), + '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, 'فك_مسار' ), ); /** South Azerbaijani (تورکجه) */ @@ -100,7 +101,7 @@ $magicWords['ce'] = array( 'replace' => array( 0, 'хийцарна', 'замена' ), ); -/** Czech (česky) */ +/** Czech (čeština) */ $magicWords['cs'] = array( 'expr' => array( 0, 'výraz' ), 'if' => array( 0, 'když' ), @@ -122,8 +123,15 @@ $magicWords['de'] = array( /** Zazaki (Zazaki) */ $magicWords['diq'] = array( + 'expr' => array( 0, 'ifade' ), 'if' => array( 0, 'se' ), 'ifeq' => array( 0, 'sek' ), + 'ifexpr' => array( 0, 'ifadeyose' ), + 'iferror' => array( 0, 'çınyose' ), + 'time' => array( 0, 'zeman' ), + 'sub' => array( 0, 'bın' ), + 'count' => array( 0, 'hesabk' ), + 'replace' => array( 0, 'vırnayen' ), ); /** Esperanto (Esperanto) */ @@ -145,12 +153,14 @@ $magicWords['eo'] = array( /** Spanish (español) */ $magicWords['es'] = array( 'if' => array( 0, 'si' ), + 'ifeq' => array( 0, 'siigual' ), 'ifexpr' => array( 0, 'siexpr' ), 'iferror' => array( 0, 'sierror' ), 'switch' => array( 0, 'según' ), 'default' => array( 0, '#predeterminado' ), 'ifexist' => array( 0, 'siexiste' ), 'time' => array( 0, 'tiempo' ), + 'timel' => array( 0, 'tiempol' ), 'len' => array( 0, 'long', 'longitud' ), 'replace' => array( 0, 'reemplazar' ), 'explode' => array( 0, 'separar' ), @@ -293,7 +303,7 @@ $magicWords['ja'] = array( 'count' => array( 0, '回数' ), 'replace' => array( 0, '置き換え' ), 'explode' => array( 0, '分割' ), - 'urldecode' => array( 0, 'URLデコード' ), + 'urldecode' => array( 0, 'URLデコード', 'URLデコード' ), ); /** Korean (한국어) */ @@ -375,7 +385,7 @@ $magicWords['mk'] = array( $magicWords['ml'] = array( 'expr' => array( 0, 'ദ്യോതകം' ), 'if' => array( 0, 'എങ്കിൽ' ), - 'ifeq' => array( 0, 'സമെമെങ്കിൽ' ), + 'ifeq' => array( 0, 'സമമെങ്കിൽ' ), 'ifexpr' => array( 0, 'എക്സ്പ്രെഷനെങ്കിൽ' ), 'iferror' => array( 0, 'പിഴവെങ്കിൽ' ), 'switch' => array( 0, 'മാറ്റുക' ), @@ -580,22 +590,22 @@ $magicWords['uz'] = array( /** Vietnamese (Tiếng Việt) */ $magicWords['vi'] = array( - 'expr' => array( 0, 'côngthức' ), + 'expr' => array( 0, 'công_thức', 'côngthức' ), 'if' => array( 0, 'nếu' ), - 'ifeq' => array( 0, 'nếubằng' ), - 'ifexpr' => array( 0, 'nếucôngthức' ), - 'iferror' => array( 0, 'nếulỗi' ), - 'default' => array( 0, '#mặcđịnh' ), - 'ifexist' => array( 0, 'nếutồntại' ), + 'ifeq' => array( 0, 'nếu_bằng', 'nếubằng' ), + 'ifexpr' => array( 0, 'nếu_công_thức', 'nếucôngthức' ), + 'iferror' => array( 0, 'nếu_lỗi', 'nếulỗi' ), + 'default' => array( 0, '#mặc_định', '#mặcđịnh' ), + 'ifexist' => array( 0, 'nếu_tồn_tại', 'nếutồntại' ), 'time' => array( 0, 'giờ' ), - 'timel' => array( 0, 'giờđịaphương' ), - 'len' => array( 0, 'sốchữ', 'sốkýtự', 'sốkítự' ), - 'pos' => array( 0, 'vịtrí' ), - 'rpos' => array( 0, 'vịtríphải' ), - 'sub' => array( 0, 'chuỗicon' ), + 'timel' => array( 0, 'giờ_địa_phương', 'giờđịaphương' ), + 'len' => array( 0, 'số_chữ', 'sốchữ', 'số_ký_tự', 'sốkýtự', 'số_kí_tự', 'sốkítự' ), + 'pos' => array( 0, 'vị_trí', 'vịtrí' ), + 'rpos' => array( 0, 'vị_trí_phải', 'vịtríphải' ), + 'sub' => array( 0, 'chuỗi_con', 'chuỗicon' ), 'count' => array( 0, 'số' ), - 'replace' => array( 0, 'thaythế' ), - 'urldecode' => array( 0, 'giảimãurl' ), + 'replace' => array( 0, 'thay_thế', 'thaythế' ), + 'urldecode' => array( 0, 'giải_mã_url', 'giảimãurl' ), ); /** Yiddish (ייִדיש) */ @@ -632,7 +642,22 @@ $magicWords['zh'] = array( /** Simplified Chinese (中文(简体)‎) */ $magicWords['zh-hans'] = array( + 'if' => array( 0, '若' ), 'ifeq' => array( 0, '若相等', '如果相等' ), + 'iferror' => array( 0, '如果错误' ), + 'switch' => array( 0, '开关' ), 'default' => array( 0, '#默认' ), 'ifexist' => array( 0, '若有', '如果存在' ), + 'time' => array( 0, '时间' ), + 'pos' => array( 0, '终端' ), + 'rpos' => array( 0, '反终端' ), + 'sub' => array( 0, 'PF子' ), + 'count' => array( 0, '计数' ), +); + +/** Traditional Chinese (中文(繁體)‎) */ +$magicWords['zh-hant'] = array( + 'if' => array( 0, '若' ), + 'time' => array( 0, '時間' ), + 'timel' => array( 0, '時間L' ), ); \ No newline at end of file diff --git a/extensions/ParserFunctions/ParserFunctions.i18n.php b/extensions/ParserFunctions/ParserFunctions.i18n.php index e026b693..f61310b2 100644 --- a/extensions/ParserFunctions/ParserFunctions.i18n.php +++ b/extensions/ParserFunctions/ParserFunctions.i18n.php @@ -177,6 +177,7 @@ $messages['an'] = array( /** Arabic (العربية) * @author Aiman titi + * @author Asaifm * @author Meno25 */ $messages['ar'] = array( @@ -184,6 +185,7 @@ $messages['ar'] = array( 'pfunc_time_error' => 'خطأ: زمن غير صحيح', 'pfunc_time_too_long' => 'خطأ: استدعاءات #time كثيرة جدا', 'pfunc_time_too_big' => 'خطأ : # الوقت يدعم فقط حتى 9999 سنة', + 'pfunc_time_too_small' => 'خطأ: #time تدعم الأعوام بدءاً من 0.', 'pfunc_rel2abs_invalid_depth' => 'خطأ: عمق غير صحيح في المسار: "$1" (حاول دخول عقدة فوق العقدة الجذرية)', 'pfunc_expr_stack_exhausted' => 'خطأ في التعبير: ستاك مجهد', 'pfunc_expr_unexpected_number' => 'خطأ في التعبير: رقم غير متوقع', @@ -237,6 +239,7 @@ $messages['arz'] = array( /** Assamese (অসমীয়া) * @author Bishnu Saikia + * @author Gitartha.bordoloi * @author Rajuonline */ $messages['as'] = array( @@ -254,7 +257,7 @@ $messages['as'] = array( 'pfunc_expr_unexpected_closing_bracket' => 'এক্সপ্ৰেছন ত্ৰুটী: অবাঞ্চিত সমাপ্তকাৰী বন্ধনী', 'pfunc_expr_unrecognised_punctuation' => 'এক্সপ্ৰেছন ত্ৰুটী: অপৰিচিত বিৰামচিহ্ন কেৰেক্টাৰ "$1"', 'pfunc_expr_unclosed_bracket' => 'এক্সপ্ৰেছন ত্ৰুটী: উন্মুক্ত বন্ধনী', - 'pfunc_expr_division_by_zero' => 'শূন্যৰ দ্বাৰা হৰণ কৰা হৈছে', + 'pfunc_expr_division_by_zero' => 'শূন্যৰে হৰণ কৰা হৈছে।', 'pfunc_expr_invalid_argument' => '$1 ৰ বাবে ভুল চৰ্ত: < -1 অথবা > 1', 'pfunc_expr_invalid_argument_ln' => 'ln ৰ বাবে অমান্য চৰ্ত: <= 0', 'pfunc_expr_unknown_error' => 'এক্সপ্ৰেছন ত্ৰুটী: : অজ্ঞাত ত্ৰুটী ($1)', @@ -545,14 +548,16 @@ $messages['ca'] = array( * @author Умар */ $messages['ce'] = array( + 'pfunc_desc' => 'Дика тайина маьӀнийн функцешца анализатор', 'pfunc_time_error' => 'Гlалато: хан нийса яц', 'pfunc_expr_stack_exhausted' => 'Яздарехь гlалат ду: хьаладуьззина татол', 'pfunc_expr_unrecognised_word' => 'Яздарехь гlалат ду: дойзуш доцу дош «$1»', - 'pfunc_expr_unexpected_operator' => 'Дешнийн гӀалам : ца хаа оператор $1', + 'pfunc_expr_unexpected_operator' => 'Дешнийн гӀалат: ца хаа оператор $1', 'pfunc_expr_unrecognised_punctuation' => 'Дешнашан гӀалат: евзина йоцу пунктуацин символ «$1»', + 'pfunc_expr_unknown_error' => 'Дешнийн гӀалат: ца хаа гӀалат ($1)', ); -/** Czech (česky) +/** Czech (čeština) * @author Danny B. * @author Li-sung * @author Matěj Grabovský @@ -564,6 +569,7 @@ $messages['cs'] = array( 'pfunc_time_error' => 'Chyba: neplatný čas', 'pfunc_time_too_long' => 'Chyba: příliš mnoho volání #time', 'pfunc_time_too_big' => 'Chyba: #time nepodporuje roky nad 9999', + 'pfunc_time_too_small' => 'Chyba: #time nepodporuje roky menší než 0.', 'pfunc_rel2abs_invalid_depth' => 'Chyba: Neplatná hloubka v cestě: "$1" (pokus o přístup do uzlu vyššího než kořen)', 'pfunc_expr_stack_exhausted' => 'Chyba ve výrazu: Zásobník plně obsazen', 'pfunc_expr_unexpected_number' => 'Chyba ve výrazu: Očekáváno číslo', @@ -631,12 +637,13 @@ $messages['da'] = array( * @author Kghbln * @author LWChris * @author Metalhead64 + * @author Purodha * @author Raimond Spekking * @author Rentenirer * @author Rillke */ $messages['de'] = array( - 'pfunc_desc' => 'Ergänzt den Parser um logische Funktionen', + 'pfunc_desc' => 'Erweitert den Parser um logische Funktionen', 'pfunc_time_error' => 'Fehler: Ungültige Zeitangabe', 'pfunc_time_too_long' => 'Fehler: Zu viele #time-Aufrufe', 'pfunc_time_too_big' => 'Fehler: #time unterstützt nur Jahre bis 9999', @@ -702,6 +709,8 @@ $messages['dsb'] = array( 'pfunc_desc' => 'Rozšyrja parser wó logiske funkcije', 'pfunc_time_error' => 'Zmólka: njepłaśiwy cas', 'pfunc_time_too_long' => 'Zmólka: pśewjele zawołanjow #time', + 'pfunc_time_too_big' => 'Zmólka: #time pódpěra jano lěta až do 9999.', + 'pfunc_time_too_small' => 'Zmólka: #time pódpěra jano lěta wót 0.', 'pfunc_rel2abs_invalid_depth' => 'Zmólka: Njepłaśiwy dłym w sćažce: "$1" (wopyt na suk pśistup měś, kótaryž jo wušej kórjenjowego suka)', 'pfunc_expr_stack_exhausted' => 'Wurazowa zmólka: Stack wupócerany', 'pfunc_expr_unexpected_number' => 'Wurazowa zmólka: Njewócakana licba', @@ -823,7 +832,10 @@ $messages['et'] = array( 'pfunc_time_error' => 'Tõrge: Vigane aeg', 'pfunc_time_too_long' => 'Tõrge: Liiga palju #time-kutseid.', 'pfunc_time_too_big' => 'Tõrge: #time toetab vaid aastaid kuni väärtuseni 9999.', + 'pfunc_time_too_small' => 'Tõrge: #time toetab aastaid alates 0-st.', + 'pfunc_rel2abs_invalid_depth' => 'Tõrge: Vigane tee pikkus: "$1" (üritati pöörduda juursõlmest kõrgema sõlme poole).', 'pfunc_expr_unexpected_number' => 'Avaldistõrge: Ootamatu number', + 'pfunc_expr_preg_match_failure' => 'Avaldistõrge: preg_match nurjus ootamatult.', 'pfunc_expr_unrecognised_word' => 'Avaldistõrge: Tundmatu sõna "$1"', 'pfunc_expr_unexpected_operator' => 'Avaldistõrge: Ootamatu $1-tehtemärk', 'pfunc_expr_missing_operand' => 'Avaldistõrge: Puudub $1-tehte operand', @@ -1135,6 +1147,7 @@ $messages['hsb'] = array( 'pfunc_time_error' => 'Zmylk: njepłaćiwe časowe podaće', 'pfunc_time_too_long' => 'Zmylk: přewjele zawołanjow #time', 'pfunc_time_too_big' => 'Zmylk: #time jenož lěta hač do 9999 podpěruje.', + 'pfunc_time_too_small' => 'Zmylk: #time jenož lěta wot 0 podpěruje.', 'pfunc_rel2abs_invalid_depth' => 'Zmylk: Njepłaćiwa hłubokosć w pućiku: "$1" (Pospyt, zo by na suk wyše hłowneho suka dohrabnyło)', 'pfunc_expr_stack_exhausted' => 'Wurazowy zmylk: Staplowy skład wučerpany', 'pfunc_expr_unexpected_number' => 'Wurazowy zmylk: Njewočakowana ličba', @@ -1187,6 +1200,7 @@ $messages['ia'] = array( 'pfunc_time_error' => 'Error: tempore invalide', 'pfunc_time_too_long' => 'Error: troppo de appellos a #time', 'pfunc_time_too_big' => 'Error: #time supporta solmente annos usque a 9999', + 'pfunc_time_too_small' => 'Error: #time supporta solmente annos desde 0.', 'pfunc_rel2abs_invalid_depth' => 'Error: Profunditate invalide in cammino: "$1" (essayava acceder a un nodo superior al radice)', 'pfunc_expr_stack_exhausted' => 'Error in expression: Pila exhaurite', 'pfunc_expr_unexpected_number' => 'Error in expression: Numero non expectate', @@ -1233,6 +1247,33 @@ $messages['id'] = array( 'pfunc_string_too_long' => 'Kesalahan: String melebihi limit $1 karakter', ); +/** Iloko (Ilokano) + * @author Lam-ang + */ +$messages['ilo'] = array( + 'pfunc_desc' => 'Napasayaat a parser nga adda kadagiti lohikal nga annong', + 'pfunc_time_error' => 'Biddut: Imbalido nga oras.', + 'pfunc_time_too_long' => 'Biddut: Adu unay dagiti panagtawag ti #time.', + 'pfunc_time_too_big' => 'Biddut: Ti #time ket suportaranna laeng dagiti tawen aginggana iti 9999.', + 'pfunc_time_too_small' => 'Biddut: ti #time ket suportaranna laeng dagiti tawen manipud ti 0.', + 'pfunc_rel2abs_invalid_depth' => 'Biddut: Imbalido a kauneg iti dalan: "$1" (nagpadas a nangserrek ti nodo iti ngato ti ramut a nodo).', + 'pfunc_expr_stack_exhausted' => 'Biddut a panangiyebkas: Naibusen ti tuon.', + 'pfunc_expr_unexpected_number' => 'Biddut a panangiyebkas:Di nanamnama a bilang.', + 'pfunc_expr_preg_match_failure' => 'Biddut a panangiyebkas: Di nanamnama a pannakapaay ti preg_match.', + 'pfunc_expr_unrecognised_word' => 'Biddut a panangiyebkas: Di mabigbigan a balikas ti "$1".', + 'pfunc_expr_unexpected_operator' => 'Biddut a panangiyebkas: Di nanamnama nga operator ti $1.', + 'pfunc_expr_missing_operand' => 'Biddut a panangiyebkas: Napukaw nga operand para iti $1.', + 'pfunc_expr_unexpected_closing_bracket' => 'Biddut a panangiyebkas: Di nanamnama a pangrikep a braket.', + 'pfunc_expr_unrecognised_punctuation' => 'Biddut a panangiyebkas: Di nanamnama a karakter ti tuldek ti "$1".', + 'pfunc_expr_unclosed_bracket' => 'Biddut a panangiyebkas: Di narikpan a braket.', + 'pfunc_expr_division_by_zero' => 'Panagbingbingay babaen ti sero.', + 'pfunc_expr_invalid_argument' => 'Imbalido nga argumento para iti $1: < -1 wenno > 1.', + 'pfunc_expr_invalid_argument_ln' => 'Imbalido nga argumento para iti ln: <= 0.', + 'pfunc_expr_unknown_error' => 'Biddut a panangiyebkas: Di ammo a biddut ($1).', + 'pfunc_expr_not_a_number' => 'Iti $1: Ti resulta ket saan a bilang.', + 'pfunc_string_too_long' => 'Biddut: Ti kuerdas ket nasurokanna ti limitado ti karakter iti $1.', +); + /** Ido (Ido) * @author Malafaya */ @@ -1241,6 +1282,28 @@ $messages['io'] = array( 'pfunc_expr_division_by_zero' => 'Divido per zero', ); +/** Icelandic (íslenska) + * @author Snævar + */ +$messages['is'] = array( + 'pfunc_time_error' => 'Villa: Ógildur tími.', + 'pfunc_time_too_long' => 'Villa: Of mörg köll til #time.', + 'pfunc_time_too_big' => 'Villa: #time styður aðeins ár upp til 9999.', + 'pfunc_time_too_small' => 'Villa: #time styður aðeins ár frá 0.', + 'pfunc_expr_unexpected_number' => 'Villa í segð: Óvænt tala.', + 'pfunc_expr_unrecognised_word' => 'Villa í segð: Óþekkt orð „$1”.', + 'pfunc_expr_unexpected_operator' => 'Villa í segð: Óvæntur $1 virki.', + 'pfunc_expr_missing_operand' => 'Villa í segð: Vantar þolanda fyrir $1.', + 'pfunc_expr_unrecognised_punctuation' => 'Villa í segð: Óþekkt greinarmerki „$1”.', + 'pfunc_expr_unclosed_bracket' => 'Villa í segð: Ólokaður svigi.', + 'pfunc_expr_division_by_zero' => 'Deiling með núlli.', + 'pfunc_expr_invalid_argument' => 'Ógilt frumgildi fyrir $1: < -1 eða > 1.', + 'pfunc_expr_invalid_argument_ln' => 'Ógilt frumgildi fyrir ln: <= 0.', + 'pfunc_expr_unknown_error' => 'Villa í segð: Óþekkt villa ($1).', + 'pfunc_expr_not_a_number' => 'Niðurstaðan úr $1 er ekki tala.', + 'pfunc_string_too_long' => 'Villa: Strengurinn er lengri en hámarkslengdin $1 segir til um.', +); + /** Italian (italiano) * @author Beta16 * @author BrokenArrow @@ -1494,6 +1557,7 @@ $messages['lb'] = array( 'pfunc_time_error' => 'Feeler: ongëlteg Zäit', 'pfunc_time_too_long' => 'Feeler: ze dacks #time opgeruff', 'pfunc_time_too_big' => 'Feeler: #time ënnerstëtzt nëmme Jore bis 9999', + 'pfunc_time_too_small' => 'Feeler: #time ënnerstëtzt nëmme Jore vun 0 un.', 'pfunc_expr_stack_exhausted' => 'Expressiouns-Feeler: Stack iwwergelaf', 'pfunc_expr_unexpected_number' => 'Expressiouns-Feeler: Onerwarten Zuel', 'pfunc_expr_unrecognised_word' => 'Expressiouns-Feeler: Onerkantent Wuert "$1"', @@ -1536,6 +1600,13 @@ $messages['li'] = array( 'pfunc_string_too_long' => 'Fout: De teks is lenger es de limiet van $1 {{PLURAL:$1|teike|teikes}}', ); +/** لوری (لوری) + * @author Bonevarluri + */ +$messages['lrc'] = array( + 'pfunc_time_error' => 'خطا:وخت نامعتور.', +); + /** Lithuanian (lietuvių) * @author Hugo.arg */ @@ -1564,7 +1635,7 @@ $messages['min'] = array( * @author Brest */ $messages['mk'] = array( - 'pfunc_desc' => 'Проширување на можностите на парсерот со логички функции', + 'pfunc_desc' => 'Проширување на можностите на расчленувачот со логички функции', 'pfunc_time_error' => 'Грешка: погрешен формат за време', 'pfunc_time_too_long' => 'Грешка: премногу повикувања на функцијата #time', 'pfunc_time_too_big' => 'Грешка: #time поддржува само години до 9999', @@ -1763,7 +1834,7 @@ $messages['nl'] = array( 'pfunc_expr_preg_match_failure' => 'Fout in uitdrukking: onverwacht falen van preg_match.', 'pfunc_expr_unrecognised_word' => 'Fout in uitdrukking: woord "$1" niet herkend.', 'pfunc_expr_unexpected_operator' => 'Fout in uitdrukking: niet verwachte operator $1.', - 'pfunc_expr_missing_operand' => 'Fout in uitdrukking: operand voor $1 mist.', + 'pfunc_expr_missing_operand' => 'Fout in uitdrukking: operand voor $1 ontbreekt.', 'pfunc_expr_unexpected_closing_bracket' => 'Fout in uitdrukking: haakje sluiten op onverwachte plaats.', 'pfunc_expr_unrecognised_punctuation' => 'Fout in uitdrukking: niet herkend leesteken "$1".', 'pfunc_expr_unclosed_bracket' => 'Fout in uitdrukking: niet gesloten haakje openen.', @@ -1898,6 +1969,7 @@ $messages['pms'] = array( 'pfunc_time_error' => 'Eror: temp nen bon', 'pfunc_time_too_long' => 'Eror: #time a ven ciamà tròpe vire', 'pfunc_time_too_big' => "Eror: #time a përmët mach j'agn fin al 9999.", + 'pfunc_time_too_small' => "Eror: #time a përmet j'agn mach da 0.", 'pfunc_rel2abs_invalid_depth' => 'Eror: profondità nen bon-a ant ël përcors: "$1" (a l\'é provasse a ciamé un grop dzora a la rèis)', 'pfunc_expr_stack_exhausted' => "Eror ëd l'espression: stach esaurìa", 'pfunc_expr_unexpected_number' => "Eror ëd l'espression: nùmer pa spetà", @@ -1941,7 +2013,8 @@ $messages['pt'] = array( 'pfunc_desc' => 'Melhora o analisador sintático com funções lógicas', 'pfunc_time_error' => 'Erro: tempo inválido', 'pfunc_time_too_long' => 'Erro: demasiadas chamadas a #time', - 'pfunc_time_too_big' => 'Erro: #time só lida com anos até 9999', + 'pfunc_time_too_big' => 'Erro: #time só permite anos até 9999', + 'pfunc_time_too_small' => 'Erro: #time só permite anos a partir de 0.', 'pfunc_rel2abs_invalid_depth' => 'Erro: Profundidade inválida no caminho: "$1" (foi tentado o acesso a um nó acima do nó raiz)', 'pfunc_expr_stack_exhausted' => 'Erro de expressão: Pilha esgotada', 'pfunc_expr_unexpected_number' => 'Erro de expressão: Número inesperado', @@ -2176,6 +2249,15 @@ $messages['scn'] = array( 'pfunc_string_too_long' => 'Erruri: la stringa supira lu limiti di $1 carattiri', ); +/** Serbo-Croatian (srpskohrvatski / српскохрватски) + * @author Kolega2357 + */ +$messages['sh'] = array( + 'pfunc_time_error' => 'Greška: pogrešno vreme', + 'pfunc_time_too_long' => 'Greška: previše pozivanja funkcije #time', + 'pfunc_rel2abs_invalid_depth' => 'Greška: Nepravilna dubina u putanji: "$1"', +); + /** Sinhala (සිංහල) * @author Budhajeewa * @author නන්දිමිතුරු @@ -2379,6 +2461,7 @@ $messages['sv'] = array( 'pfunc_time_error' => 'Fel: ogiltig tid', 'pfunc_time_too_long' => 'Fel: för många anrop av #time', 'pfunc_time_too_big' => 'Fel: # tid stöder endast år fram till 9999', + 'pfunc_time_too_small' => 'Fel: #tid stödjer enbart år från 0.', 'pfunc_rel2abs_invalid_depth' => 'Fel: felaktig djup i sökväg: "$1" (försöker nå en nod ovanför rotnoden)', 'pfunc_expr_stack_exhausted' => 'Fel i uttryck: Stackutrymmet tog slut', 'pfunc_expr_unexpected_number' => 'Fel i uttryck: Oväntat tal', diff --git a/extensions/ParserFunctions/ParserFunctions.php b/extensions/ParserFunctions/ParserFunctions.php index 4ef62047..99c8444c 100644 --- a/extensions/ParserFunctions/ParserFunctions.php +++ b/extensions/ParserFunctions/ParserFunctions.php @@ -25,10 +25,20 @@ $wgPFStringLengthLimit = 1000; * * WARNING: enabling this may have an adverse impact on the sanity of your users. * An alternative, saner solution for embedding complex text processing in - * MediaWiki templates can be found at: http://www.mediawiki.org/wiki/Extension:Lua + * MediaWiki templates can be found at: http://www.mediawiki.org/wiki/Extension:Scribunto */ $wgPFEnableStringFunctions = false; +/** + * Enable string functions, when running Wikimedia Jenkins unit tests. + * + * Running Jenkins unit tests without setting $wgPFEnableStringFunctions = true; + * will cause all the parser tests for string functions to be skipped. + */ +if ( isset( $wgWikimediaJenkinsCI ) && ( $wgWikimediaJenkinsCI === true ) ) { + $wgPFEnableStringFunctions = true ; +} + /** REGISTRATION */ $wgExtensionCredits['parserhook'][] = array( 'path' => __FILE__, diff --git a/extensions/ParserFunctions/ParserFunctions_body.php b/extensions/ParserFunctions/ParserFunctions_body.php index 3567cc58..e4ede065 100644 --- a/extensions/ParserFunctions/ParserFunctions_body.php +++ b/extensions/ParserFunctions/ParserFunctions_body.php @@ -669,7 +669,7 @@ class ExtParserFunctions { } if ( intval( $inLength ) == 0 ) { - $result = mb_substr( $inStr, $inStart ); + $result = mb_substr( $inStr, intval( $inStart ) ); } else { $result = mb_substr( $inStr, intval( $inStart ), intval( $inLength ) ); } -- cgit v1.2.3-54-g00ecf