diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2015-12-17 09:15:42 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2015-12-17 09:44:51 +0100 |
commit | a1789ddde42033f1b05cc4929491214ee6e79383 (patch) | |
tree | 63615735c4ddffaaabf2428946bb26f90899f7bf /extensions/InputBox | |
parent | 9e06a62f265e3a2aaabecc598d4bc617e06fa32d (diff) |
Update to MediaWiki 1.26.0
Diffstat (limited to 'extensions/InputBox')
54 files changed, 379 insertions, 182 deletions
diff --git a/extensions/InputBox/Gruntfile.js b/extensions/InputBox/Gruntfile.js new file mode 100644 index 00000000..7dee546b --- /dev/null +++ b/extensions/InputBox/Gruntfile.js @@ -0,0 +1,20 @@ +/*jshint node:true */ +module.exports = function ( grunt ) { + 'use strict'; + grunt.loadNpmTasks( 'grunt-banana-checker' ); + grunt.loadNpmTasks( 'grunt-jsonlint' ); + + var conf = grunt.file.readJSON( 'extension.json' ); + grunt.initConfig( { + banana: conf.MessagesDirs, + jsonlint: { + all: [ + '**/*.json', + '!node_modules/**' + ] + } + } ); + + grunt.registerTask( 'test', [ 'jsonlint', 'banana' ] ); + grunt.registerTask( 'default', 'test' ); +}; diff --git a/extensions/InputBox/InputBox.classes.php b/extensions/InputBox/InputBox.classes.php index 4cdcbe9c..b03ccd4a 100644 --- a/extensions/InputBox/InputBox.classes.php +++ b/extensions/InputBox/InputBox.classes.php @@ -17,6 +17,7 @@ class InputBox { private $mPreload = ''; private $mPreloadparams = array(); private $mEditIntro = ''; + private $mUseVE = ''; private $mSummary = ''; private $mNosummary = ''; private $mMinor = ''; @@ -83,6 +84,39 @@ class InputBox { } } + /* + * Returns the action name and value to use in inputboxes which redirects to edit pages. + * Decides, if the link should redirect to VE edit page (veaction=edit) or to wikitext editor + * (action=edit). + * + * @return Array Array with name and value data + */ + private function getEditActionArgs() { + // default is wikitext editor + $args = array( + 'name' => 'action', + 'value' => 'edit', + ); + // check, if VE is installed and VE editor is requested + if ( ExtensionRegistry::getInstance()->isLoaded( 'VisualEditor' ) && $this->mUseVE ) { + $args = array( + 'name' => 'veaction', + 'value' => 'edit', + ); + } + return $args; + } + + /** + * Get common classes, that could be added and depend on, if + * a line break between a button and an input field is added or not. + * + * @return String + */ + private function getLinebreakClasses() { + return strtolower( $this->mBR ) === '<br />' ? 'mw-inputbox-input ' : ''; + } + /** * Generate search form * @param $type @@ -123,7 +157,7 @@ class InputBox { ); $htmlOut .= Xml::element( 'input', array( - 'class' => 'searchboxInput mw-ui-input mw-ui-input-inline', + 'class' => $this->getLinebreakClasses() . 'searchboxInput mw-ui-input mw-ui-input-inline', 'name' => 'search', 'type' => $this->mHidden ? 'hidden' : 'text', 'value' => $this->mDefaultText, @@ -134,13 +168,7 @@ class InputBox { ); if ( $this->mPrefix != '' ) { - $htmlOut .= Xml::element( 'input', - array( - 'name' => 'prefix', - 'type' => 'hidden', - 'value' => $this->mPrefix, - ) - ); + $htmlOut .= Html::hidden( 'prefix', $this->mPrefix ); } $htmlOut .= $this->mBR; @@ -360,78 +388,26 @@ class InputBox { $createBoxParams['id'] = Sanitizer::escapeId( $this->mID ); } $htmlOut .= Xml::openElement( 'form', $createBoxParams ); - $htmlOut .= Xml::openElement( 'input', - array( - 'type' => 'hidden', - 'name' => 'action', - 'value' => 'edit', - ) - ); - $htmlOut .= Xml::openElement( 'input', - array( - 'type' => 'hidden', - 'name' => 'preload', - 'value' => $this->mPreload, - ) - ); + $editArgs = $this->getEditActionArgs(); + $htmlOut .= Html::hidden( $editArgs['name'], $editArgs['value'] ); + $htmlOut .= Html::hidden( 'preload', $this->mPreload ); foreach ( $this->mPreloadparams as $preloadparams ) { - $htmlOut .= Xml::openElement( 'input', - array( - 'type' => 'hidden', - 'name' => 'preloadparams[]', - 'value' => $preloadparams, - ) - ); + $htmlOut .= Html::hidden( 'preloadparams[]', $preloadparams ); } - $htmlOut .= Xml::openElement( 'input', - array( - 'type' => 'hidden', - 'name' => 'editintro', - 'value' => $this->mEditIntro, - ) - ); - $htmlOut .= Xml::openElement( 'input', - array( - 'type' => 'hidden', - 'name' => 'summary', - 'value' => $this->mSummary, - ) - ); - $htmlOut .= Xml::openElement( 'input', - array( - 'type' => 'hidden', - 'name' => 'nosummary', - 'value' => $this->mNosummary, - ) - ); - $htmlOut .= Xml::openElement( 'input', - array( - 'type' => 'hidden', - 'name' => 'prefix', - 'value' => $this->mPrefix, - ) - ); - $htmlOut .= Xml::openElement( 'input', - array( - 'type' => 'hidden', - 'name' => 'minor', - 'value' => $this->mMinor, - ) - ); + $htmlOut .= Html::hidden( 'editintro', $this->mEditIntro ); + $htmlOut .= Html::hidden( 'summary', $this->mSummary ); + $htmlOut .= Html::hidden( 'nosummary', $this->mNosummary ); + $htmlOut .= Html::hidden( 'prefix', $this->mPrefix ); + $htmlOut .= Html::hidden( 'minor', $this->mMinor ); if ( $this->mType == 'comment' ) { - $htmlOut .= Xml::openElement( 'input', - array( - 'type' => 'hidden', - 'name' => 'section', - 'value' => 'new', - ) - ); + $htmlOut .= Html::hidden( 'section', 'new' ); } $htmlOut .= Xml::openElement( 'input', array( 'type' => $this->mHidden ? 'hidden' : 'text', 'name' => 'title', - 'class' => 'mw-ui-input mw-ui-input-inline createboxInput', + 'class' => $this->getLinebreakClasses() . + 'mw-ui-input mw-ui-input-inline createboxInput', 'value' => $this->mDefaultText, 'placeholder' => $this->mPlaceholderText, 'size' => $this->mWidth, @@ -480,32 +456,14 @@ class InputBox { $moveBoxParams['id'] = Sanitizer::escapeId( $this->mID ); } $htmlOut .= Xml::openElement( 'form', $moveBoxParams ); - $htmlOut .= Xml::openElement( 'input', - array( - 'type' => 'hidden', - 'name' => 'title', - 'value' => SpecialPage::getTitleFor( 'Movepage', $this->mPage )->getPrefixedText(), - ) - ); - $htmlOut .= Xml::openElement( 'input', - array( - 'type' => 'hidden', - 'name' => 'wpReason', - 'value' => $this->mSummary, - ) - ); - $htmlOut .= Xml::openElement( 'input', - array( - 'type' => 'hidden', - 'name' => 'prefix', - 'value' => $this->mPrefix, - ) - ); + $htmlOut .= Html::hidden( 'title', SpecialPage::getTitleFor( 'Movepage', $this->mPage )->getPrefixedText() ); + $htmlOut .= Html::hidden( 'wpReason', $this->mSummary ); + $htmlOut .= Html::hidden( 'prefix', $this->mPrefix ); $htmlOut .= Xml::openElement( 'input', array( 'type' => $this->mHidden ? 'hidden' : 'text', 'name' => 'wpNewTitle', - 'class' => 'mw-moveboxInput mw-ui-input mw-ui-input-inline', + 'class' => $this->getLinebreakClasses() . 'mw-moveboxInput mw-ui-input mw-ui-input-inline', 'value' => $this->mDefaultText, 'placeholder' => $this->mPlaceholderText, 'size' => $this->mWidth, @@ -553,61 +511,26 @@ class InputBox { $commentFormParams['id'] = Sanitizer::escapeId( $this->mID ); } $htmlOut .= Xml::openElement( 'form', $commentFormParams ); - $htmlOut .= Xml::openElement( 'input', - array( - 'type' => 'hidden', - 'name' => 'action', - 'value' => 'edit', - ) - ); - $htmlOut .= Xml::openElement( 'input', - array( - 'type' => 'hidden', - 'name' => 'preload', - 'value' => $this->mPreload, - ) - ); + $editArgs = $this->getEditActionArgs(); + $htmlOut .= Html::hidden( $editArgs['name'], $editArgs['value'] ); + $htmlOut .= Html::hidden( 'preload', $this->mPreload ); foreach ( $this->mPreloadparams as $preloadparams ) { - $htmlOut .= Xml::openElement( 'input', - array( - 'type' => 'hidden', - 'name' => 'preloadparams[]', - 'value' => $preloadparams, - ) - ); + $htmlOut .= Html::hidden( 'preloadparams[]', $preloadparams ); } - $htmlOut .= Xml::openElement( 'input', - array( - 'type' => 'hidden', - 'name' => 'editintro', - 'value' => $this->mEditIntro, - ) - ); + $htmlOut .= Html::hidden( 'editintro', $this->mEditIntro ); $htmlOut .= Xml::openElement( 'input', array( 'type' => $this->mHidden ? 'hidden' : 'text', 'name' => 'preloadtitle', - 'class' => 'commentboxInput mw-ui-input mw-ui-input-inline', + 'class' => $this->getLinebreakClasses() . 'commentboxInput mw-ui-input mw-ui-input-inline', 'value' => $this->mDefaultText, 'placeholder' => $this->mPlaceholderText, 'size' => $this->mWidth, 'dir' => $this->mDir, ) ); - $htmlOut .= Xml::openElement( 'input', - array( - 'type' => 'hidden', - 'name' => 'section', - 'value' => 'new', - ) - ); - $htmlOut .= Xml::openElement( 'input', - array( - 'type' => 'hidden', - 'name' => 'title', - 'value' => $this->mPage - ) - ); + $htmlOut .= Html::hidden( 'section', 'new' ); + $htmlOut .= Html::hidden( 'title', $this->mPage ); $htmlOut .= $this->mBR; $htmlOut .= Xml::openElement( 'input', array( @@ -658,6 +581,7 @@ class InputBox { 'preload' => 'mPreload', 'page' => 'mPage', 'editintro' => 'mEditIntro', + 'useve' => 'mUseVE', 'summary' => 'mSummary', 'nosummary' => 'mNosummary', 'minor' => 'mMinor', diff --git a/extensions/InputBox/composer.json b/extensions/InputBox/composer.json new file mode 100644 index 00000000..3d5c89c2 --- /dev/null +++ b/extensions/InputBox/composer.json @@ -0,0 +1,11 @@ +{ + "require-dev": { + "jakub-onderka/php-parallel-lint": "0.9" + }, + "scripts": { + "test": [ + "parallel-lint . --exclude node_modules --exclude vendor" + ] + } + +} diff --git a/extensions/InputBox/extension.json b/extensions/InputBox/extension.json index 6d786754..626c2962 100644 --- a/extensions/InputBox/extension.json +++ b/extensions/InputBox/extension.json @@ -11,6 +11,7 @@ "url": "https://www.mediawiki.org/wiki/Extension:InputBox", "description": "Allow inclusion of predefined HTML forms.", "descriptionmsg": "inputbox-desc", + "license-name": "MIT", "type": "parserhook", "MessagesDirs": { "InputBox": [ @@ -23,12 +24,21 @@ }, "ResourceModules": { "ext.inputBox.styles": { - "styles": "ext.inputBox.styles.css" + "styles": "ext.inputBox.styles.css", + "position": "top", + "targets": [ + "mobile", + "desktop" + ] }, "ext.inputBox": { "scripts": "ext.inputBox.js", "dependencies": [ "jquery.throttle-debounce" + ], + "targets": [ + "mobile", + "desktop" ] } }, @@ -46,5 +56,6 @@ "SpecialPageBeforeExecute": [ "InputBoxHooks::onSpecialPageBeforeExecute" ] - } + }, + "manifest_version": 1 } diff --git a/extensions/InputBox/i18n/ady-cyrl.json b/extensions/InputBox/i18n/ady-cyrl.json new file mode 100644 index 00000000..9e3ea17d --- /dev/null +++ b/extensions/InputBox/i18n/ady-cyrl.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "GR44 Luc" + ] + }, + "inputbox-tryexact": "Тефэпэнэу лыхъу" +} diff --git a/extensions/InputBox/i18n/anp.json b/extensions/InputBox/i18n/anp.json new file mode 100644 index 00000000..35fe6c38 --- /dev/null +++ b/extensions/InputBox/i18n/anp.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Angpradesh" + ] + }, + "inputbox-tryexact": "सटीक मिलान केरऽ कोशिश करऽ" +} diff --git a/extensions/InputBox/i18n/ast.json b/extensions/InputBox/i18n/ast.json index 9d2a89df..c2d507c6 100644 --- a/extensions/InputBox/i18n/ast.json +++ b/extensions/InputBox/i18n/ast.json @@ -8,7 +8,7 @@ "inputbox-desc": "Permite la inclusión de formularios HTML predefiníos", "inputbox-error-no-type": "Nun especificasti la triba de caxellu d'entrada pa crear.", "inputbox-error-bad-type": "Triba de caxa d'entrada $1 non reconocida.\nPor favor conseña la opción ''create'', ''comment'', ''search'', ''search2'' o \"fulltext\".", - "inputbox-tryexact": "Intentar concueyar exautamente", + "inputbox-tryexact": "Intentar concuayar exautamente", "inputbox-searchfulltext": "Buscar testu completu", "inputbox-createarticle": "Crear páxina", "inputbox-movearticle": "Treslladar la páxina", diff --git a/extensions/InputBox/i18n/awa.json b/extensions/InputBox/i18n/awa.json new file mode 100644 index 00000000..7a203888 --- /dev/null +++ b/extensions/InputBox/i18n/awa.json @@ -0,0 +1,14 @@ +{ + "@metadata": { + "authors": [ + "1AnuraagPandey" + ] + }, + "inputbox-tryexact": "दिहा शब्द ही खोजा जाय", + "inputbox-searchfulltext": "पूरा पाठ खोजा जाए", + "inputbox-createarticle": "लेख बनावा जाय", + "inputbox-movearticle": "पन्ना घुसकावा जाय", + "inputbox-postcomment": "नवाँ श्रेणी", + "inputbox-postcommenttitle": "नवाँ श्रेणी", + "inputbox-ns-main": "मुख्य" +} diff --git a/extensions/InputBox/i18n/az.json b/extensions/InputBox/i18n/az.json index 8d14a4ea..cf16445a 100644 --- a/extensions/InputBox/i18n/az.json +++ b/extensions/InputBox/i18n/az.json @@ -2,9 +2,11 @@ "@metadata": { "authors": [ "Cekli829", - "Vugar 1981" + "Vugar 1981", + "Wertuose" ] }, + "inputbox-tryexact": "Dəqiq uyğunluq", "inputbox-searchfulltext": "Yaxşı mətni axtar", "inputbox-createarticle": "Məqalə yarat", "inputbox-ns-main": "Əsas" diff --git a/extensions/InputBox/i18n/azb.json b/extensions/InputBox/i18n/azb.json index 386cb18c..62ad5f88 100644 --- a/extensions/InputBox/i18n/azb.json +++ b/extensions/InputBox/i18n/azb.json @@ -1,10 +1,12 @@ { "@metadata": { "authors": [ - "Amir a57" + "Amir a57", + "Koroğlu" ] }, + "inputbox-tryexact": "اویدورمانی سیناقلا", "inputbox-searchfulltext": "یاخشی متنی آختار", - "inputbox-createarticle": "صحیفه یارات", + "inputbox-createarticle": "صفحه یارات", "inputbox-ns-main": "آنا" } diff --git a/extensions/InputBox/i18n/be.json b/extensions/InputBox/i18n/be.json index cc14b3ea..114e44c9 100644 --- a/extensions/InputBox/i18n/be.json +++ b/extensions/InputBox/i18n/be.json @@ -1,4 +1,9 @@ { - "@metadata": [], + "@metadata": { + "authors": [ + "Чаховіч Уладзіслаў" + ] + }, + "inputbox-tryexact": "Строгі пошук", "inputbox-createarticle": "Пачаць артыкул" } diff --git a/extensions/InputBox/i18n/bho.json b/extensions/InputBox/i18n/bho.json new file mode 100644 index 00000000..07b92080 --- /dev/null +++ b/extensions/InputBox/i18n/bho.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "SatyamMishra" + ] + }, + "inputbox-tryexact": "एकदम सटीकमैच करावे के कोसिस करीं" +} diff --git a/extensions/InputBox/i18n/bs.json b/extensions/InputBox/i18n/bs.json index d60e6951..6eb67315 100644 --- a/extensions/InputBox/i18n/bs.json +++ b/extensions/InputBox/i18n/bs.json @@ -2,7 +2,8 @@ "@metadata": { "authors": [ "CERminator", - "DzWiki" + "DzWiki", + "Srdjan m" ] }, "inputbox-desc": "Omogućuje uključivanje prethodno napravljenih HTML obrazaca", @@ -11,5 +12,6 @@ "inputbox-tryexact": "Isprobaj naći tačan upit", "inputbox-searchfulltext": "Pretraži cijeli tekst", "inputbox-createarticle": "Napravi stranicu", + "inputbox-movearticle": "Premjesti stranicu", "inputbox-ns-main": "Glavno" } diff --git a/extensions/InputBox/i18n/cu.json b/extensions/InputBox/i18n/cu.json index 52177f18..8b37c116 100644 --- a/extensions/InputBox/i18n/cu.json +++ b/extensions/InputBox/i18n/cu.json @@ -4,5 +4,5 @@ "ОйЛ" ] }, - "inputbox-createarticle": "cъꙁижди члѣнъ" + "inputbox-createarticle": "съꙁижди страницѧ" } diff --git a/extensions/InputBox/i18n/din.json b/extensions/InputBox/i18n/din.json new file mode 100644 index 00000000..7d92cd16 --- /dev/null +++ b/extensions/InputBox/i18n/din.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Dinkawiki" + ] + }, + "inputbox-tryexact": "Them kot käthöŋ" +} diff --git a/extensions/InputBox/i18n/dty.json b/extensions/InputBox/i18n/dty.json new file mode 100644 index 00000000..01a0c893 --- /dev/null +++ b/extensions/InputBox/i18n/dty.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "जनक राज भट्ट" + ] + }, + "inputbox-tryexact": "दुरुस्त मिलौन्या प्रयाश गरया |" +} diff --git a/extensions/InputBox/i18n/ee.json b/extensions/InputBox/i18n/ee.json index 87422b3b..9021433c 100644 --- a/extensions/InputBox/i18n/ee.json +++ b/extensions/InputBox/i18n/ee.json @@ -1,9 +1,11 @@ { "@metadata": { "authors": [ - "Natsubee" + "Natsubee", + "Aguve" ] }, + "inputbox-tryexact": "Ŋlɔ nya pɛpɛpɛ", "inputbox-searchfulltext": "Di nuŋɔŋlɔ bliboa me", "inputbox-createarticle": "Dze nuŋɔŋlɔ yeye gɔme" } diff --git a/extensions/InputBox/i18n/es.json b/extensions/InputBox/i18n/es.json index 1fa91f97..596eb94a 100644 --- a/extensions/InputBox/i18n/es.json +++ b/extensions/InputBox/i18n/es.json @@ -6,16 +6,17 @@ "MetalBrasil", "Muro de Aguas", "Sanbec", - "Fitoschido" + "Fitoschido", + "Macofe" ] }, - "inputbox-desc": "Permite la inclusión de formularios en HTML predefinidos.", - "inputbox-error-no-type": "No has especificado el tipo de formulario que vas a crear.", - "inputbox-error-bad-type": "No se reconoce el tipo de caja de entrada «$1».\nPor favor, especifica «create», «comment», «search» «search2» o \"fulltext\".", + "inputbox-desc": "Permite la inclusión de formularios HTML predefinidos", + "inputbox-error-no-type": "No has especificado el tipo de casilla de entrada que se creará.", + "inputbox-error-bad-type": "No se reconoce el tipo de casilla de entrada «$1».\nElige entre «create», «comment», «search», «search2» o «fulltext».", "inputbox-tryexact": "Buscar título exacto", "inputbox-searchfulltext": "Buscar por texto completo", - "inputbox-createarticle": "Crear artículo", - "inputbox-movearticle": "Mover página", + "inputbox-createarticle": "Crear página", + "inputbox-movearticle": "Trasladar página", "inputbox-postcomment": "Sección nueva", "inputbox-postcommenttitle": "Sección nueva", "inputbox-ns-main": "Principal" diff --git a/extensions/InputBox/i18n/eu.json b/extensions/InputBox/i18n/eu.json index 9679e146..e4bb730e 100644 --- a/extensions/InputBox/i18n/eu.json +++ b/extensions/InputBox/i18n/eu.json @@ -1,11 +1,13 @@ { "@metadata": { "authors": [ - "පසිඳු කාවින්ද" + "පසිඳු කාවින්ද", + "Sator" ] }, "inputbox-tryexact": "Izenburu zehatza bilatu", "inputbox-searchfulltext": "Testu osoa bilatu", "inputbox-createarticle": "Artikulua sortu", + "inputbox-movearticle": "Mugitu orria", "inputbox-ns-main": "Nagusia" } diff --git a/extensions/InputBox/i18n/gom-latn.json b/extensions/InputBox/i18n/gom-latn.json new file mode 100644 index 00000000..eabe7617 --- /dev/null +++ b/extensions/InputBox/i18n/gom-latn.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "The Discoverer" + ] + }, + "inputbox-tryexact": "Dil'lech utram sod" +} diff --git a/extensions/InputBox/i18n/gu.json b/extensions/InputBox/i18n/gu.json index 596306ed..73fc7e4e 100644 --- a/extensions/InputBox/i18n/gu.json +++ b/extensions/InputBox/i18n/gu.json @@ -3,7 +3,8 @@ "authors": [ "Dsvyas", "KartikMistry", - "Sushant savla" + "Sushant savla", + "NehalDaveND" ] }, "inputbox-desc": "પૂર્વવ્યાખ્યાયિત HTML પત્રકોનો સમાવેશ માન્ય", @@ -12,6 +13,8 @@ "inputbox-tryexact": "આબેહૂબ સરખામણી ધારી પ્રયત્ન કરો", "inputbox-searchfulltext": "સંપૂર્ણ લખાણ શોધો", "inputbox-createarticle": "નવો લેખ શરૂ કરો", + "inputbox-movearticle": "નામ બદલો", + "inputbox-postcomment": "નવો વિભાગ", "inputbox-postcommenttitle": "નવો વિભાગ", "inputbox-ns-main": "મુખ્ય" } diff --git a/extensions/InputBox/i18n/hi.json b/extensions/InputBox/i18n/hi.json index c3af06f4..609318a5 100644 --- a/extensions/InputBox/i18n/hi.json +++ b/extensions/InputBox/i18n/hi.json @@ -3,7 +3,8 @@ "authors": [ "Ansumang", "Kaustubh", - "Siddhartha Ghai" + "Siddhartha Ghai", + "NehalDaveND" ] }, "inputbox-desc": "पहले से लिखे गये एच॰टी॰एम॰एल फ़ॉर्म प्रयोग करने की सुविधा दें", @@ -12,5 +13,8 @@ "inputbox-tryexact": "दिये हुए शब्द ही खोजें", "inputbox-searchfulltext": "पूरा पाठ खोजें", "inputbox-createarticle": "पृष्ठ बनाएँ", + "inputbox-movearticle": "नाम बदलें", + "inputbox-postcomment": "नवीनः विभागः", + "inputbox-postcommenttitle": "नवीनः विभागः", "inputbox-ns-main": "मुख्य" } diff --git a/extensions/InputBox/i18n/hy.json b/extensions/InputBox/i18n/hy.json index 758c6732..c3da76ea 100644 --- a/extensions/InputBox/i18n/hy.json +++ b/extensions/InputBox/i18n/hy.json @@ -1,8 +1,10 @@ { "@metadata": { "authors": [ - "Xelgen" + "Xelgen", + "Vahe Gharakhanyan" ] }, + "inputbox-tryexact": "Փնտրել լիովին համընկնում", "inputbox-createarticle": "Ստեղծել էջ" } diff --git a/extensions/InputBox/i18n/ja.json b/extensions/InputBox/i18n/ja.json index 1e583003..6fcd354a 100644 --- a/extensions/InputBox/i18n/ja.json +++ b/extensions/InputBox/i18n/ja.json @@ -4,7 +4,8 @@ "Fryed-peach", "JtFuruhata", "Schu", - "Shirayuki" + "Shirayuki", + "Otokoume" ] }, "inputbox-desc": "あらかじめ定義されたHTMLフォーム埋め込み機能を有効にする", @@ -14,5 +15,7 @@ "inputbox-searchfulltext": "全文検索", "inputbox-createarticle": "項目を作成", "inputbox-movearticle": "ページを移動", + "inputbox-postcomment": "新しい節", + "inputbox-postcommenttitle": "新しい節", "inputbox-ns-main": "(標準)" } diff --git a/extensions/InputBox/i18n/jut.json b/extensions/InputBox/i18n/jut.json index bb27b94d..0d708e30 100644 --- a/extensions/InputBox/i18n/jut.json +++ b/extensions/InputBox/i18n/jut.json @@ -1,13 +1,14 @@ { "@metadata": { "authors": [ - "Huslåke" + "Huslåke", + "Jyllanj" ] }, - "inputbox-desc": "Tilstån der inklusje der prædæfiiniærn HTML fårmer", - "inputbox-error-no-type": "Du harst ekke spæsifiærn æ type der input boks til skep.", + "inputbox-desc": "Mulidjör inkludiireng å forhånjsdefiniirtje HTML-formulare", + "inputbox-error-no-type": "Du hår ett åndjøwen typ i inputboksi som skal laws.", "inputbox-error-bad-type": "Input boks type \"$1\" ekke herkonnen. Spæsifiær \"skep\", \"bimærkenge\", \"søĝ\" æller \"søĝ2\".", - "inputbox-tryexact": "Førsøĝ eksakt søĝnenge:", - "inputbox-searchfulltext": "Gennemsøĝe'n hæle tekster", - "inputbox-createarticle": "Åprette side" + "inputbox-tryexact": "Forsyeg go te siden", + "inputbox-searchfulltext": "Syeg ette hielteksten", + "inputbox-createarticle": "Oprett siid" } diff --git a/extensions/InputBox/i18n/khw.json b/extensions/InputBox/i18n/khw.json new file mode 100644 index 00000000..673d24e0 --- /dev/null +++ b/extensions/InputBox/i18n/khw.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Rachitrali" + ] + }, + "inputbox-tryexact": "خود بخود ٹیکسٹو ملاو کوریکو کوشش کورے" +} diff --git a/extensions/InputBox/i18n/krc.json b/extensions/InputBox/i18n/krc.json new file mode 100644 index 00000000..f5e6cad9 --- /dev/null +++ b/extensions/InputBox/i18n/krc.json @@ -0,0 +1,9 @@ +{ + "@metadata": { + "authors": [ + "Iltever", + "Ernác" + ] + }, + "inputbox-tryexact": "Тюп-тюз излеу" +} diff --git a/extensions/InputBox/i18n/ksh.json b/extensions/InputBox/i18n/ksh.json index 969c38a2..0d583d9e 100644 --- a/extensions/InputBox/i18n/ksh.json +++ b/extensions/InputBox/i18n/ksh.json @@ -6,7 +6,7 @@ }, "inputbox-desc": "Bestemmpte HTML-Formulare könne hee met enjebonge wääde.", "inputbox-error-no-type": "Wat för en Zoot Kaste wells De dann han?", - "inputbox-error-bad-type": "De Zoot „$1“ för et Feld för jet enzejevve kenne mer nit, De moss schunn „create“, „comment“, „search“, „search2“, udder „fulltext“ doför aanjevve.", + "inputbox-error-bad-type": "De Zoot „$1“ för et Feld för jet enzejävve kenne mer nit, De moss schunn „create“, „comment“, „search“, „search2“, udder „fulltext“ doför aanjävve.", "inputbox-tryexact": "Versök en akkurate Üvvereinstimmung:", "inputbox-searchfulltext": "Sök durch dä janze Tex", "inputbox-createarticle": "Sigg aanlääje", diff --git a/extensions/InputBox/i18n/lt.json b/extensions/InputBox/i18n/lt.json index 491ef051..5673c17f 100644 --- a/extensions/InputBox/i18n/lt.json +++ b/extensions/InputBox/i18n/lt.json @@ -1,11 +1,18 @@ { "@metadata": { "authors": [ - "Vogone" + "Vogone", + "Albertas" ] }, + "inputbox-desc": "Leisti iš anksto apibrėžtų HTML formų įterpimą", + "inputbox-error-no-type": "Jūs nenurodėte įvesties dėžutės tipo.", + "inputbox-error-bad-type": "Neatpažintas įvesties dėžutės tipas \"$1\".\nPrašome nurodyti \"create\", \"comment\", \"search\", \"search2\" arba \"fulltext\".", "inputbox-tryexact": "Mėginti tikslų atitikimą", "inputbox-searchfulltext": "Ieškoti pilno teksto", "inputbox-createarticle": "Kurti straipsnį", + "inputbox-movearticle": "Perkelti puslapį", + "inputbox-postcomment": "Naujas skyrius", + "inputbox-postcommenttitle": "Naujas skyrius", "inputbox-ns-main": "Pagrindinis" } diff --git a/extensions/InputBox/i18n/luz.json b/extensions/InputBox/i18n/luz.json new file mode 100644 index 00000000..392e3a3d --- /dev/null +++ b/extensions/InputBox/i18n/luz.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "علی ساکی لرستانی" + ] + }, + "inputbox-tryexact": "تطبیق مۉرد ۉھ مۉرد رنه آزمایش کۉ" +} diff --git a/extensions/InputBox/i18n/mg.json b/extensions/InputBox/i18n/mg.json new file mode 100644 index 00000000..9f7f93f7 --- /dev/null +++ b/extensions/InputBox/i18n/mg.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Jagwar" + ] + }, + "inputbox-tryexact": "Hanandrana io soratra io" +} diff --git a/extensions/InputBox/i18n/mr.json b/extensions/InputBox/i18n/mr.json index 2020d4e7..de58d000 100644 --- a/extensions/InputBox/i18n/mr.json +++ b/extensions/InputBox/i18n/mr.json @@ -10,7 +10,7 @@ "inputbox-desc": "पूर्वी लिहिलेले HTML अर्ज वापरण्याची परवानगी द्या", "inputbox-error-no-type": "कुठल्या प्रकारची पृष्ठपेटी तयार करायची ते तुम्ही स्पष्ट केलेले नाही.", "inputbox-error-bad-type": "तुम्ही दिलेला पृष्ठपेटीचा \"$1\" हा प्रकार ओळखीचा नाही. \nकृपया \"create\", \"comment\", \"search\" किंवा \"search2\" किंवा \"fulltext\".यातील एक निवडा.", - "inputbox-tryexact": "दिलेलेच शब्द शोधा", + "inputbox-tryexact": "नेमके अनुरुप शब्द शोधा", "inputbox-searchfulltext": "पूर्ण मजकूर शोधा", "inputbox-createarticle": "लेख बनवा", "inputbox-ns-main": "मुख्य" diff --git a/extensions/InputBox/i18n/mzn.json b/extensions/InputBox/i18n/mzn.json index 55fbc05f..5a0cca8b 100644 --- a/extensions/InputBox/i18n/mzn.json +++ b/extensions/InputBox/i18n/mzn.json @@ -6,5 +6,6 @@ "محک" ] }, + "inputbox-tryexact": "کلمه-کلمه مطابقت ره چک هاکن", "inputbox-createarticle": "صفحه بساتن" } diff --git a/extensions/InputBox/i18n/nap.json b/extensions/InputBox/i18n/nap.json index 7c99645a..f1701912 100644 --- a/extensions/InputBox/i18n/nap.json +++ b/extensions/InputBox/i18n/nap.json @@ -6,7 +6,14 @@ "C.R." ] }, + "inputbox-desc": "Premmettesse appennere module predefinite HTML", + "inputbox-error-no-type": "Nun avite specificato 'o tipo 'e casciulella d'input a crià.", + "inputbox-error-bad-type": "Casciulella d'input \"$1\" scanusciuta.\nPe' piacere specificate \"create\", \"comment\", \"search\", \"search2\" o \"fulltext\".", "inputbox-tryexact": "Pròva cu nu cunfronto eguale-eguale", "inputbox-searchfulltext": "Ascià dint''o testo", - "inputbox-createarticle": "Cria paggena" + "inputbox-createarticle": "Cria paggena", + "inputbox-movearticle": "Mòve paggena", + "inputbox-postcomment": "Seziona nova", + "inputbox-postcommenttitle": "Seziona nova", + "inputbox-ns-main": "Prencepale" } diff --git a/extensions/InputBox/i18n/ne.json b/extensions/InputBox/i18n/ne.json index 5f05eddd..10e1dd9e 100644 --- a/extensions/InputBox/i18n/ne.json +++ b/extensions/InputBox/i18n/ne.json @@ -1,4 +1,9 @@ { - "@metadata": [], - "inputbox-createarticle": "लेख थाल्नुहोस्" + "@metadata": { + "authors": [ + "NehalDaveND" + ] + }, + "inputbox-createarticle": "लेख थाल्नुहोस्", + "inputbox-ns-main": "मुख्य" } diff --git a/extensions/InputBox/i18n/nl.json b/extensions/InputBox/i18n/nl.json index 919090d7..d6afa5bc 100644 --- a/extensions/InputBox/i18n/nl.json +++ b/extensions/InputBox/i18n/nl.json @@ -8,7 +8,7 @@ "inputbox-desc": "Maakt het toevoegen van voorgedefinieerde HTML-formulieren mogelijk", "inputbox-error-no-type": "U hebt het type invoerveld niet opgegeven.", "inputbox-error-bad-type": "Type invoerveld \"$1\" niet herkend.\nGebruik \"create\", \"comment\", \"search\", \"search2\" of \"fulltext\".", - "inputbox-tryexact": "Zoeken op exacte overeenkomst", + "inputbox-tryexact": "Op exacte overeenkomst zoeken", "inputbox-searchfulltext": "Volledige tekst doorzoeken", "inputbox-createarticle": "Pagina aanmaken", "inputbox-movearticle": "Pagina hernoemen", diff --git a/extensions/InputBox/i18n/olo.json b/extensions/InputBox/i18n/olo.json new file mode 100644 index 00000000..a476f1ae --- /dev/null +++ b/extensions/InputBox/i18n/olo.json @@ -0,0 +1,15 @@ +{ + "@metadata": { + "authors": [ + "Mashoi7", + "Ilja.mos" + ] + }, + "inputbox-tryexact": "Opi tarkah yhtehpädijiä", + "inputbox-searchfulltext": "Eči kogo tekstal", + "inputbox-createarticle": "Luaji sivu", + "inputbox-movearticle": "Siirrä sivu", + "inputbox-postcomment": "Uuzi sektsii", + "inputbox-postcommenttitle": "Uuzi sektsii", + "inputbox-ns-main": "Piänimitila" +} diff --git a/extensions/InputBox/i18n/pa.json b/extensions/InputBox/i18n/pa.json new file mode 100644 index 00000000..1ad44de7 --- /dev/null +++ b/extensions/InputBox/i18n/pa.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Satdeep gill" + ] + }, + "inputbox-tryexact": "ਹੂਬਹੂ ਲਿਖਤ ਨਾਲ ਕਰੋ" +} diff --git a/extensions/InputBox/i18n/ps.json b/extensions/InputBox/i18n/ps.json index a48ab23c..e9403a1d 100644 --- a/extensions/InputBox/i18n/ps.json +++ b/extensions/InputBox/i18n/ps.json @@ -8,5 +8,8 @@ "inputbox-tryexact": "کټ مټ انډول يې وآزمويه", "inputbox-searchfulltext": "بشپړ متن پلټل", "inputbox-createarticle": "نوې ليکنه پيلول", + "inputbox-movearticle": "مخ لېږدول", + "inputbox-postcomment": "نوې برخه", + "inputbox-postcommenttitle": "نوې برخه", "inputbox-ns-main": "آرنی" } diff --git a/extensions/InputBox/i18n/ro.json b/extensions/InputBox/i18n/ro.json index 3bf6163d..bc3eff5b 100644 --- a/extensions/InputBox/i18n/ro.json +++ b/extensions/InputBox/i18n/ro.json @@ -7,7 +7,8 @@ "KlaudiuMihaila", "Mihai", "Minisarm", - "Danutz" + "Danutz", + "ImGelu" ] }, "inputbox-desc": "Permite includerea formelor HTML predefinite", diff --git a/extensions/InputBox/i18n/sa.json b/extensions/InputBox/i18n/sa.json index 20634e87..9f0b87ab 100644 --- a/extensions/InputBox/i18n/sa.json +++ b/extensions/InputBox/i18n/sa.json @@ -2,7 +2,8 @@ "@metadata": { "authors": [ "Ansumang", - "Shubha" + "Shubha", + "NehalDaveND" ] }, "inputbox-desc": "पूर्वनिरूपितस्य HTML प्रपत्रयोजनम् अनुमन्यताम्", @@ -11,5 +12,8 @@ "inputbox-tryexact": "दत्तः शब्दः एव लिख्यताम्", "inputbox-searchfulltext": "सम्पूर्णः पाठ्यांशः अन्विष्यताम्", "inputbox-createarticle": "पृष्ठं सृज्यताम्", - "inputbox-ns-main": "मुख्य" + "inputbox-movearticle": "शीर्षकं परिवर्त्यताम्", + "inputbox-postcomment": "नवीनः विभागः", + "inputbox-postcommenttitle": "नवीनः विभागः", + "inputbox-ns-main": "मुख्यम्" } diff --git a/extensions/InputBox/i18n/scn.json b/extensions/InputBox/i18n/scn.json index 7f251e4c..d6712d0e 100644 --- a/extensions/InputBox/i18n/scn.json +++ b/extensions/InputBox/i18n/scn.json @@ -2,7 +2,8 @@ "@metadata": { "authors": [ "Aushulz", - "Santu" + "Santu", + "Sarvaturi" ] }, "inputbox-desc": "Pirmetti nzirimenti di mòduli HTML predifiniti", @@ -10,6 +11,6 @@ "inputbox-error-bad-type": "\"$1\" nun è nu tipu di inputbox canusciutu. S'hà scègghiri lu tipu ntra \"create\", \"comment\", \"search\" e \"search2\".", "inputbox-tryexact": "Cerca currispunnenza giusta", "inputbox-searchfulltext": "Circata ntô testu", - "inputbox-createarticle": "Cria vuci", + "inputbox-createarticle": "Crea vuci", "inputbox-ns-main": "Principali" } diff --git a/extensions/InputBox/i18n/sco.json b/extensions/InputBox/i18n/sco.json new file mode 100644 index 00000000..678c1263 --- /dev/null +++ b/extensions/InputBox/i18n/sco.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "AmaryllisGardener" + ] + }, + "inputbox-tryexact": "Try exact match" +} diff --git a/extensions/InputBox/i18n/sd.json b/extensions/InputBox/i18n/sd.json index 6b3f87e3..2aacf655 100644 --- a/extensions/InputBox/i18n/sd.json +++ b/extensions/InputBox/i18n/sd.json @@ -1,4 +1,8 @@ { - "@metadata": [], - "inputbox-createarticle": "نئون مضمون لکو" + "@metadata": { + "authors": [ + "Mehtab ahmed" + ] + }, + "inputbox-createarticle": "نئون مضمون تخليق ڪريو" } diff --git a/extensions/InputBox/i18n/sgs.json b/extensions/InputBox/i18n/sgs.json index a03e3070..57073e8d 100644 --- a/extensions/InputBox/i18n/sgs.json +++ b/extensions/InputBox/i18n/sgs.json @@ -4,5 +4,6 @@ "Hugo.arg" ] }, + "inputbox-tryexact": "Miegīkat tėkslė paėiška", "inputbox-searchfulltext": "Ėiškuotė pėlna teksta" } diff --git a/extensions/InputBox/i18n/sh.json b/extensions/InputBox/i18n/sh.json index 2c0f9576..5bd764a3 100644 --- a/extensions/InputBox/i18n/sh.json +++ b/extensions/InputBox/i18n/sh.json @@ -1,8 +1,10 @@ { "@metadata": { "authors": [ - "Kolega2357" + "Kolega2357", + "OC Ripper" ] }, + "inputbox-tryexact": "Isprobaj naći tačan upit", "inputbox-searchfulltext": "Pretraži cijeli tekst - Претражи цео текст" } diff --git a/extensions/InputBox/i18n/tcy.json b/extensions/InputBox/i18n/tcy.json new file mode 100644 index 00000000..432d98f9 --- /dev/null +++ b/extensions/InputBox/i18n/tcy.json @@ -0,0 +1,9 @@ +{ + "@metadata": { + "authors": [ + "Bharathesha Alasandemajalu", + "Vishwanatha Badikana" + ] + }, + "inputbox-tryexact": "ಸರಿಯಾಯಿನ ಹೊಂದಾಣಿಕೆಗ್ ಪ್ರಯತ್ನೊ ಮಲ್ಪುಲೆ" +} diff --git a/extensions/InputBox/i18n/te.json b/extensions/InputBox/i18n/te.json index 74217b66..0a679de0 100644 --- a/extensions/InputBox/i18n/te.json +++ b/extensions/InputBox/i18n/te.json @@ -12,5 +12,7 @@ "inputbox-tryexact": "ఖచ్చితమైన పోలిక కొరకు ప్రయత్నించు", "inputbox-searchfulltext": "పూర్తి పాఠ్యంలో వెతుకు", "inputbox-createarticle": "వ్యాసాన్ని సృష్టించు", + "inputbox-postcomment": "కొత్త విభాగం", + "inputbox-postcommenttitle": "కొత్త విభాగం", "inputbox-ns-main": "ప్రధాన" } diff --git a/extensions/InputBox/i18n/tr.json b/extensions/InputBox/i18n/tr.json index 045e0e52..37465729 100644 --- a/extensions/InputBox/i18n/tr.json +++ b/extensions/InputBox/i18n/tr.json @@ -4,7 +4,8 @@ "Emperyan", "Erkan Yilmaz", "Joseph", - "Srhat" + "Srhat", + "Arystanbek" ] }, "inputbox-desc": "Öntanımlı HTML formlarının dahil edilmesine olanak verir", @@ -13,5 +14,8 @@ "inputbox-tryexact": "Tam eşleşme dene", "inputbox-searchfulltext": "Tüm metni ara", "inputbox-createarticle": "Sayfayı oluştur", + "inputbox-movearticle": "Sayfayı taşı", + "inputbox-postcomment": "Yeni bölüm", + "inputbox-postcommenttitle": "Yeni bölüm", "inputbox-ns-main": "Ana" } diff --git a/extensions/InputBox/i18n/war.json b/extensions/InputBox/i18n/war.json new file mode 100644 index 00000000..d75bf1aa --- /dev/null +++ b/extensions/InputBox/i18n/war.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "JinJian" + ] + }, + "inputbox-tryexact": "Pagbiling hin kapareho" +} diff --git a/extensions/InputBox/i18n/wuu.json b/extensions/InputBox/i18n/wuu.json index 4569ea94..eb87a668 100644 --- a/extensions/InputBox/i18n/wuu.json +++ b/extensions/InputBox/i18n/wuu.json @@ -1,5 +1,10 @@ { - "@metadata": [], + "@metadata": { + "authors": [ + "Poiuyt" + ] + }, + "inputbox-tryexact": "试试精准配对", "inputbox-searchfulltext": "全文搜寻", "inputbox-createarticle": "建立新文章" } diff --git a/extensions/InputBox/i18n/xmf.json b/extensions/InputBox/i18n/xmf.json new file mode 100644 index 00000000..4f404aa5 --- /dev/null +++ b/extensions/InputBox/i18n/xmf.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Silovan" + ] + }, + "inputbox-tryexact": "ქოცადი ზუსტი აკოხვალამა" +} diff --git a/extensions/InputBox/resources/ext.inputBox.js b/extensions/InputBox/resources/ext.inputBox.js index 2469fd13..7df4eeab 100644 --- a/extensions/InputBox/resources/ext.inputBox.js +++ b/extensions/InputBox/resources/ext.inputBox.js @@ -2,7 +2,7 @@ * Disable InputBox submit button when the corresponding text input field is empty. * * @author Tony Thomas - * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later + * @license http://opensource.org/licenses/MIT MIT License */ ( function ( $, mw ) { 'use strict'; diff --git a/extensions/InputBox/resources/ext.inputBox.styles.css b/extensions/InputBox/resources/ext.inputBox.styles.css index 9a996a4a..d2d1e13b 100644 --- a/extensions/InputBox/resources/ext.inputBox.styles.css +++ b/extensions/InputBox/resources/ext.inputBox.styles.css @@ -13,3 +13,7 @@ display: inline-table !important; white-space: nowrap; } + +.mw-inputbox-input { + margin-bottom: 0.5em; +}
\ No newline at end of file |