summaryrefslogtreecommitdiff
path: root/extensions/InputBox
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/InputBox')
-rw-r--r--extensions/InputBox/.gitreview5
-rw-r--r--extensions/InputBox/InputBox.classes.php16
-rw-r--r--extensions/InputBox/InputBox.i18n.php49
3 files changed, 22 insertions, 48 deletions
diff --git a/extensions/InputBox/.gitreview b/extensions/InputBox/.gitreview
deleted file mode 100644
index 9d0c704d..00000000
--- a/extensions/InputBox/.gitreview
+++ /dev/null
@@ -1,5 +0,0 @@
-[gerrit]
-host=gerrit.wikimedia.org
-port=29418
-project=mediawiki/extensions/InputBox.git
-defaultbranch=master
diff --git a/extensions/InputBox/InputBox.classes.php b/extensions/InputBox/InputBox.classes.php
index 314bc6c8..380015cc 100644
--- a/extensions/InputBox/InputBox.classes.php
+++ b/extensions/InputBox/InputBox.classes.php
@@ -84,10 +84,10 @@ class InputBox {
// Use button label fallbacks
if ( !$this->mButtonLabel ) {
- $this->mButtonLabel = wfMessage( 'tryexact' )->text();
+ $this->mButtonLabel = wfMessage( 'tryexact' )->escaped();
}
if ( !$this->mSearchButtonLabel ) {
- $this->mSearchButtonLabel = wfMessage( 'searchfulltext' )->text();
+ $this->mSearchButtonLabel = wfMessage( 'searchfulltext' )->escaped();
}
// Build HTML
@@ -101,7 +101,7 @@ class InputBox {
'name' => 'searchbox',
'id' => 'searchbox',
'class' => 'searchbox',
- 'action' => SpecialPage::getTitleFor( 'Search' )->getLocalUrl(),
+ 'action' => SpecialPage::getTitleFor( 'Search' )->escapeLocalUrl(),
)
);
$htmlOut .= Xml::element( 'input',
@@ -239,7 +239,7 @@ class InputBox {
public function getSearchForm2() {
// Use button label fallbacks
if ( !$this->mButtonLabel ) {
- $this->mButtonLabel = wfMessage( 'tryexact' )->text();
+ $this->mButtonLabel = wfMessage( 'tryexact' )->escaped();
}
$id = Sanitizer::escapeId( $this->mID, 'noninitial' );
@@ -255,7 +255,7 @@ class InputBox {
'name' => 'bodySearch' . $id,
'id' => 'bodySearch' . $id,
'class' => 'bodySearch',
- 'action' => SpecialPage::getTitleFor( 'Search' )->getLocalUrl(),
+ 'action' => SpecialPage::getTitleFor( 'Search' )->escapeLocalUrl(),
'style' => $this->mInline ? 'display: inline;' : ''
)
);
@@ -312,11 +312,11 @@ class InputBox {
if ( $this->mType == "comment" ) {
if ( !$this->mButtonLabel ) {
- $this->mButtonLabel = wfMessage( 'postcomment' )->text();
+ $this->mButtonLabel = wfMessage( "postcomment" )->escaped();
}
} else {
if ( !$this->mButtonLabel ) {
- $this->mButtonLabel = wfMessage( 'createarticle' )->text();
+ $this->mButtonLabel = wfMessage( 'createarticle' )->escaped();
}
}
@@ -427,7 +427,7 @@ class InputBox {
global $wgScript;
if ( !$this->mButtonLabel ) {
- $this->mButtonLabel = wfMessage( 'postcomment' )->text();
+ $this->mButtonLabel = wfMessage( "postcomment" )->escaped();
}
$htmlOut = Xml::openElement( 'div',
diff --git a/extensions/InputBox/InputBox.i18n.php b/extensions/InputBox/InputBox.i18n.php
index 972aea54..1c8519f0 100644
--- a/extensions/InputBox/InputBox.i18n.php
+++ b/extensions/InputBox/InputBox.i18n.php
@@ -142,7 +142,7 @@ $messages['as'] = array(
অনুগ্ৰহ কৰি "create", "comment", "search", "search2" বা "fulltext" নিৰ্ধাৰণ কৰক',
'tryexact' => 'কেবল দিয়া শব্দহে বিচাৰিব',
'searchfulltext' => 'সম্পূৰ্ণ পাঠ্য বিচাৰিব',
- 'createarticle' => 'পৃষ্ঠা সৃষ্টি কৰক',
+ 'createarticle' => 'পৃষ্ঠা বনাওক',
'inputbox-ns-main' => 'মূখ্য',
);
@@ -355,11 +355,9 @@ $messages['cdo'] = array(
* @author Умар
*/
$messages['ce'] = array(
- 'inputbox-desc' => 'Аьтту хуьлуьйту хьалхе билгалйина HTML-формаш лато',
- 'inputbox-error-no-type' => 'Ахьа язъечу меттиган тайп билгала йина яц.',
'tryexact' => 'Леррина лахар',
'searchfulltext' => 'Дуьззина йозанца лахар',
- 'createarticle' => 'АгӀо кхолла',
+ 'createarticle' => 'Яззам кхоллар',
);
/** Sorani Kurdish (کوردی)
@@ -793,12 +791,11 @@ $messages['hak'] = array(
/** Hebrew (עברית)
* @author Amire80
- * @author Guycn2
* @author Rotem Liss
*/
$messages['he'] = array(
'inputbox-desc' => 'אפשרות להכללת טופסי HTML שהוגדרו מראש',
- 'inputbox-error-no-type' => 'לא ציינת את סוג תיבת הקלט ליצירה.',
+ 'inputbox-error-no-type' => 'לא ציינתם את סוג תיבת הקלט ליצירה.',
'inputbox-error-bad-type' => 'סוג תיבת הקלט "$1" אינו ידוע.
אנא ציינו "create", "comment", "search", "search2" או "fulltext".',
'tryexact' => 'לדף בשם זה',
@@ -952,14 +949,14 @@ $messages['ig'] = array(
* @author Lam-ang
*/
$messages['ilo'] = array(
- 'inputbox-desc' => 'Mangipalubos ti panangiraman kadagiti nasakbayan a naipalawag a porma ti HTML',
- 'inputbox-error-no-type' => 'Saanmo pay a nainaganan no ania a kita ti partuaten a kahon ti pagikabilan.',
- 'inputbox-error-bad-type' => 'Ti kita ti kahon a pigikabilan ti "$1" ket saan a mabigbigan.
-Pangngaasi nga inaganam ti "agpartuat", "komento", "biruken", "biruken2", "wenno sibubukel a testo".',
+ 'inputbox-desc' => 'Pakabaelan na nga agikabil kadagiti napalasin a kinabuklan ti HTML',
+ 'inputbox-error-no-type' => 'Saan mo pay nga imbaga no ania a kita ti pagikabilan a kahon ti aramiden.',
+ 'inputbox-error-bad-type' => 'Ti kita ti pigikabilan a kahon "$1" ket saan a ma-ammoan.
+Pangaasi ta ibagam nga "agaramid", "komentario", "biruken", "biruken2", "wenno sibubukel a testo".',
'tryexact' => 'Padasem to pudno a kapada',
- 'searchfulltext' => 'Agbiruk ti napno a testo',
- 'createarticle' => 'Agpartuat ti panid',
- 'inputbox-ns-main' => 'Nangruna',
+ 'searchfulltext' => 'Agbiruk ti sibubukel a testo',
+ 'createarticle' => 'Agaramid ti panid',
+ 'inputbox-ns-main' => 'Dati',
);
/** Ido (Ido)
@@ -1066,12 +1063,11 @@ $messages['kaa'] = array(
/** Kabyle (Taqbaylit)
* @author Agurzil
- * @author Mmistmurt
*/
$messages['kab'] = array(
'tryexact' => 'Nadi ɣef uzwel kif-kif',
'searchfulltext' => 'Nadi aḍris ettmam',
- 'createarticle' => 'Xleq amagrad',
+ 'createarticle' => 'Xleq amagrad', # Fuzzy
);
/** Kazakh (Arabic script) (قازاقشا (تٴوتە)‏)
@@ -1128,7 +1124,7 @@ $messages['ko'] = array(
'inputbox-error-bad-type' => '"$1" 입력 상자 종류는 정의되어 있지 않습니다.
"create", "comment", "search", "search2"나 "fulltext" 중 하나를 지정하세요.',
'tryexact' => '일치하는 항목 찾기',
- 'searchfulltext' => '전체 글 검색',
+ 'searchfulltext' => '전체 글 찾기',
'createarticle' => '문서 만들기',
'inputbox-ns-main' => '문서',
);
@@ -1167,13 +1163,6 @@ $messages['la'] = array(
'createarticle' => 'Paginam creare',
);
-/** Ladino (Ladino)
- * @author Menachem.Moreira
- */
-$messages['lad'] = array(
- 'createarticle' => 'Krear pajina',
-);
-
/** Luxembourgish (Lëtzebuergesch)
* @author Robby
*/
@@ -1242,11 +1231,9 @@ $messages['lo'] = array(
);
/** لوری (لوری)
- * @author Bonevarluri
* @author Mogoeilor
*/
$messages['lrc'] = array(
- 'searchfulltext' => 'پی جوری متنی',
'createarticle' => 'راس كردن بلگه',
'inputbox-ns-main' => 'اصلی',
);
@@ -1361,7 +1348,7 @@ $messages['mn'] = array(
*/
$messages['mr'] = array(
'inputbox-desc' => 'पूर्वी लिहिलेले HTML अर्ज वापरण्याची परवानगी द्या',
- 'inputbox-error-no-type' => 'कुठल्या प्रकारची पृष्ठपेटी तयार करायची ते तुम्ही स्पष्ट केलेले नाही.',
+ 'inputbox-error-no-type' => 'तुम्ही कुठल्या प्रकारची पृष्ठपेटी तयार करायची ते स्पष्ट केलेले नाही.',
'inputbox-error-bad-type' => 'तुम्ही दिलेला पृष्ठपेटीचा "$1" हा प्रकार ओळखीचा नाही.
कृपया "create", "comment", "search" किंवा "search2" किंवा "fulltext".यातील एक निवडा.',
'tryexact' => 'दिलेलेच शब्द शोधा',
@@ -1667,7 +1654,6 @@ Por favor, especifique "create", "comment", "search", "search2" ou "fulltext".',
* @author Brunoy Anastasiya Seryozhenko
* @author Eduardo.mps
* @author MetalBrasil
- * @author Opraco
*/
$messages['pt-br'] = array(
'inputbox-desc' => 'Permite a inclusão de formulários definidos de HTML',
@@ -1676,7 +1662,7 @@ $messages['pt-br'] = array(
Por favor, especifique "create", "comment", "search", "search2" ou "fulltext".',
'tryexact' => 'Tentar a expressão exata',
'searchfulltext' => 'Pesquisar em todo o texto.',
- 'createarticle' => 'Criar página',
+ 'createarticle' => 'Criar página.',
'inputbox-ns-main' => 'Principal',
);
@@ -1824,13 +1810,6 @@ $messages['sgs'] = array(
'searchfulltext' => 'Ėiškuotė pėlna teksta',
);
-/** Serbo-Croatian (srpskohrvatski / српскохрватски)
- * @author Kolega2357
- */
-$messages['sh'] = array(
- 'searchfulltext' => 'Pretraži cijeli tekst - Претражи цео текст',
-);
-
/** Sinhala (සිංහල)
* @author Asiri wiki
* @author Budhajeewa