summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'extensions')
-rw-r--r--extensions/ConfirmEdit/Asirra.class.php55
-rw-r--r--extensions/ConfirmEdit/Asirra.php43
-rw-r--r--extensions/ConfirmEdit/README4
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/ast.json16
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/be-tarask.json19
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/br.json13
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/ca.json16
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/cs.json8
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/de-formal.json13
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/de.json17
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/diq.json8
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/en.json14
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/es.json18
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/fa.json18
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/fi.json17
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/fr.json18
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/gl.json16
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/he.json17
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/hsb.json16
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/ia.json16
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/it.json16
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/ja.json17
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/ko.json17
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/ksh.json16
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/lb.json13
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/mk.json16
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/ms.json16
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/mt.json16
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/nb.json16
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/nl-informal.json8
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/nl.json18
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/oc.json9
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/pl.json17
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/pms.json17
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/pt.json17
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/qqq.json19
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/roa-tara.json16
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/ru.json18
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/si.json9
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/sv.json20
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/tl.json16
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/uk.json17
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/wa.json16
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/zh-hans.json18
-rw-r--r--extensions/ConfirmEdit/i18n/asirra/zh-hant.json17
-rw-r--r--extensions/ConfirmEdit/resources/ext.confirmEdit.asirra.js54
-rw-r--r--extensions/Gadgets/tests/GadgetTest.php63
-rw-r--r--extensions/LocalisationUpdate/tests/phpunit/Makefile12
-rw-r--r--extensions/LocalisationUpdate/tests/phpunit/UpdaterTest.php80
-rw-r--r--extensions/LocalisationUpdate/tests/phpunit/finder/FinderTest.php70
-rw-r--r--extensions/LocalisationUpdate/tests/phpunit/reader/JSONReaderTest.php37
-rw-r--r--extensions/LocalisationUpdate/tests/phpunit/reader/ReaderFactoryTest.php38
-rw-r--r--extensions/ParserFunctions/tests/ExpressionTest.php76
-rw-r--r--extensions/PdfHandler/COPYING339
-rw-r--r--extensions/PdfHandler/CreatePdfThumbnailsJob.class.php126
-rw-r--r--extensions/PdfHandler/PdfHandler.i18n.php (renamed from extensions/ConfirmEdit/Asirra.i18n.php)8
-rw-r--r--extensions/PdfHandler/PdfHandler.image.php309
-rw-r--r--extensions/PdfHandler/PdfHandler.php66
-rw-r--r--extensions/PdfHandler/PdfHandler_body.php386
-rw-r--r--extensions/PdfHandler/i18n/af.json11
-rw-r--r--extensions/PdfHandler/i18n/aln.json10
-rw-r--r--extensions/PdfHandler/i18n/an.json10
-rw-r--r--extensions/PdfHandler/i18n/ar.json16
-rw-r--r--extensions/PdfHandler/i18n/arz.json10
-rw-r--r--extensions/PdfHandler/i18n/as.json13
-rw-r--r--extensions/PdfHandler/i18n/ast.json14
-rw-r--r--extensions/PdfHandler/i18n/azb.json8
-rw-r--r--extensions/PdfHandler/i18n/ba.json10
-rw-r--r--extensions/PdfHandler/i18n/bcl.json14
-rw-r--r--extensions/PdfHandler/i18n/be-tarask.json16
-rw-r--r--extensions/PdfHandler/i18n/bg.json13
-rw-r--r--extensions/PdfHandler/i18n/bn.json11
-rw-r--r--extensions/PdfHandler/i18n/br.json15
-rw-r--r--extensions/PdfHandler/i18n/bs.json10
-rw-r--r--extensions/PdfHandler/i18n/ca.json10
-rw-r--r--extensions/PdfHandler/i18n/ce.json12
-rw-r--r--extensions/PdfHandler/i18n/ckb.json8
-rw-r--r--extensions/PdfHandler/i18n/cs.json15
-rw-r--r--extensions/PdfHandler/i18n/cy.json14
-rw-r--r--extensions/PdfHandler/i18n/da.json14
-rw-r--r--extensions/PdfHandler/i18n/de-ch.json8
-rw-r--r--extensions/PdfHandler/i18n/de.json16
-rw-r--r--extensions/PdfHandler/i18n/diq.json16
-rw-r--r--extensions/PdfHandler/i18n/dsb.json14
-rw-r--r--extensions/PdfHandler/i18n/el.json10
-rw-r--r--extensions/PdfHandler/i18n/en-gb.json8
-rw-r--r--extensions/PdfHandler/i18n/en.json12
-rw-r--r--extensions/PdfHandler/i18n/eo.json13
-rw-r--r--extensions/PdfHandler/i18n/es.json15
-rw-r--r--extensions/PdfHandler/i18n/et.json15
-rw-r--r--extensions/PdfHandler/i18n/fa.json18
-rw-r--r--extensions/PdfHandler/i18n/fi.json18
-rw-r--r--extensions/PdfHandler/i18n/fr.json17
-rw-r--r--extensions/PdfHandler/i18n/frp.json10
-rw-r--r--extensions/PdfHandler/i18n/gl.json15
-rw-r--r--extensions/PdfHandler/i18n/grc.json9
-rw-r--r--extensions/PdfHandler/i18n/gsw.json14
-rw-r--r--extensions/PdfHandler/i18n/gu.json11
-rw-r--r--extensions/PdfHandler/i18n/he.json16
-rw-r--r--extensions/PdfHandler/i18n/hi.json10
-rw-r--r--extensions/PdfHandler/i18n/hr.json10
-rw-r--r--extensions/PdfHandler/i18n/hsb.json14
-rw-r--r--extensions/PdfHandler/i18n/hu.json15
-rw-r--r--extensions/PdfHandler/i18n/ia.json14
-rw-r--r--extensions/PdfHandler/i18n/id.json10
-rw-r--r--extensions/PdfHandler/i18n/ilo.json14
-rw-r--r--extensions/PdfHandler/i18n/it.json15
-rw-r--r--extensions/PdfHandler/i18n/ja.json15
-rw-r--r--extensions/PdfHandler/i18n/jv.json11
-rw-r--r--extensions/PdfHandler/i18n/ka.json15
-rw-r--r--extensions/PdfHandler/i18n/km.json13
-rw-r--r--extensions/PdfHandler/i18n/kn.json8
-rw-r--r--extensions/PdfHandler/i18n/ko.json15
-rw-r--r--extensions/PdfHandler/i18n/ksh.json14
-rw-r--r--extensions/PdfHandler/i18n/ky.json9
-rw-r--r--extensions/PdfHandler/i18n/lb.json14
-rw-r--r--extensions/PdfHandler/i18n/li.json10
-rw-r--r--extensions/PdfHandler/i18n/lrc.json8
-rw-r--r--extensions/PdfHandler/i18n/lt.json10
-rw-r--r--extensions/PdfHandler/i18n/mk.json15
-rw-r--r--extensions/PdfHandler/i18n/ml.json15
-rw-r--r--extensions/PdfHandler/i18n/mr.json12
-rw-r--r--extensions/PdfHandler/i18n/ms.json14
-rw-r--r--extensions/PdfHandler/i18n/mt.json8
-rw-r--r--extensions/PdfHandler/i18n/nb.json14
-rw-r--r--extensions/PdfHandler/i18n/nl.json15
-rw-r--r--extensions/PdfHandler/i18n/nn.json11
-rw-r--r--extensions/PdfHandler/i18n/oc.json14
-rw-r--r--extensions/PdfHandler/i18n/or.json15
-rw-r--r--extensions/PdfHandler/i18n/pdc.json8
-rw-r--r--extensions/PdfHandler/i18n/pl.json16
-rw-r--r--extensions/PdfHandler/i18n/pms.json15
-rw-r--r--extensions/PdfHandler/i18n/pnb.json10
-rw-r--r--extensions/PdfHandler/i18n/pt-br.json15
-rw-r--r--extensions/PdfHandler/i18n/pt.json16
-rw-r--r--extensions/PdfHandler/i18n/qqq.json16
-rw-r--r--extensions/PdfHandler/i18n/ro.json11
-rw-r--r--extensions/PdfHandler/i18n/roa-tara.json14
-rw-r--r--extensions/PdfHandler/i18n/ru.json15
-rw-r--r--extensions/PdfHandler/i18n/rue.json10
-rw-r--r--extensions/PdfHandler/i18n/sa.json10
-rw-r--r--extensions/PdfHandler/i18n/sah.json10
-rw-r--r--extensions/PdfHandler/i18n/si.json15
-rw-r--r--extensions/PdfHandler/i18n/sk.json10
-rw-r--r--extensions/PdfHandler/i18n/sl.json14
-rw-r--r--extensions/PdfHandler/i18n/sq.json10
-rw-r--r--extensions/PdfHandler/i18n/sr-ec.json11
-rw-r--r--extensions/PdfHandler/i18n/sr-el.json10
-rw-r--r--extensions/PdfHandler/i18n/stq.json10
-rw-r--r--extensions/PdfHandler/i18n/sv.json15
-rw-r--r--extensions/PdfHandler/i18n/ta.json14
-rw-r--r--extensions/PdfHandler/i18n/te.json8
-rw-r--r--extensions/PdfHandler/i18n/tk.json10
-rw-r--r--extensions/PdfHandler/i18n/tl.json10
-rw-r--r--extensions/PdfHandler/i18n/tr.json10
-rw-r--r--extensions/PdfHandler/i18n/ug-arab.json9
-rw-r--r--extensions/PdfHandler/i18n/uk.json15
-rw-r--r--extensions/PdfHandler/i18n/ur.json8
-rw-r--r--extensions/PdfHandler/i18n/vec.json15
-rw-r--r--extensions/PdfHandler/i18n/vi.json15
-rw-r--r--extensions/PdfHandler/i18n/yo.json8
-rw-r--r--extensions/PdfHandler/i18n/yue.json6
-rw-r--r--extensions/PdfHandler/i18n/zh-hans.json15
-rw-r--r--extensions/PdfHandler/i18n/zh-hant.json17
-rw-r--r--extensions/PdfHandler/tests/browser/Gemfile.lock62
-rw-r--r--extensions/PdfHandler/tests/browser/features/pdf.feature22
-rw-r--r--extensions/PdfHandler/tests/browser/features/step_definitions/pdf_steps.rb20
-rw-r--r--extensions/PdfHandler/tests/browser/features/support/env.rb12
-rw-r--r--extensions/PdfHandler/tests/browser/features/support/pages/random_page.rb17
-rw-r--r--extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php12
-rw-r--r--extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php6
-rw-r--r--extensions/TitleBlacklist/tests/ApiQueryTitleBlacklistTest.php132
-rw-r--r--extensions/TitleBlacklist/tests/testSource5
-rw-r--r--extensions/WikiEditor/tests/selenium/WikiDialogs_Links.php67
-rw-r--r--extensions/WikiEditor/tests/selenium/WikiDialogs_Links_Setup.php295
-rw-r--r--extensions/WikiEditor/tests/selenium/WikiEditorConstants.php84
-rw-r--r--extensions/WikiEditor/tests/selenium/WikiEditorSeleniumConfig.php24
-rw-r--r--extensions/WikiEditor/tests/selenium/WikiEditorTestSuite.php32
178 files changed, 3689 insertions, 829 deletions
diff --git a/extensions/ConfirmEdit/Asirra.class.php b/extensions/ConfirmEdit/Asirra.class.php
deleted file mode 100644
index ae1178a1..00000000
--- a/extensions/ConfirmEdit/Asirra.class.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-/**
- * @author Bachsau
- * @author Niklas Laxström
- */
-
-class Asirra extends SimpleCaptcha {
- public $asirra_clientscript = '//challenge.asirra.com/js/AsirraClientSide.js';
-
- // As we don't have to store anything but some other things to do,
- // we're going to replace that constructor completely.
- function __construct() {
- global $wgExtensionAssetsPath;
- $this->asirra_localpath = "$wgExtensionAssetsPath/ConfirmEdit";
- }
-
- function getForm() {
- global $wgOut;
-
- $wgOut->addModules( 'ext.confirmEdit.asirra' );
- $js = Html::linkedScript( $this->asirra_clientscript );
-
- $message = Xml::encodeJsVar( wfMessage( 'asirra-createaccount-fail' )->plain() );
- $js .= Html::inlineScript( <<<JAVASCRIPT
-var asirra_js_failed = '$message';
-JAVASCRIPT
- );
- $js .= '<noscript>' . wfMessage( 'asirra-nojs' )->parse() . '</noscript>';
- return $js;
- }
-
- function getMessage( $action ) {
- $name = 'asirra-' . $action;
- $text = wfMessage( $name )->text();
- # Obtain a more tailored message, if possible, otherwise, fall
- # back to the default for edits
- return wfMessage( $name, $text )->isDisabled() ? wfMessage( 'asirra-edit' )->text() : $text;
- }
-
- function passCaptcha() {
- global $wgRequest;
-
- $ticket = $wgRequest->getVal( 'Asirra_Ticket' );
- $api = 'http://challenge.asirra.com/cgi/Asirra?';
- $params = array(
- 'action' => 'ValidateTicket',
- 'ticket' => $ticket,
- );
-
- $response = Http::get( $api . wfArrayToCgi( $params ) );
- $xml = simplexml_load_string( $response );
- $result = $xml->xpath( '/AsirraValidation/Result' );
- return strval( $result[0] ) === 'Pass';
- }
-}
diff --git a/extensions/ConfirmEdit/Asirra.php b/extensions/ConfirmEdit/Asirra.php
deleted file mode 100644
index a5d5012f..00000000
--- a/extensions/ConfirmEdit/Asirra.php
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-/**
- * Asirra CAPTCHA module for the ConfirmEdit MediaWiki extension.
- * @author Bachsau
- * @author Niklas Laxström
- *
- * Makes use of the Asirra (Animal Species Image Recognition for
- * Restricting Access) CAPTCHA service, developed by John Douceur, Jeremy
- * Elson and Jon Howell at Microsoft Research.
- *
- * Asirra uses a large set of images from http://petfinder.com.
- *
- * For more information about Asirra, see:
- * http://research.microsoft.com/en-us/um/redmond/projects/asirra/
- *
- * This MediaWiki code is released into the public domain, without any
- * warranty. YOU CAN DO WITH IT WHATEVER YOU LIKE!
- *
- * @file
- * @ingroup Extensions
- */
-
-if ( !defined( 'MEDIAWIKI' ) ) {
- exit;
-}
-
-$dir = __DIR__;
-require_once( $dir . '/ConfirmEdit.php' );
-
-$wgCaptchaClass = 'Asirra';
-$wgMessagesDirs['Asirra'] = __DIR__ . '/i18n/asirra';
-$wgExtensionMessagesFiles['Asirra'] = $dir . '/Asirra.i18n.php';
-$wgAutoloadClasses['Asirra'] = $dir . '/Asirra.class.php';
-
-$wgResourceModules['ext.confirmEdit.asirra'] = array(
- 'localBasePath' => $dir . '/resources',
- 'remoteExtPath' => 'ConfirmEdit/resources',
- 'scripts' => 'ext.confirmEdit.asirra.js',
- 'messages' => array(
- 'asirra-failed',
- ),
-);
-
diff --git a/extensions/ConfirmEdit/README b/extensions/ConfirmEdit/README
index acfe481a..7a331e6b 100644
--- a/extensions/ConfirmEdit/README
+++ b/extensions/ConfirmEdit/README
@@ -19,8 +19,6 @@ in a stylized way
questions defined by the administrator(s)
* ReCaptcha - users have to identify a series of characters, either
visually or audially, from a widget provided by the reCAPTCHA service
-* Asirra - users have to identify the cats in a set of photos of cats
-and dogs, from a widget provided by the Microsoft Asirra service
== License ==
@@ -37,8 +35,6 @@ The QuestyCaptcha module was written by Benjamin Lees.
The reCAPTCHA module was written by Mike Crawford and Ben Maurer.
-The Asirra module was written by Bachsau.
-
Additional maintenance work was done by Yaron Koren.
== Changelog ==
diff --git a/extensions/ConfirmEdit/i18n/asirra/ast.json b/extensions/ConfirmEdit/i18n/asirra/ast.json
deleted file mode 100644
index 626c4896..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/ast.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "Xuacu"
- ]
- },
- "asirra-desc": "Módulu Asirra pa ConfirmEdit",
- "asirra-edit": "Pa protexer la wiki escontra'l spam d'edición automáticu, pidimos-y qu'esbille namái les fotos de gatos del cuadru d'abaxo:",
- "asirra-addurl": "La so edición incluye enllaces esternos nuevos. Pa protexer la wiki escontra'l spam automáticu, pidimos-y qu'esbille namái les fotos de gatos del cuadru d'abaxo:",
- "asirra-badlogin": "Pa protexer la wiki escontra'l frayamientu de claves automáticu, pidimos-y qu'esbille namái les fotos de gatos del cuadru d'abaxo:",
- "asirra-createaccount": "Pa protexer la wiki escontra la creación de cuentes automática, pidimos-y qu'esbille namái les fotos de gatos del cuadru d'abaxo:",
- "asirra-createaccount-fail": "Identifique correutamente los gatos.",
- "asirra-create": "Pa protexer la wiki escontra la creación de páxines automática, pidimos-y qu'esbille namái les fotos de gatos del cuadru d'abaxo:",
- "asirra-nojs": "'''Por favor active JavaScript y vuelva a unviar la páxina.'''",
- "asirra-failed": "Identifique toles imaxes de gatos"
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/be-tarask.json b/extensions/ConfirmEdit/i18n/asirra/be-tarask.json
deleted file mode 100644
index c829700e..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/be-tarask.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "EugeneZelenko",
- "Jim-by",
- "Wizardist",
- "Red Winged Duck"
- ]
- },
- "asirra-desc": "Модуль Asirra для ConfirmEdit",
- "asirra-edit": "Для абароны вікі ад аўтаматычнага спаму ў праўках, просім вас выбраць толькі фотаздымкі з катом у полі ніжэй:",
- "asirra-addurl": "Вашае рэдагаваньне ўтрымлівае новыя вонкавыя спасылкі. Для абароны вікі ад аўтаматычнага спаму ў праўках, мы просім вас выбраць толькі фотаздымкі катоў у полі ніжэй:",
- "asirra-badlogin": "Для абароны вікі ад аўтаматычнага падбору паролю, просім вас выбраць толькі фотаздымкі катоў у полі ніжэй:",
- "asirra-createaccount": "Для абароны вікі ад аўтаматычнага стварэньня рахункаў, просім вас выбраць толькі фотаздымкі катоў у полі ніжэй:",
- "asirra-createaccount-fail": "Калі ласка, слушна выберыце катоў.",
- "asirra-create": "Для абароны вікі ад аўтаматычнага стварэньня старонак, просім вас выбраць толькі фотаздымкі катоў у полі ніжэй:",
- "asirra-nojs": "'''Калі ласка, дазвольце JavaScript і дашліце старонку зноў.'''",
- "asirra-failed": "Калі ласка, вызначце ўсе выявы з катамі"
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/br.json b/extensions/ConfirmEdit/i18n/asirra/br.json
deleted file mode 100644
index 4b5d3c6d..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/br.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "Fohanno"
- ]
- },
- "asirra-desc": "Modulenn Asirra evit ConfirmEdit",
- "asirra-edit": "Evit sikour da wareziñ ar wiki diouzh ar stroboù emgefre, diuzit ar skeudennoù kizhier er voest dindan :",
- "asirra-createaccount-fail": "Diuzit ar c'hizhier, mar plij.",
- "asirra-create": "Evit gwareziñ ar wiki diouzh ar c'hrouiñ pajennoù emgefre, diuzit ar skeudennoù kizhier er voest dindan :",
- "asirra-nojs": "'''Gweredekait JavaScript, mar plij, hag adkasit ar bajenn.'''",
- "asirra-failed": "Diuzit an holl skeudennoù kizhier, mar plij"
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/ca.json b/extensions/ConfirmEdit/i18n/asirra/ca.json
deleted file mode 100644
index 9119f0fa..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/ca.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "Toniher"
- ]
- },
- "asirra-desc": "Mòdul Asirra de ConfirmEdit",
- "asirra-edit": "Per tal de protegir el wiki contra les edicions brosses, us demanem que seleccioneu només les fotos de gats del requadre a continuació:",
- "asirra-addurl": "La modificació inclou nous enllaços externs. Per tal de protegir el wiki davant d'edicions brossa, us demanem que seleccioneu només les fotos de gots del requadre a continuació:",
- "asirra-badlogin": "Per tal de protegir el wiki contra els intents de trencament de contrasenyes, us demanem que seleccioneu només les fotos de gats del requadre a continuació:",
- "asirra-createaccount": "Per tal de protegir el wiki contra la creació automatitzada de comptes, us demanem que seleccioneu només les fotos de gats del requadre a continuació:",
- "asirra-createaccount-fail": "Identifiqueu correctament els gats.",
- "asirra-create": "Per tal de protegir el wiki contra la creació automàtica de pàgines, us demanem que seleccioneu només les fotos de gats del requadre a continuació:",
- "asirra-nojs": "'''Habilitieu el JavaScript i torneu a enviar la pàgina.'''",
- "asirra-failed": "Identifiqueu totes les imatges de gats"
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/cs.json b/extensions/ConfirmEdit/i18n/asirra/cs.json
deleted file mode 100644
index df7cccbf..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/cs.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "Vks"
- ]
- },
- "asirra-createaccount-fail": "Prosíme, správně identifikujte kočky."
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/de-formal.json b/extensions/ConfirmEdit/i18n/asirra/de-formal.json
deleted file mode 100644
index 87f8f119..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/de-formal.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "Kghbln"
- ]
- },
- "asirra-addurl": "Ihre Bearbeitung enthält neue externe Links. Zum Schutz vor automatisiertem Spam bitten wir Sie, nur die Fotos mit Katzen im untenstehenden Feld auszuwählen:",
- "asirra-badlogin": "Zum Schutz gegen automatisiertes Knacken von Passwörtern bitten wir Sie, nur die Fotos mit Katzen im untenstehenden Feld auszuwählen:",
- "asirra-createaccount": "Zum Schutz gegen automatisiertes Erstellen von Benutzerkonten bitten wir Sie, nur die Fotos mit Katzen im untenstehenden Feld auszuwählen:",
- "asirra-createaccount-fail": "Bitte wählen Sie nur die Fotos mit Katzen aus.",
- "asirra-create": "Zum Schutz gegen automatisiertes Erstellen von Seiten bitten wir Sie, nur die Fotos mit Katzen im untenstehenden Feld auszuwählen:",
- "asirra-failed": "Bitte wählen Sie nur die Fotos mit Katzen aus."
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/de.json b/extensions/ConfirmEdit/i18n/asirra/de.json
deleted file mode 100644
index be745a09..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/de.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "Kghbln",
- "Metalhead64"
- ]
- },
- "asirra-desc": "Ermöglicht die Nutzung des Anti-Spam-Moduls Asirra",
- "asirra-edit": "Zum Schutz des Wikis vor automatisiertem Spam bitten wir dich, nur die Fotos mit Katzen im untenstehenden Feld auszuwählen:",
- "asirra-addurl": "Deine Bearbeitung enthält neue externe Links. Zum Schutz des Wikis vor automatisiertem Spam bitten wir dich, nur die Fotos mit Katzen im untenstehenden Feld auszuwählen:",
- "asirra-badlogin": "Zum Schutz des Wikis gegen automatisiertes Knacken von Passwörtern bitten wir dich, nur die Fotos mit Katzen im untenstehenden Feld auszuwählen:",
- "asirra-createaccount": "Zum Schutz des Wikis gegen automatisiertes Erstellen von Benutzerkonten bitten wir dich, nur die Fotos mit Katzen im untenstehenden Feld auszuwählen:",
- "asirra-createaccount-fail": "Bitte wähle nur die Fotos mit Katzen aus.",
- "asirra-create": "Zum Schutz des Wikis gegen automatisiertes Erstellen von Seiten bitten wir dich, nur die Fotos mit Katzen im untenstehenden Feld auszuwählen:",
- "asirra-nojs": "'''Bitte JavaScript aktivieren und die Seiten nochmals Speichern.'''",
- "asirra-failed": "Bitte wähle nur die Fotos mit Katzen aus."
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/diq.json b/extensions/ConfirmEdit/i18n/asirra/diq.json
deleted file mode 100644
index 09196703..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/diq.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "Erdemaslancan"
- ]
- },
- "asirra-desc": "Qandê Asirra modulê RaştkerdenVurnen"
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/en.json b/extensions/ConfirmEdit/i18n/asirra/en.json
deleted file mode 100644
index 9c98683b..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/en.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "@metadata": {
- "authors": []
- },
- "asirra-desc": "Asirra module for ConfirmEdit",
- "asirra-edit": "To protect the wiki against automated edit spam, we kindly ask you to select just the cat photos in the box below:",
- "asirra-addurl": "Your edit includes new external links. To protect the wiki against automated edit spam, we kindly ask you to select just the cat photos in the box below:",
- "asirra-badlogin": "To protect the wiki against automated password cracking, we kindly ask you to select just the cat photos in the box below:",
- "asirra-createaccount": "To protect the wiki against automated account creation, we kindly ask you to select just the cat photos in the box below:",
- "asirra-createaccount-fail": "Please correctly identify the cats.",
- "asirra-create": "To protect the wiki against automated page creation, we kindly ask you to select just the cat photos in the box below:",
- "asirra-nojs": "'''Please enable JavaScript and resubmit the page.'''",
- "asirra-failed": "Please identify all cat images"
-} \ No newline at end of file
diff --git a/extensions/ConfirmEdit/i18n/asirra/es.json b/extensions/ConfirmEdit/i18n/asirra/es.json
deleted file mode 100644
index 875912d8..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/es.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "Armando-Martin",
- "Carlosz22",
- "Ciencia Al Poder"
- ]
- },
- "asirra-desc": "Módulo de Asirra para ConfirmEdit",
- "asirra-edit": "Para ayudar a protegernos contra el spam de ediciones automáticas, seleccione sólo las fotos de gatos en el cuadro siguiente:",
- "asirra-addurl": "Tu edición incluye nuevos enlaces externos. Para proteger el wiki contra el spam automatizado, por favor, te pedimos que selecciones solo las fotos de gatos en el cuadro siguiente:",
- "asirra-badlogin": "Para proteger el wiki contra el robo automatizado de contraseñas, te pedimos por favor que selecciones únicamente las fotos de gatos en el cuadro siguiente:",
- "asirra-createaccount": "Para proteger el wiki contra la creación automatizada de cuentas de usuario, te pedimos por favor que selecciones únicamente las fotos de gatos en el cuadro siguiente:",
- "asirra-createaccount-fail": "Identifique correctamente los gatos.",
- "asirra-create": "Para proteger el wiki contra la creación automatizada de páginas, te pedimos por favor que selecciones únicamente las fotos de gatos en el cuadro siguiente:",
- "asirra-nojs": "'''Por favor active JavaScript y vuelva a la página.'''",
- "asirra-failed": "Identifique todas las imágenes de gatos"
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/fa.json b/extensions/ConfirmEdit/i18n/asirra/fa.json
deleted file mode 100644
index b06627b9..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/fa.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "Armin1392",
- "Ebraminio",
- "Alirezaaa"
- ]
- },
- "asirra-desc": "بخش آسیرا برای تأیید ویرایش",
- "asirra-edit": " برای محافظت ویکی دربرابر ویرایش خودکار اسپم، ما دوستانه از شما درخواست می‌کنیم که تنها عکس‌های گربه را در جعبهٔ زیر انتخاب کنید:",
- "asirra-addurl": "ویرایش شما شامل پیوندهای خارجی تازه است. برای محافظت ویکی دربرابر ویرایش خودکار هرزنگاری، ما دوستانه از شما درخواست می‌کنیم که تنها عکس‌های گربه را در جعبهٔ زیر انتخاب کنید:",
- "asirra-badlogin": "برای محافظت ویکی دربرابر رخنه به رمز‌ عبور به طور خودکار، ما دوستانه از شما درخواست می‌کنیم که تنها عکس‌های گربه را در جعبهٔ زیر انتخاب کنید:",
- "asirra-createaccount": "برای محافظت ویکی دربرابر ایجاد حساب به طور خودکار، ما دوستانه از شما درخواست می‌کنیم که تنها عکس‌های گربه را در جعبهٔ زیر انتخاب کنید:",
- "asirra-createaccount-fail": "لطفاً این گربه‌ها را به درستی شناسایی کنید.",
- "asirra-create": "برای محافظت ویکی دربرابر ایجاد صفحه به طور خودکار، ما دوستانه از شما درخواست می‌کنیم که تنها عکس‌های گربه را در جعبهٔ زیر انتخاب کنید:",
- "asirra-nojs": "'''لطفاً جاوااسکریپت را فعال کنید و صفحه را دوباره ارائه کنید.'''",
- "asirra-failed": "لطفاً همهٔ عکس‌های گربه را شناسایی کنید"
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/fi.json b/extensions/ConfirmEdit/i18n/asirra/fi.json
deleted file mode 100644
index bf3bfe3d..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/fi.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "VezonThunder",
- "Nedergard"
- ]
- },
- "asirra-desc": "Asirra-moduuli muokkauksen varmennukseen",
- "asirra-edit": "Suojana automaattisia roskamuokkauksia vastaan sinun on valittava kissan kuvat laatikosta alla:",
- "asirra-addurl": "Muokkauksesi sisältää uusia ulkoisia linkkejä. Suojana automaattista roskapostia vastaan sinun on valittava kissan kuvat laatikosta alla:",
- "asirra-badlogin": "Suojana automaattisia salasanamurtoja vastaan sinun on valittava kissan kuvat laatikosta alla:",
- "asirra-createaccount": "Suojana automaattista tunnusten luontia vastaan sinun on valittava kissan kuvat laatikosta alla:",
- "asirra-createaccount-fail": "Tunnista kissat.",
- "asirra-create": "Suojana automaattista sivujen luontia vastaan sinun on valittava kissojen kuvat alta:",
- "asirra-nojs": "'''Salli JavaScript ja lähetä uudelleen.'''",
- "asirra-failed": "Tunnista kaikki kissan kuvat"
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/fr.json b/extensions/ConfirmEdit/i18n/asirra/fr.json
deleted file mode 100644
index e9c0d73d..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/fr.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "Gomoko",
- "Nicolas NALLET",
- "Seb35"
- ]
- },
- "asirra-desc": "Module Asirra pour ConfirmEdit",
- "asirra-edit": "Pour protéger le wiki contre le spam d’édition automatique, nous vous demandons de bien vouloir sélectionner uniquement les photos de chats dans la boîte ci-dessous :",
- "asirra-addurl": "Votre édition contient des liens externes. Pour protéger le wiki contre le spam de modification automatique, nous vous demandons de bien vouloir sélectionner uniquement les photos de chats dans la boîte ci-dessous :",
- "asirra-badlogin": "Pour protéger le wiki des essais automatiques de cassage de mot de passe, nous vous demandons de bien vouloir sélectionner uniquement les photos de chats dans la boîte ci-dessous :",
- "asirra-createaccount": "Pour protéger le wiki contre la création automatique de comptes, nous vous demandons de bien vouloir sélectionner uniquement les photos de chats dans la boîte ci-dessous :",
- "asirra-createaccount-fail": "Veuillez identifier correctement les chats.",
- "asirra-create": "Pour protéger le wiki contre la création automatique de pages, nous vous demandons de bien vouloir sélectionner uniquement les photos de chats dans la boîte ci-dessous :",
- "asirra-nojs": "'''Veuillez activer le JavaScript et re-soumettre la page.'''",
- "asirra-failed": "Veuillez identifier toutes les images de chat"
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/gl.json b/extensions/ConfirmEdit/i18n/asirra/gl.json
deleted file mode 100644
index e5f33605..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/gl.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "Toliño"
- ]
- },
- "asirra-desc": "Módulo Asirra para ConfirmEdit",
- "asirra-edit": "Para protexer o wiki contra o spam automático, seleccione só as fotos de gatos na caixa:",
- "asirra-addurl": "A súa edición inclúe novas ligazóns externas. Para protexer o wiki contra o spam automático, seleccione só as fotos de gatos na caixa:",
- "asirra-badlogin": "Para protexer o wiki contra o roubo de contrasinais, seleccione só as fotos de gatos na caixa:",
- "asirra-createaccount": "Para protexer o wiki contra a creación automática de contas, seleccione só as fotos de gatos na caixa:",
- "asirra-createaccount-fail": "Identifique correctamente os gatos.",
- "asirra-create": "Para protexer o wiki contra a creación automática de páxinas, seleccione só as fotos de gatos na caixa:",
- "asirra-nojs": "'''Active o JavaScript e volva enviar a páxina.'''",
- "asirra-failed": "Identifique todas as fotos de gatos"
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/he.json b/extensions/ConfirmEdit/i18n/asirra/he.json
deleted file mode 100644
index 7288819a..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/he.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "Yona b",
- "ערן"
- ]
- },
- "asirra-desc": "מודול Asirra לאישור עריכה (ConfirmEdit)",
- "asirra-edit": "כדי להגן על הוויקי מעריכות ספאם אוטומטיות, נבקשך לבחור רק את תמונות החתולים בתיבה שלהלן:",
- "asirra-addurl": "העריכה שלך כוללת קישורים חיצוניים חדשים. כדי להגן על הויקי מעריכות ספאם אוטומטיות, נבקשך לבחור רק את תמונות החתולים בתיבה שלהלן:",
- "asirra-badlogin": "כדי להגן על הוויקי מפיצוח אוטומטי של סיסמאות, נבקשך לבחור רק את תמונות החתולים בתיבה שלהלן:",
- "asirra-createaccount": "כדי להגן על הוויקי מפני יצירה אוטומטית של חשבונות, נבקשך לבחור רק את תמונות החתולים בתיבה שלהלן:",
- "asirra-createaccount-fail": "יש לזהות כראוי את החתולים.",
- "asirra-create": "כדי להגן על הוויקי מפני יצירה אוטומטית של דפים, נבקשך לבחור רק את תמונות החתולים בתיבה שלהלן:",
- "asirra-nojs": "'''יש לאפשר JavaScript ולשלוח מחדש את הדף.'''",
- "asirra-failed": "יש לזהות את כל תמונות החתולים"
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/hsb.json b/extensions/ConfirmEdit/i18n/asirra/hsb.json
deleted file mode 100644
index 264d31e3..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/hsb.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "Michawiki"
- ]
- },
- "asirra-desc": "Modul Asirra za ConfirmEdit",
- "asirra-edit": "Za škit přećiwo awtomatizowanemu spamej, prošu wubjer jenož fota kóčkow w slědowacym polu:",
- "asirra-addurl": "Twoja změna wobsahuje nowe eksterne wotkazy. Za škit přećiwo awtomatizowanemu spamej, prošu wubjer jenož fota kóčkow w slědowacym polu:",
- "asirra-badlogin": "Za škit přećiwo awtomatizowanemu złamanju hesłow, prošu wubjer jenož fota kóčkow w slědowacym polu:",
- "asirra-createaccount": "Za škit přećiwo awtomatiskemu wutworjenju konta, prošu wubjer jenož fota kóčkow w slědowacym polu:",
- "asirra-createaccount-fail": "Prošu identifikuj kóčki.",
- "asirra-create": "Za škit přećiwo awtomatiskemu wutworjenju strony, prošu wubjer jenož fota kóčkow w slědowacym polu:",
- "asirra-nojs": "'''Prošu zmóžń JavaScript a składuj stronu hišće raz.'''",
- "asirra-failed": "Prošu identifikuj wšě wobrazy z kóčkami"
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/ia.json b/extensions/ConfirmEdit/i18n/asirra/ia.json
deleted file mode 100644
index ef2a783b..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/ia.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "McDutchie"
- ]
- },
- "asirra-desc": "Modulo de Asirra pro ConfirmEdit",
- "asirra-edit": "Pro adjutar a proteger le wiki contra le spam automatisate, per favor selige solmente le photos de cattos in le quadro sequente:",
- "asirra-addurl": "Iste modification include nove ligamines externe. Pro adjutar a proteger le wiki contra le spam automatisate, per favor selige solmente le photos de cattos in le quadro sequente:",
- "asirra-badlogin": "Pro adjutar a proteger le wiki contra le furto automatisate de contrasignos, per favor selige solmente le photos de cattos in le quadro sequente:",
- "asirra-createaccount": "Pro adjutar a proteger le wiki contra le creation automatisate de contos, per favor selige solmente le photos de cattos in le quadro sequente:",
- "asirra-createaccount-fail": "Per favor identifica correctemente le cattos.",
- "asirra-create": "Pro adjutar a proteger le wiki contra le creation automatisate de paginas, per favor selige solmente le photos de cattos in le quadro sequente:",
- "asirra-nojs": "'''Per favor activa JavaScript e resubmitte le pagina.'''",
- "asirra-failed": "Per favor identifica tote le imagines de cattos"
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/it.json b/extensions/ConfirmEdit/i18n/asirra/it.json
deleted file mode 100644
index d70b715f..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/it.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "Beta16"
- ]
- },
- "asirra-desc": "Modulo ASIRRA per ConfirmEdit",
- "asirra-edit": "Per proteggere il wiki dalle modifiche automatiche che aggiungono spam, ti chiediamo gentilmente di selezionare solo le foto di gatti nel riquadro sottostante:",
- "asirra-addurl": "La tua modifica aggiunge qualche nuovo collegamento esterno. Per proteggere il wiki dallo spam automatico, ti chiediamo gentilmente di selezionare solo le foto di gatti nel riquadro sottostante:",
- "asirra-badlogin": "Per proteggere il wiki dalla forzatura automatica delle password, ti chiediamo gentilmente di selezionare solo le foto di gatti nel riquadro sottostante:",
- "asirra-createaccount": "Per proteggere il wiki dalla creazione automatica di nuovi accessi, ti chiediamo gentilmente di selezionare solo le foto di gatti nel riquadro sottostante:",
- "asirra-createaccount-fail": "Identifica correttamente i gatti.",
- "asirra-create": "Per proteggere il wiki dalla creazione automatica di pagine, ti chiediamo gentilmente di selezionare solo le foto di gatti nel riquadro sottostante:",
- "asirra-nojs": "'''Attiva JavaScript ed invia di nuovo la pagina.'''",
- "asirra-failed": "Identifica tutte le immagini di gatti"
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/ja.json b/extensions/ConfirmEdit/i18n/asirra/ja.json
deleted file mode 100644
index 7c920716..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/ja.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "2nd-player",
- "Shirayuki"
- ]
- },
- "asirra-desc": "ConfirmEdit 用 Asirra モジュール",
- "asirra-edit": "ウィキでの自動編集のスパム攻撃を防ぐため、お手数をおかけしますが猫が写っている画像を以下から選択してください:",
- "asirra-addurl": "あなたは新しい外部リンクを追加しようとしています。ウィキへの自動スパム攻撃を防ぐため、お手数をおかけしますが猫が写っている画像を以下から選択してください:",
- "asirra-badlogin": "ウィキへの自動パスワードクラック攻撃を防ぐため、お手数をおかけしますが猫が写っている画像を以下から選択してください:",
- "asirra-createaccount": "ウィキでのアカウント自動作成を防ぐため、お手数をおかけしますが猫が写っている画像を以下から選択してください:",
- "asirra-createaccount-fail": "猫を正しく選択してください。",
- "asirra-create": "ウィキでのページ自動作成を防ぐため、お手数をおかけしますが猫が写っている画像を以下から選択してください:",
- "asirra-nojs": "'''JavaScript を有効にしてページを再読込してください。'''",
- "asirra-failed": "猫が写っている画像をすべて選択してください"
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/ko.json b/extensions/ConfirmEdit/i18n/asirra/ko.json
deleted file mode 100644
index 2c4057c9..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/ko.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "Hym411",
- "아라"
- ]
- },
- "asirra-desc": "ConfirmEdit에 대한 Asirra 모듈",
- "asirra-edit": "자동화된 편집 스팸으로부터 보호하기 위해, 아래 상자에 있는 고양이 사진을 선택하세요:",
- "asirra-addurl": "편집에 새로운 바깥 링크가 포함되어 있습니다. 자동화된 스팸으로부터 보호하기 위해, 아래 상자에 있는 고양이 사진을 선택하세요:",
- "asirra-badlogin": "자동화된 비밀번호 크래킹으로부터 보호하기 위해, 아래 상자에 있는 고양이 사진을 선택하세요:",
- "asirra-createaccount": "자동화된 계정 만들기로부터 위키를 보호하기 위해, 아래 상자에 있는 고양이 사진을 선택하세요:",
- "asirra-createaccount-fail": "고양이를 올바르게 선택하세요.",
- "asirra-create": "자동화된 문서 만들기로부터 위키를 보호하기 위해, 아래 상자에 있는 고양이 사진을 선택하세요:",
- "asirra-nojs": "'''자바스크립트를 활성화하고 문서를 다시 제출하세요.'''",
- "asirra-failed": "고양이 그림을 모두 선택하세요"
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/ksh.json b/extensions/ConfirmEdit/i18n/asirra/ksh.json
deleted file mode 100644
index be35837d..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/ksh.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "Purodha"
- ]
- },
- "asirra-desc": "Dä Zohsaz <i lang=\"en\">Asirra</i> för et Zohsazprojramm <i lang=\"en\">ConfirmEdit</i>.",
- "asirra-edit": "Heh dat Wiki well sesch jääje <i lang=\"en\">SPAM</i> schöze. Dröm moß mer beim Ändere noch en Prööfong aflääje, dat mer ene Minsch un kei Projramm es. Söhk bloß de Katzebelder em Kaßte us:",
- "asirra-addurl": "Heh dat Wiki well sesch jääje <i lang=\"en\">SPAM</i> schöze. Dröm moß mer, wam_mer lengks noh ußerhallef enfööje well, noch en Prööfong aflääje, dat mer ene Minsch un kei Projramm es. Söhk bloß de Katzebelder em Kaßte us:",
- "asirra-badlogin": "Heh dat Wiki well sesch jääje et automattesche Paßwoot_Knacke schöze. Dröm moß mer heh nor_en Prööfong aflääje, dat mer ene Minsch un kei Projramm es. Söhk bloß de Katzebelder em Kaßte us:",
- "asirra-createaccount": "Heh dat Wiki well sesch jääje automattesch aanjelaate „Metmaacher“ schöze. Dröm moß mer heh nor_en Prööfong aflääje, dat mer ene Minsch un kei Projramm es. Söhk bloß de Katzebelder em Kaßte us:",
- "asirra-createaccount-fail": "Bes esu jood un don de Kazebelder ußwähle.",
- "asirra-create": "Heh dat Wiki well sesch jääje automattesch neu aanjelaate Sigge schöze. Dröm moß mer heh nor_en Prööfong aflääje, dat mer ene Minsch un kei Projramm es. Söhk bloß de Katzebelder em Kaßte us:",
- "asirra-nojs": "'''Bes esu jood un donn JavaSkrep en Dingem Brauser aanschallde un scheck heh di Sigg norr_ens af.'''",
- "asirra-failed": "Bes esu jood un don all de Kazebelder ußwähle."
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/lb.json b/extensions/ConfirmEdit/i18n/asirra/lb.json
deleted file mode 100644
index 42d266b8..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/lb.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "Robby"
- ]
- },
- "asirra-desc": "Asirra-Modul fir ConfirmEdit",
- "asirra-edit": "Fir d'Wiki géint automatiséierte Spam ze schützen froe mir Iech just d'Fotoe mat Kazen, déi Dir an der Këscht ënnendrënner gesitt, erauszesichen:",
- "asirra-addurl": "An Ärer Ännerung sinn nei extern Linken. Fir d'Wiki géint automatiséierte Spam ze schützen, froe mir Iech d'Kategorie vun de Fotoen an der Këscht ënnendrënner erauszesichen:",
- "asirra-createaccount-fail": "Identifizéiert d'Kaze w.e.g. richteg.",
- "asirra-nojs": "'''Aktivéiert w.e.g. JavaScript a schéckt d'Säit nachemol.'''",
- "asirra-failed": "Identifizéiert w.e.g. all Biller wou Kazen drop sinn"
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/mk.json b/extensions/ConfirmEdit/i18n/asirra/mk.json
deleted file mode 100644
index fe6c6a8e..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/mk.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "Bjankuloski06"
- ]
- },
- "asirra-desc": "Asirra-модул за ПотврдиУредување",
- "asirra-edit": "Како заштитна мерка против автоматизиран спам, би ве замолиле да ги изберете само сликите со мачка прикажани во полето:",
- "asirra-addurl": "Во вашите измени има нови надворешни врски. Како заштитна мерка против автоматизиран спам, би ве замолиле да ги изберете само сликите со мачка прикажани во полето:",
- "asirra-badlogin": "Како заштитна мерка против автоматизирано провалување на лозинки, би ве замолиле да ги изберете само сликите со мачка прикажани во полето:",
- "asirra-createaccount": "Како заштитна мерка против автоматизирано создавање на сметки, би ве замолиле да ги изберете само сликите со мачка прикажани во полето:",
- "asirra-createaccount-fail": "Посочете кои од следниве се мачки.",
- "asirra-create": "Како заштитна мерка против автоматизирано создавање на страници, би ве замолиле да ги изберете само сликите со мачка прикажани во полето:",
- "asirra-nojs": "'''Овозможете JavaScript и поднесете ја страницата повторно.'''",
- "asirra-failed": "Изберете ги сликите што имаат мачка"
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/ms.json b/extensions/ConfirmEdit/i18n/asirra/ms.json
deleted file mode 100644
index 71afc754..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/ms.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "Anakmalaysia"
- ]
- },
- "asirra-desc": "Modul Asirra untuk ConfirmEdit",
- "asirra-edit": "Untuk mencegah suntingan spam automatik, sila pilih gambar-gambar kucing sahaja dalam petak di bawah:",
- "asirra-addurl": "Suntingan anda mengandungi pautan luar yang baru. Untuk mencegah spam janaan automatik, sila pilih gambar-gambar kucing sahaja dalam petak di bawah:",
- "asirra-badlogin": "Untuk mencegah pemecahan kata laluan automatik, sila pilih gambar-gambar kucing sahaja dalam petak di bawah:",
- "asirra-createaccount": "Untuk mencegah pembukaan akaun automatik, sila pilih gambar-gambar kucing sahaja dalam petak di bawah:",
- "asirra-createaccount-fail": "Sila kenal pasti kucing-kucing dengan betul.",
- "asirra-create": "Untuk mencegah pembukaan halaman automatik, sila pilih gambar-gambar kucing sahaja dalam petak di bawah:",
- "asirra-nojs": "'''Sila hidupkan JavaScript dan hantar semula halaman ini.'''",
- "asirra-failed": "Sila kenal pasti semua gambar kucing"
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/mt.json b/extensions/ConfirmEdit/i18n/asirra/mt.json
deleted file mode 100644
index d57a1350..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/mt.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "Chrisportelli"
- ]
- },
- "asirra-desc": "Modulu ASIRRA għal ConfirmEdit",
- "asirra-edit": "Sabiex tgħinna nipproteġu kontra l-modifiki li jżidu spam, jekk jogħġbok agħżel ir-ritratti tal-qtates fil-kaxxa t'hawn taħt:",
- "asirra-addurl": "Il-modifika tiegħek tinkludi ħoloq esterni ġodda. Sabiex tipproteġi kontra spam awtomatiku, jekk jogħġbok agħżel ir-ritratti tal-qtates fil-kaxxa t'hawn taħt:",
- "asirra-badlogin": "Sabiex tgħinna nipproteġu kontra l-infurzar awtomatiku tal-passwords, jekk jogħġbok agħżel ir-ritratti tal-qtates fil-kaxxa t'hawn taħt:",
- "asirra-createaccount": "Sabiex tgħinna nipproteġu kontra l-ħolqien awtomatiku ta' kontijiet ġodda, jekk jogħġbok agħżel ir-ritratti tal-qtates fil-kaxxa t'hawn taħt:",
- "asirra-createaccount-fail": "Sib il-qtates.",
- "asirra-create": "Sabiex tgħinna nipproteġu kontra l-ħolqien awtomatiku ta' paġni, jekk jogħġbok agħżel ir-ritratti tal-qtates fil-kaxxa t'hawn taħt:",
- "asirra-nojs": "'''Jekk jogħġbok attiva l-JavaScript u erġa' ibgħat din il-paġna.'''",
- "asirra-failed": "Sib l-istampi kollha tal-qtates"
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/nb.json b/extensions/ConfirmEdit/i18n/asirra/nb.json
deleted file mode 100644
index ba30c700..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/nb.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "Event"
- ]
- },
- "asirra-desc": "Assirra-modulen for ConfirmEdit",
- "asirra-edit": "Som beskyttelse mot automatisk redigert spam, vennligst velg kun kattebildene i boksen under:",
- "asirra-addurl": "Din redigering inneholder nye eksterne lenker. Som beskyttelse mot automatisk redigert spam, vennligst velg kun kattebildene i boksen under:",
- "asirra-badlogin": "Som beskyttelse mot automatisk passordknekking, vennligst velg kun kattebildene i boksen under:",
- "asirra-createaccount": "Som beskyttelse mot automatisk opprettelse av brukerkonto, vennligst velg kun kattebildene i boksen under:",
- "asirra-createaccount-fail": "Vennligst angi hva som er katter.",
- "asirra-create": "Som beskyttelse mot automatisk opprettelse av sider, vennligst velg kun kattebildene i boksen under:",
- "asirra-nojs": "'''Vennligst åpne for JavaScript og lagre siden en gang til.'''",
- "asirra-failed": "Vennligst merk alle kattebilder"
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/nl-informal.json b/extensions/ConfirmEdit/i18n/asirra/nl-informal.json
deleted file mode 100644
index c3888b03..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/nl-informal.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "Siebrand"
- ]
- },
- "asirra-addurl": "Je bewerking bevat nieuwe externe koppelingen. Selecteer de foto's van katten in het vak hieronder om te helpen beschermen tegen geautomatiseerde spam:"
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/nl.json b/extensions/ConfirmEdit/i18n/asirra/nl.json
deleted file mode 100644
index ca9b5b04..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/nl.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "HanV",
- "SPQRobin",
- "Siebrand"
- ]
- },
- "asirra-desc": "Asirra-module voor ConfirmEdit",
- "asirra-edit": "Kies ter bescherming tegen geautomatiseerde spam de afbeeldingen met een poes in het onderstaande venster:",
- "asirra-addurl": "Uw bewerking bevat nieuwe externe koppelingen. Selecteer de foto's van katten in het vak hieronder om de wiki te beschermen tegen geautomatiseerde spam:",
- "asirra-badlogin": "Kies ter bescherming tegen het automatisch kraken van wachtwoorden de afbeeldingen met een poes in het onderstaande venster:",
- "asirra-createaccount": "Kies om het automatisch aanmaken van gebruikers tegen te gaan de afbeeldingen met een poes in het onderstaande venster:",
- "asirra-createaccount-fail": "Identificeer de katten juist.",
- "asirra-create": "Kies om het automatisch aanmaken van een pagina tegen te gaan de afbeeldingen met een poes in het onderstaande venster:",
- "asirra-nojs": "'''Schakel JavaScript in en probeer de pagina opnieuw op te slaan.'''",
- "asirra-failed": "Identificeer alle afbeeldingen van katten."
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/oc.json b/extensions/ConfirmEdit/i18n/asirra/oc.json
deleted file mode 100644
index 807ef432..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/oc.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "Cedric31"
- ]
- },
- "asirra-desc": "Modul Asirra per ConfirmEdit",
- "asirra-createaccount-fail": "Identificatz corrèctament los gats."
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/pl.json b/extensions/ConfirmEdit/i18n/asirra/pl.json
deleted file mode 100644
index 9590fd84..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/pl.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "BeginaFelicysym",
- "WTM"
- ]
- },
- "asirra-desc": "Moduł Asirra dla ConfirmEdit",
- "asirra-edit": "W celu ochrony przed zautomatyzowanym spamem, proszę wybrać tylko zdjęcia kotów w poniższym polu:",
- "asirra-addurl": "Wprowadzony przez ciebie tekst zawiera nowe linki zewnętrzne. W celu ochrony przed zautomatyzowanym spamem, proszę wskazać tylko zdjęcia kotów w poniższym polu:",
- "asirra-badlogin": "W celu ochrony przed zautomatyzowanym łamaniem haseł, proszę wybrać tylko zdjęcia kotów w poniższym polu:",
- "asirra-createaccount": "W celu ochrony przed zautomatyzowanym tworzeniem kont, proszę wybrać tylko zdjęcia kotów w poniższym polu:",
- "asirra-createaccount-fail": "Prosimy prawidłowo zidentyfikować koty.",
- "asirra-create": "W celu ochrony przed przed automatycznym tworzeniem stron, proszę wybrać tylko zdjęcia kotów w poniższym polu:",
- "asirra-nojs": "'''Prosimy włączyć obsługę języka JavaScript i ponowne przesłanie strony.'''",
- "asirra-failed": "Prosimy wskazać wszystkie obrazy kotów"
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/pms.json b/extensions/ConfirmEdit/i18n/asirra/pms.json
deleted file mode 100644
index 6440c6ec..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/pms.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "Borichèt",
- "Dragonòt"
- ]
- },
- "asirra-desc": "Mòdul Asirra për ConfirmEdit",
- "asirra-edit": "Për giuté a protege contra la rumenta dle modìfiche automàtiche, për piasì ch'a selession-a mach le fòto ëd gat ant ël quàder sì-sota:",
- "asirra-addurl": "Soa modìfica a conten dle liure esterne neuve. Për giuté a protege contra la rumenta dle modìfiche automàtiche, për piasì ch'a selession-a mach le fòto ëd gat ant ël quàder sì-sota:",
- "asirra-badlogin": "Për giuté a protege contra la forsadura automatisà ëd le ciav, për piasì ch'a selession-a mach la fòto dël gat ant ël quàder sì-sota:",
- "asirra-createaccount": "Për giuté a protege contra la creassion automatisà ëd cont, për piasì ch'a selession-a mach la fòto dël gat ant ël quàder sì-sota:",
- "asirra-createaccount-fail": "Për piasì identifica coretament ij gat.",
- "asirra-create": "Për giuté a protege contra la creassion automatisà ëd pàgine, për piasì ch'a selession-a mach le fòto ëd gat ant ël quàder sì-sota:",
- "asirra-nojs": "'''Për piasì, ch'a abìlita JavaScript e ch'a spedissa torna la pàgina.'''",
- "asirra-failed": "Për piasì identìfica tute le figure ëd gat"
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/pt.json b/extensions/ConfirmEdit/i18n/asirra/pt.json
deleted file mode 100644
index 75c660d4..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/pt.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "Hamilton Abreu",
- "Luckas"
- ]
- },
- "asirra-desc": "Módulo Asirra para o ConfirmEdit",
- "asirra-edit": "Para proteger a wiki contra sistemas automatizados de inserção de ''spam'', pedimos que selecione só as fotografias de gatos na caixa abaixo:",
- "asirra-addurl": "A sua edição contém links externos novos. Para proteger a wiki contra sistemas automatizados de inserção de ''spam'', pedimos que selecione só as fotografias de gatos na caixa abaixo:",
- "asirra-badlogin": "Para proteger a wiki contra sistemas automatizados de descoberta de palavras-chave, pedimos que selecione só as fotografias de gatos na caixa abaixo:",
- "asirra-createaccount": "Para proteger a wiki contra sistemas automatizados de criação de contas, pedimos que selecione só as fotografias de gatos na caixa abaixo:",
- "asirra-createaccount-fail": "Identifique corretamente os gatos, por favor.",
- "asirra-create": "Para proteger a wiki contra sistemas automatizados de criação de páginas, pedimos que selecione só as fotografias de gatos na caixa abaixo:",
- "asirra-nojs": "'''Possibilite o uso de JavaScript e reenvie a página, por favor.'''",
- "asirra-failed": "Identifique todas as imagens de gatos, por favor"
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/qqq.json b/extensions/ConfirmEdit/i18n/asirra/qqq.json
deleted file mode 100644
index 4cb78990..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/qqq.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "2nd-player",
- "Beta16",
- "Raymond",
- "Shirayuki"
- ]
- },
- "asirra-desc": "{{desc|name=Asirra|url=http://www.mediawiki.org/wiki/Extension:Asirra}}",
- "asirra-edit": "{{Related|ConfirmEdit-edit}}",
- "asirra-addurl": "{{Related|ConfirmEdit-addurl}}",
- "asirra-badlogin": "{{Related|ConfirmEdit-badlogin}}",
- "asirra-createaccount": "{{Related|ConfirmEdit-createaccount}}",
- "asirra-createaccount-fail": "Used as failure message in JavaScript code.\n{{Related|ConfirmEdit-createaccount-fail}}",
- "asirra-create": "{{Related|ConfirmEdit-create}}",
- "asirra-nojs": "Used in HTML <code><nowiki><noscript></nowiki></code> tag.",
- "asirra-failed": "Used as alert message in JavaScript code."
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/roa-tara.json b/extensions/ConfirmEdit/i18n/asirra/roa-tara.json
deleted file mode 100644
index e55f55ec..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/roa-tara.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "Joetaras"
- ]
- },
- "asirra-desc": "Module Asirra pe confermà le cangiaminde",
- "asirra-edit": "Pe proteggere condre le cangiaminde automatece de le rummate, pe piacere scacchie 'a categorije de le fote jndr'à buatte aqquà sotte:",
- "asirra-addurl": "Le cangiaminde tune 'ngludone collegaminde de fore nuève. Pe proteggere condre le cangiaminde automatece de le rummate, pe piacere scacchie 'a categorije d'a fote 'ndruche jndr'à buatte aqquà sotte:",
- "asirra-badlogin": "Pe proteggere condre le futteminde automatece de le passuord, pe piacere scacchie 'a categorije de le fote jndr'à buatte aqquà sotte:",
- "asirra-createaccount": "Pe proteggere condre le ccrejaziune automatece de le cunde, pe piacere scacchie 'a categorije de le fote jndr'à buatte aqquà sotte:",
- "asirra-createaccount-fail": "Pe piacere idendifiche correttamende le categorije.",
- "asirra-create": "Pe proteggere condre le ccrejaziune automatece de le pàggene, pe piacere scacchie 'a categorije de le fote jndr'à buatte aqquà sotte:",
- "asirra-nojs": "'''Pe piacere abbilite JavaScript e conferme arrete 'a pàgene.'''",
- "asirra-failed": "Pe piacere idendifiche tutte le categorije de le immaggine"
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/ru.json b/extensions/ConfirmEdit/i18n/asirra/ru.json
deleted file mode 100644
index d628aec8..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/ru.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "DCamer",
- "Lockal",
- "Okras"
- ]
- },
- "asirra-desc": "Модуль Asirra для ConfirmEdit",
- "asirra-edit": "В целях защиты проекта от автоматического спама в правках, просим вас выбрать среди нижеприведённых изображений только фотографии кошек:",
- "asirra-addurl": "Ваша правка содержит новые внешние ссылки. В целях защиты проекта от автоматического спама в правках просим вас выбрать среди нижеприведённых изображений только фотографии кошек:",
- "asirra-badlogin": "В целях защиты от автоматического подбора пароля просим вас выбрать среди нижеприведённых изображений только фотографии кошек:",
- "asirra-createaccount": "В целях защиты от автоматического создания учётных записей просим вас выбрать среди нижеприведённых изображений только фотографии кошек:",
- "asirra-createaccount-fail": "Пожалуйста правильно идентифицируйте котов.",
- "asirra-create": "В целях защиты от автоматического создания страниц просим вас выбрать среди нижеприведённых изображений только фотографии кошек:",
- "asirra-nojs": "'''Пожалуйста, включите JavaScript и обновите страницу.'''",
- "asirra-failed": "Пожалуйста, идентифицируйте все фотографии кота"
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/si.json b/extensions/ConfirmEdit/i18n/asirra/si.json
deleted file mode 100644
index bd853b93..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/si.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "පසිඳු කාවින්ද"
- ]
- },
- "asirra-desc": "ConfirmEdit සඳහා Asirra මොඩියුලය",
- "asirra-failed": "කරුණාකර සියලුම cat පින්තූරයන් හඳුනාගන්න"
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/sv.json b/extensions/ConfirmEdit/i18n/asirra/sv.json
deleted file mode 100644
index a99278b2..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/sv.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "Jopparn",
- "Rotsee",
- "Tobulos1",
- "WikiPhoenix",
- "Lokal Profil"
- ]
- },
- "asirra-desc": "Asirra-modul för ConfirmEdit",
- "asirra-edit": "För att skydda wikin mot spam ber vi dig att markera de fotografier som föreställer katter i rutan nedan:",
- "asirra-addurl": "Din redigering innehåller nya externa länkar. För att skydda wikin mot automatiserat redigerings-spam ber vi dig att endast markera fotografierna på katter i rutan nedan:",
- "asirra-badlogin": "För att skydda wikin mot automatiserade försök att knäcka lösenord ber vi dig att endast markera fotografierna på katter i rutan nedan:",
- "asirra-createaccount": "För att skydda wikin mot automatiserat kontoskapande ber vi dig att endast markera fotografierna på katter i rutan nedan:",
- "asirra-createaccount-fail": "Vänligen identifiera katterna korrekt.",
- "asirra-create": "För att skydda wikin mot automatiserat sidskapande ber vi dig att endast markera fotografierna på katter i rutan nedan:",
- "asirra-nojs": "'''Var god aktivera JavaScript och hämta sidan igen.'''",
- "asirra-failed": "Var god identifiera alla kattbilder"
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/tl.json b/extensions/ConfirmEdit/i18n/asirra/tl.json
deleted file mode 100644
index 9f0bb4bd..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/tl.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "AnakngAraw"
- ]
- },
- "asirra-desc": "Modyul ng Asirra para sa ConfirmEdit",
- "asirra-edit": "Upang makatulong sa pagprutekta laban sa kusang basurang pamamatnugot, paki piliin iyong mga litrato lamang ng pusa na nasa loob ng kahong nasa ibaba:",
- "asirra-addurl": "Ang pagbabago mo ay nagsasama ng bagong panlabas na mga kawing. Upang makatulong sa pagprutekta laban sa kusang paglusob ng basurang-liham, paki piliin iyong mga litrato lamang ng pusa na nasa loob ng kahong nasa ibaba:",
- "asirra-badlogin": "Upang makatulong sa pagprutekta laban sa kusang pag-alam ng hudyat, paki piliin lamang iyong mga litrato ng pusa na nasa loob ng kahong nasa ibaba:",
- "asirra-createaccount": "Upang makatulong sa pagprutekta laban sa kusang paglikha ng akawnt, paki piliin lamang iyong mga litrato ng pusa na nasa loob ng kahong nasa ibaba:",
- "asirra-createaccount-fail": "Paki kilalanin ng tama ang mga pusa.",
- "asirra-create": "Upang makatulong sa pagprutekta laban sa kusang paglikha ng pahina, paki piliin lamang iyong mga litrato ng pusa na nasa loob ng kahong nasa ibaba:",
- "asirra-nojs": "'''Paki paganahin ang JavaScript at muling ipasa ang pahina.'''",
- "asirra-failed": "Paki kilalanin ang lahat ng mga imahe ng pusa"
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/uk.json b/extensions/ConfirmEdit/i18n/asirra/uk.json
deleted file mode 100644
index 6438a504..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/uk.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "Andriykopanytsia",
- "Base"
- ]
- },
- "asirra-desc": "Модуль Asirra для ConfirmEdit",
- "asirra-edit": "З метою захисту вікі від автоматичного спаму у статтях, просимо вас обрати фотографії кота, у блоці нижче:",
- "asirra-addurl": "Ваше повідомлення включає нові зовнішні посилання. З метою захисту вікі проти автоматичного спаму у статтях, просимо вас обрати фотографії кота, у блоці нижче:",
- "asirra-badlogin": "З метою захисту вікі проти автоматичного підбору паролю, просимо вас обрати фотографії кота у блоці нижче:",
- "asirra-createaccount": "З метою захисту вікі проти автоматичного створення облікових записів просимо вас обрати фотографії кота у блоці нижче:",
- "asirra-createaccount-fail": "Будь ласка, правильно ідентифікуйте котів.",
- "asirra-create": "З метою захисту вікі проти автоматичного створення статей просимо вас обрати фотографії кота у блоці нижче:",
- "asirra-nojs": "'''Будь ласка увімкніть JavaScript і оновіть сторінку.'''",
- "asirra-failed": "Будь ласка, ідентифікуйте усі фотографії кота"
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/wa.json b/extensions/ConfirmEdit/i18n/asirra/wa.json
deleted file mode 100644
index 6dc5a815..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/wa.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "Srtxg"
- ]
- },
- "asirra-desc": "Module Asirra pol passete d' acertinaedje des candjmints (ConfirmEdit)",
- "asirra-edit": "Po s' mete a houte des des robots di spam, nos vs dimandans d' acertiner ki vos estoz bén ene djin, po çoula tchoezixhoz seulmint les imådjes avou des tchets e l' boesse chal pa dzo:",
- "asirra-addurl": "Dins vos candjmints i gn a des dfoûtrinnès hårdêyes (URL).\nPo s' mete a houte des des robots di spam, nos vs dimandans d' acertiner ki vos estoz bén ene djin, po çoula tchoezixhoz seulmint les imådjes avou des tchets e l' boesse chal pa dzo:",
- "asirra-badlogin": "Po s' mete a houte des des robots ki sayèt d' adviner les screts, nos vs dimandans d' acertiner ki vos estoz bén ene djin, po çoula tchoezixhoz seulmint les imådjes avou des tchets e l' boesse chal pa dzo:",
- "asirra-createaccount": "Po s' mete a houte des des robots k' ahivèt des contes otomaticmint, nos vs dimandans d' acertiner ki vos estoz bén ene djin, po çoula tchoezixhoz seulmint les imådjes avou des tchets e l' boesse chal pa dzo:",
- "asirra-createaccount-fail": "Tchoezixhoz comifåt les tchets (les biesses ki gnawèt).",
- "asirra-create": "Po s' mete a houte des des robots k' ahivèt des pådjes otomaticmint, nos vs dimandans d' acertiner ki vos estoz bén ene djin, po çoula tchoezixhoz seulmint les imådjes avou des tchets e l' boesse chal pa dzo:",
- "asirra-nojs": "'''Metoz s' i vs plait en alaedje li JavaScrit et s' revoyî l' pådje.'''",
- "asirra-failed": "Idintifyî totes les imådjes avou des tchets"
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/zh-hans.json b/extensions/ConfirmEdit/i18n/asirra/zh-hans.json
deleted file mode 100644
index 1675e6ae..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/zh-hans.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "Fantasticfears",
- "Hzy980512",
- "Mywood"
- ]
- },
- "asirra-desc": "用于确认编辑的Asirra模块",
- "asirra-edit": "为保护本wiki免受自动垃圾程序的破坏,我们恳请你在下面的方框中选出猫的图片:",
- "asirra-addurl": "你的编辑包含新的外部链接。为保护本wiki免受自动垃圾程序的破坏,我们恳请你在下面的方框中选出猫的图片:",
- "asirra-badlogin": "为保护本wiki免受自动密码破解的破坏,我们恳请你在下面的方框中选出猫的图片:",
- "asirra-createaccount": "为保护本wiki免受自动账户创建的破坏,我们恳请你在下面的方框中选出猫的图片:",
- "asirra-createaccount-fail": "请选出正确的猫的图片。",
- "asirra-create": "为保护本wiki免受自动页面创建的破坏,我们恳请你在下面的方框中选出猫的图片:",
- "asirra-nojs": "'''请启用JavaScript并重新提交页面。'''",
- "asirra-failed": "请选出所有猫的图片"
-}
diff --git a/extensions/ConfirmEdit/i18n/asirra/zh-hant.json b/extensions/ConfirmEdit/i18n/asirra/zh-hant.json
deleted file mode 100644
index 39bbdf63..00000000
--- a/extensions/ConfirmEdit/i18n/asirra/zh-hant.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "@metadata": {
- "authors": [
- "Justincheng12345",
- "Cwlin0416"
- ]
- },
- "asirra-desc": "ConfirmEdit 的 Asirra 模組",
- "asirra-edit": "為了防止垃圾編輯程式,我們要麻煩您在下面的方框中選出貓的圖片:",
- "asirra-addurl": "您的編輯使用了新的外部連結。為了防止垃圾編輯程式,我們要麻煩您在下面的方框中選出貓的圖片:",
- "asirra-badlogin": "為了防止密碼破解程式,我們要麻煩您在下面的方框中選出貓的圖片:",
- "asirra-createaccount": "為了防止自動註冊程式,我們要麻煩您在下面的方框中選出貓的圖片:",
- "asirra-createaccount-fail": "請再正確選擇貓的圖片。",
- "asirra-create": "為了防止自動建立頁面程式,我們要麻煩您在下面的方框中選出貓的圖片:",
- "asirra-nojs": "'''請開啟 JavaScript 並重新送出頁面。'''",
- "asirra-failed": "請選出所有貓的圖片"
-}
diff --git a/extensions/ConfirmEdit/resources/ext.confirmEdit.asirra.js b/extensions/ConfirmEdit/resources/ext.confirmEdit.asirra.js
deleted file mode 100644
index 34296d03..00000000
--- a/extensions/ConfirmEdit/resources/ext.confirmEdit.asirra.js
+++ /dev/null
@@ -1,54 +0,0 @@
-/*======================================================================*\
-|| #################################################################### ||
-|| # Asirra module for ConfirmEdit by Bachsau # ||
-|| # ---------------------------------------------------------------- # ||
-|| # This code is released into public domain, in the hope that it # ||
-|| # will be useful, but without any warranty. # ||
-|| # ------------ YOU CAN DO WITH IT WHATEVER YOU LIKE! ------------- # ||
-|| #################################################################### ||
-\*======================================================================*/
-
-jQuery( function( $ ) {
- // Selectors for create account, login, and page edit forms.
- var asirraform = $( 'form#userlogin2, #userloginForm form, form#editform' );
- var submitButtonClicked = document.createElement("input");
- var passThroughFormSubmit = false;
-
- function PrepareSubmit() {
- submitButtonClicked.type = "hidden";
- var inputFields = asirraform.find( "input" );
- for (var i=0; i<inputFields.length; i++) {
- if (inputFields[i].type === "submit") {
- inputFields[i].onclick = function(event) {
- submitButtonClicked.name = this.name;
- submitButtonClicked.value = this.value;
- }
- }
- }
-
- asirraform.submit( function() {
- return MySubmitForm();
- } );
- }
-
- function MySubmitForm() {
- if (passThroughFormSubmit) {
- return true;
- }
- Asirra_CheckIfHuman(HumanCheckComplete);
- return false;
- }
-
- function HumanCheckComplete(isHuman) {
- if (!isHuman) {
- window.alert( mediaWiki.msg( 'asirra-failed' ) );
- } else {
- asirraform.append(submitButtonClicked);
- passThroughFormSubmit = true;
- asirraform.submit();
- }
- }
-
- PrepareSubmit();
-
-} );
diff --git a/extensions/Gadgets/tests/GadgetTest.php b/extensions/Gadgets/tests/GadgetTest.php
new file mode 100644
index 00000000..8fd09295
--- /dev/null
+++ b/extensions/Gadgets/tests/GadgetTest.php
@@ -0,0 +1,63 @@
+<?php
+/**
+ * @group Gadgets
+ */
+
+class GadgetsTest extends MediaWikiTestCase {
+ private function create( $line ) {
+ $g = Gadget::newFromDefinition( $line );
+ $this->assertInstanceOf( 'Gadget', $g );
+
+ return $g;
+ }
+
+ function testInvalidLines() {
+ $this->assertFalse( Gadget::newFromDefinition( '' ) );
+ $this->assertFalse( Gadget::newFromDefinition( '<foo|bar>' ) );
+ }
+
+ function testSimpleCases() {
+ $g = $this->create( '* foo bar| foo.css|foo.js|foo.bar' );
+ $this->assertEquals( 'foo_bar', $g->getName() );
+ $this->assertEquals( 'ext.gadget.foo_bar', $g->getModuleName() );
+ $this->assertEquals( array( 'Gadget-foo.js' ), $g->getScripts() );
+ $this->assertEquals( array( 'Gadget-foo.css' ), $g->getStyles() );
+ $this->assertEquals( array( 'Gadget-foo.js', 'Gadget-foo.css' ),
+ $g->getScriptsAndStyles() );
+ $this->assertEquals( array( 'Gadget-foo.js' ), $g->getLegacyScripts() );
+ $this->assertFalse( $g->supportsResourceLoader() );
+ $this->assertTrue( $g->hasModule() );
+ }
+
+ function testRLtag() {
+ $g = $this->create( '*foo [ResourceLoader]|foo.js|foo.css' );
+ $this->assertEquals( 'foo', $g->getName() );
+ $this->assertTrue( $g->supportsResourceLoader() );
+ $this->assertEquals( 0, count( $g->getLegacyScripts() ) );
+ }
+
+ function testDependencies() {
+ $g = $this->create( '* foo[ResourceLoader|dependencies=jquery.ui]|bar.js' );
+ $this->assertEquals( array( 'Gadget-bar.js' ), $g->getScripts() );
+ $this->assertTrue( $g->supportsResourceLoader() );
+ $this->assertEquals( array( 'jquery.ui' ), $g->getDependencies() );
+ }
+
+ function testPreferences() {
+ $prefs = array();
+
+ Gadget::loadStructuredList( '* foo | foo.js
+==keep-section1==
+* bar| bar.js
+==remove-section==
+* baz [rights=embezzle] |baz.js
+==keep-section2==
+* quux [rights=read] | quux.js' );
+ $this->assertTrue( GadgetHooks::getPreferences( new User, $prefs ), 'GetPrefences hook should return true' );
+
+ $options = $prefs['gadgets']['options'];
+ $this->assertFalse( isset( $options['&lt;gadget-section-remove-section&gt;'] ), 'Must not show empty sections' );
+ $this->assertTrue( isset( $options['&lt;gadget-section-keep-section1&gt;'] ) );
+ $this->assertTrue( isset( $options['&lt;gadget-section-keep-section2&gt;'] ) );
+ }
+}
diff --git a/extensions/LocalisationUpdate/tests/phpunit/Makefile b/extensions/LocalisationUpdate/tests/phpunit/Makefile
new file mode 100644
index 00000000..e98c12ca
--- /dev/null
+++ b/extensions/LocalisationUpdate/tests/phpunit/Makefile
@@ -0,0 +1,12 @@
+ifndef MW_INSTALL_PATH
+ MW_INSTALL_PATH=../../../..
+endif
+
+DIRS=reader
+
+default:
+ php ${MW_INSTALL_PATH}/tests/phpunit/phpunit.php .
+
+.PHONY: *Test.php $(DIRS)
+*Test.php $(DIRS):
+ php ${MW_INSTALL_PATH}/tests/phpunit/phpunit.php $@
diff --git a/extensions/LocalisationUpdate/tests/phpunit/UpdaterTest.php b/extensions/LocalisationUpdate/tests/phpunit/UpdaterTest.php
new file mode 100644
index 00000000..ce742cba
--- /dev/null
+++ b/extensions/LocalisationUpdate/tests/phpunit/UpdaterTest.php
@@ -0,0 +1,80 @@
+<?php
+/**
+ * @file
+ * @author Niklas Laxström
+ * @license GPL-2.0+
+ */
+
+class LU_UpdaterTest extends MediaWikiTestCase {
+ public function testIsDirectory() {
+ $updater = new LU_Updater();
+
+ $this->assertTrue(
+ $updater->isDirectory( '/IP/extensions/Translate/i18n/*.json' ),
+ 'Extension json files are a file pattern'
+ );
+
+ $this->assertFalse(
+ $updater->isDirectory( '/IP/extensions/Translate/Translate.i18n.php' ),
+ 'Extension php file is not a pattern'
+ );
+ }
+
+ public function testExpandRemotePath() {
+ $updater = new LU_Updater();
+ $repos = array( 'main' => 'file:///repos/%NAME%/%SOME-VAR%' );
+
+ $info = array(
+ 'repo' => 'main',
+ 'name' => 'product',
+ 'some-var' => 'file',
+ );
+ $this->assertEquals(
+ 'file:///repos/product/file',
+ $updater->expandRemotePath( $info, $repos ),
+ 'Variables are expanded correctly'
+ );
+ }
+
+ public function testReadMessages() {
+ $updater = $updater = new LU_Updater();
+
+ $input = array( 'file' => 'Hello World!' );
+ $output = array( 'en' => array( 'key' => $input['file'] ) );
+
+ $reader = $this->getMock( 'LU_Reader' );
+ $reader
+ ->expects( $this->once() )
+ ->method( 'parse' )
+ ->will( $this->returnValue( $output ) );
+
+ $factory = $this->getMock( 'LU_ReaderFactory' );
+ $factory
+ ->expects( $this->once() )
+ ->method( 'getReader' )
+ ->will( $this->returnValue( $reader ) );
+
+ $observed = $updater->readMessages( $factory, $input );
+ $this->assertEquals( $output, $observed, 'Tries to parse given file' );
+ }
+
+ public function testFindChangedTranslations() {
+ $updater = $updater = new LU_Updater();
+
+ $origin = array(
+ 'A' => '1',
+ 'C' => '3',
+ 'D' => '4',
+ );
+ $remote = array(
+ 'A' => '1', // No change key
+ 'B' => '2', // New key
+ 'C' => '33', // Changed key
+ 'D' => '44', // Blacklisted key
+ );
+ $blacklist = array( 'D' => 0 );
+ $expected = array( 'B' => '2', 'C' => '33' );
+ $observed = $updater->findChangedTranslations( $origin, $remote, $blacklist );
+ $this->assertEquals( $expected, $observed, 'Changed and new keys returned' );
+ }
+}
diff --git a/extensions/LocalisationUpdate/tests/phpunit/finder/FinderTest.php b/extensions/LocalisationUpdate/tests/phpunit/finder/FinderTest.php
new file mode 100644
index 00000000..8cc0f7d7
--- /dev/null
+++ b/extensions/LocalisationUpdate/tests/phpunit/finder/FinderTest.php
@@ -0,0 +1,70 @@
+<?php
+/**
+ * @file
+ * @author Niklas Laxström
+ * @license GPL-2.0+
+ */
+
+class LU_FinderTest extends MediaWikiTestCase {
+ public function testGetComponents() {
+ $finder = new LU_Finder(
+ array(
+ 'TranslateSearch' => '/IP/extensions/Translate/TranslateSearch.i18n.php',
+ 'Babel' => '/IP/extensions/Babel/Babel.i18n.php',
+ ),
+ array(
+ 'Babel' => '/IP/extensions/Babel/i18n',
+ 'Door' => array(
+ 'core' => '/IP/extensions/Door/i18n/core',
+ 'extra' => '/IP/extensions/Door/i18n/extra',
+ ),
+ ),
+ '/IP'
+ );
+ $observed = $finder->getComponents();
+
+ $expected = array(
+ 'repo' => 'mediawiki',
+ 'orig' => "file:///IP/languages/messages/Messages*.php",
+ 'path' => 'languages/messages/Messages*.php',
+ );
+ $this->assertArrayHasKey( 'core', $observed );
+ $this->assertSame( $expected, $observed['core'], 'Core php file' );
+
+ $expected = array(
+ 'repo' => 'extension',
+ 'name' => 'Translate',
+ 'orig' => 'file:///IP/extensions/Translate/TranslateSearch.i18n.php',
+ 'path' => 'TranslateSearch.i18n.php'
+ );
+ $this->assertArrayHasKey( 'TranslateSearch', $observed );
+ $this->assertSame( $expected, $observed['TranslateSearch'], 'PHP only extension' );
+
+ $expected = array(
+ 'repo' => 'extension',
+ 'name' => 'Babel',
+ 'orig' => 'file:///IP/extensions/Babel/i18n/*.json',
+ 'path' => 'i18n/*.json'
+ );
+ $this->assertArrayHasKey( 'Babel-0', $observed );
+ $this->assertSame( $expected, $observed['Babel-0'], 'PHP&JSON extension' );
+
+ $expected = array(
+ 'repo' => 'extension',
+ 'name' => 'Door',
+ 'orig' => 'file:///IP/extensions/Door/i18n/core/*.json',
+ 'path' => 'i18n/core/*.json'
+ );
+ $this->assertArrayHasKey( 'Door-core', $observed );
+ $this->assertSame( $expected, $observed['Door-core'], 'Multidir json extension' );
+
+ $expected = array(
+ 'repo' => 'extension',
+ 'name' => 'Door',
+ 'orig' => 'file:///IP/extensions/Door/i18n/extra/*.json',
+ 'path' => 'i18n/extra/*.json'
+ );
+ $this->assertArrayHasKey( 'Door-extra', $observed );
+ $this->assertSame( $expected, $observed['Door-extra'], 'Multidir json extension' );
+ }
+}
diff --git a/extensions/LocalisationUpdate/tests/phpunit/reader/JSONReaderTest.php b/extensions/LocalisationUpdate/tests/phpunit/reader/JSONReaderTest.php
new file mode 100644
index 00000000..4bb53af9
--- /dev/null
+++ b/extensions/LocalisationUpdate/tests/phpunit/reader/JSONReaderTest.php
@@ -0,0 +1,37 @@
+<?php
+/**
+ * @file
+ * @author Niklas Laxström
+ * @license GPL-2.0+
+ */
+
+class LU_JSONReaderTest extends MediaWikiTestCase {
+ /**
+ * @dataProvider parseProvider
+ */
+ public function testParse( $input, $expected, $comment ) {
+ $reader = new LU_JSONReader( 'xx' );
+ $observed = $reader->parse( $input );
+ $this->assertEquals( $expected, $observed['xx'], $comment );
+ }
+
+ public function parseProvider() {
+ return array(
+ array(
+ '{}',
+ array(),
+ 'empty file',
+ ),
+ array(
+ '{"key":"value"}',
+ array( 'key' => 'value' ),
+ 'file with one string',
+ ),
+ array(
+ '{"@metadata":{"authors":["Nike"]},"key":"value2"}',
+ array( 'key' => 'value2' ),
+ '@metadata is ignored',
+ )
+ );
+ }
+}
diff --git a/extensions/LocalisationUpdate/tests/phpunit/reader/ReaderFactoryTest.php b/extensions/LocalisationUpdate/tests/phpunit/reader/ReaderFactoryTest.php
new file mode 100644
index 00000000..ee155b3a
--- /dev/null
+++ b/extensions/LocalisationUpdate/tests/phpunit/reader/ReaderFactoryTest.php
@@ -0,0 +1,38 @@
+<?php
+/**
+ * @file
+ * @author Niklas Laxström
+ * @license GPL-2.0+
+ */
+
+class LU_ReaderFactoryTest extends MediaWikiTestCase {
+ /**
+ * @dataProvider getReaderProvider
+ */
+ public function testGetReader( $input, $expected, $comment ) {
+ $factory = new LU_ReaderFactory();
+ $reader = $factory->getReader( $input );
+ $observed = get_class( $reader );
+ $this->assertEquals( $expected, $observed, $comment );
+ }
+
+ public function getReaderProvider() {
+ return array(
+ array(
+ 'languages/messages/MessagesFi.php',
+ 'LU_PHPReader',
+ 'core php file',
+ ),
+ array(
+ 'extensions/Translate/Translate.i18n.php',
+ 'LU_PHPReader',
+ 'extension php file',
+ ),
+ array(
+ 'extension/Translate/i18n/core/de.json',
+ 'LU_JSONReader',
+ 'extension json file',
+ ),
+ );
+ }
+}
diff --git a/extensions/ParserFunctions/tests/ExpressionTest.php b/extensions/ParserFunctions/tests/ExpressionTest.php
new file mode 100644
index 00000000..169a9cb4
--- /dev/null
+++ b/extensions/ParserFunctions/tests/ExpressionTest.php
@@ -0,0 +1,76 @@
+<?php
+class ExpressionTest extends MediaWikiTestCase {
+
+ /**
+ * @var ExprParser
+ */
+ protected $parser;
+
+ protected function setUp() {
+ parent::setUp();
+ $this->parser = new ExprParser();
+ }
+
+ /**
+ * @dataProvider provideExpressions
+ */
+ function testExpression( $input, $expected ) {
+ $this->assertEquals(
+ $expected,
+ $this->parser->doExpression( $input )
+ );
+ }
+
+ function provideExpressions() {
+ return array(
+ array( '1 or 0', '1' ),
+ array( 'not (1 and 0)', '1' ),
+ array( 'not 0', '1' ),
+ array( '4 < 5', '1' ),
+ array( '-5 < 2', '1' ),
+ array( '-2 <= -2', '1' ),
+ array( '4 > 3', '1' ),
+ array( '4 > -3', '1' ),
+ array( '5 >= 2', '1' ),
+ array( '2 >= 2', '1' ),
+ array( '1 != 2', '1' ),
+ array( '-4 * -4 = 4 * 4', '1' ),
+ array( 'not (1 != 1)', '1' ),
+ array( '1 + 1', '2' ),
+ array( '-1 + 1', '0' ),
+ array( '+1 + 1', '2' ),
+ array( '4 * 4', '16' ),
+ array( '(1/3) * 3', '1' ),
+ array( '3 / 1.5', '2' ),
+ array( '3 / 0.2', '15' ),
+ array( '3 / ( 2.0 * 0.1 )', '15' ),
+ array( '3 / ( 2.0 / 10 )', '15' ),
+ array( '3 / (- 0.2 )', '-15' ),
+ array( '3 / abs( 0.2 )', '15' ),
+ array( '3 mod 2', '1' ),
+ array( '1e4', '10000' ),
+ array( '1e-2', '0.01' ),
+ array( '4.0 round 0', '4' ),
+ array( 'ceil 4', '4' ),
+ array( 'floor 4', '4' ),
+ array( '4.5 round 0', '5' ),
+ array( '4.2 round 0', '4' ),
+ array( '-4.2 round 0', '-4' ),
+ array( '-4.5 round 0', '-5' ),
+ array( '-2.0 round 0', '-2' ),
+ array( 'ceil -3', '-3' ),
+ array( 'floor -6.0', '-6' ),
+ array( 'ceil 4.2', '5' ),
+ array( 'ceil -4.5', '-4' ),
+ array( 'floor -4.5', '-5' ),
+ array( 'abs(-2)', '2' ),
+ array( 'ln(exp(1))', '1' ),
+ array( 'trunc(4.5)', '4' ),
+ array( 'trunc(-4.5)', '-4' ),
+ array( '123 fmod (2^64-1)', '123' ),
+ array( '5.7 mod 1.3', '0' ),
+ array( '5.7 fmod 1.3', '0.5' ),
+ );
+ }
+}
+
diff --git a/extensions/PdfHandler/COPYING b/extensions/PdfHandler/COPYING
new file mode 100644
index 00000000..d159169d
--- /dev/null
+++ b/extensions/PdfHandler/COPYING
@@ -0,0 +1,339 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+ <signature of Ty Coon>, 1 April 1989
+ Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
diff --git a/extensions/PdfHandler/CreatePdfThumbnailsJob.class.php b/extensions/PdfHandler/CreatePdfThumbnailsJob.class.php
new file mode 100644
index 00000000..aba204f2
--- /dev/null
+++ b/extensions/PdfHandler/CreatePdfThumbnailsJob.class.php
@@ -0,0 +1,126 @@
+<?php
+
+class CreatePdfThumbnailsJob extends Job {
+ /**
+ * Flags for thumbnail jobs
+ */
+ const BIG_THUMB = 1;
+ const SMALL_THUMB = 2;
+
+ /**
+ * Construct a thumbnail job
+ *
+ * @param $title Title Title object
+ * @param $params array Associative array of options:
+ * page: page number for which the thumbnail will be created
+ * jobtype: CreatePDFThumbnailsJob::BIG_THUMB or CreatePDFThumbnailsJob::SMALL_THUMB
+ * BIG_THUMB will create a thumbnail visible for full thumbnail view,
+ * SMALL_THUMB will create a thumbnail shown in "previous page"/"next page" boxes
+ *
+ */
+ public function __construct( $title, $params ) {
+ parent::__construct( 'createPdfThumbnailsJob', $title, $params );
+ }
+
+ /**
+ * Run a thumbnail job on a given PDF file.
+ * @return bool true
+ */
+ public function run() {
+ if ( !isset( $this->params['page'] ) ) {
+ wfDebugLog('thumbnails', 'A page for thumbnails job of ' . $this->title->getText() . ' was not specified! That should never happen!');
+ return true; // no page set? that should never happen
+ }
+
+ $file = wfLocalFile( $this->title ); // we just want a local file
+ if ( !$file ) {
+ return true; // Just silently fail, perhaps the file was already deleted, don't bother
+ }
+
+ switch ($this->params['jobtype']) {
+ case self::BIG_THUMB:
+ global $wgImageLimits;
+ // Ignore user preferences, do default thumbnails
+ // everything here shamelessy copied and reused from includes/ImagePage.php
+ $sizeSel = User::getDefaultOption( 'imagesize' );
+
+ // The user offset might still be incorrect, specially if
+ // $wgImageLimits got changed (see bug #8858).
+ if ( !isset( $wgImageLimits[$sizeSel] ) ) {
+ // Default to the first offset in $wgImageLimits
+ $sizeSel = 0;
+ }
+ $max = $wgImageLimits[$sizeSel];
+ $maxWidth = $max[0];
+ $maxHeight = $max[1];
+
+ $width_orig = $file->getWidth( $this->params['page'] );
+ $width = $width_orig;
+ $height_orig = $file->getHeight( $this->params['page'] );
+ $height = $height_orig;
+ if ( $width > $maxWidth || $height > $maxHeight ) {
+ # Calculate the thumbnail size.
+ # First case, the limiting factor is the width, not the height.
+ if ( $width / $height >= $maxWidth / $maxHeight ) {
+ //$height = round( $height * $maxWidth / $width );
+ $width = $maxWidth;
+ # Note that $height <= $maxHeight now.
+ } else {
+ $newwidth = floor( $width * $maxHeight / $height );
+ //$height = round( $height * $newwidth / $width );
+ $width = $newwidth;
+ # Note that $height <= $maxHeight now, but might not be identical
+ # because of rounding.
+ }
+ $transformParams = array( 'page' => $this->params['page'], 'width' => $width );
+ $file->transform( $transformParams );
+ }
+ break;
+
+ case self::SMALL_THUMB:
+ Linker::makeThumbLinkObj( $this->title, $file, '', '', 'none', array( 'page' => $this->params['page'] ) );
+ break;
+ }
+
+ return true;
+ }
+
+ /**
+ * @param $upload UploadBase
+ * @param $mime
+ * @param $error
+ * @return bool
+ */
+ public static function insertJobs( $upload, $mime, &$error ) {
+ global $wgPdfCreateThumbnailsInJobQueue;
+ if ( !$wgPdfCreateThumbnailsInJobQueue ) {
+ return true;
+ }
+ if (!MimeMagic::singleton()->isMatchingExtension('pdf', $mime)) {
+ return true; // not a PDF, abort
+ }
+
+ $title = $upload->getTitle();
+ $uploadFile = $upload->getLocalFile();
+ if ( is_null( $uploadFile ) ) {
+ wfDebugLog('thumbnails', '$uploadFile seems to be null, should never happen...');
+ return true; // should never happen, but it's better to be secure
+ }
+
+ $metadata = $uploadFile->getMetadata();
+ $unserialized = unserialize( $metadata );
+ $pages = intval( $unserialized['Pages'] );
+
+ $jobs = array();
+ for ( $i = 1; $i <= $pages; $i++ ) {
+ $jobs[] = new CreatePdfThumbnailsJob( $title,
+ array( 'page' => $i, 'jobtype' => self::BIG_THUMB )
+ );
+ $jobs[] = new CreatePdfThumbnailsJob( $title,
+ array( 'page' => $i, 'jobtype' => self::SMALL_THUMB )
+ );
+ }
+ Job::batchInsert( $jobs );
+ return true;
+ }
+}
diff --git a/extensions/ConfirmEdit/Asirra.i18n.php b/extensions/PdfHandler/PdfHandler.i18n.php
index eb2d8fe3..46a34a6c 100644
--- a/extensions/ConfirmEdit/Asirra.i18n.php
+++ b/extensions/PdfHandler/PdfHandler.i18n.php
@@ -11,11 +11,11 @@
* This shim maintains compatibility back to MediaWiki 1.17.
*/
$messages = array();
-if ( !function_exists( 'wfJsonI18nShimc0e16a38c3b0633f' ) ) {
- function wfJsonI18nShimc0e16a38c3b0633f( $cache, $code, &$cachedData ) {
+if ( !function_exists( 'wfJsonI18nShim88f78f66a49810c2' ) ) {
+ function wfJsonI18nShim88f78f66a49810c2( $cache, $code, &$cachedData ) {
$codeSequence = array_merge( array( $code ), $cachedData['fallbackSequence'] );
foreach ( $codeSequence as $csCode ) {
- $fileName = dirname( __FILE__ ) . "/i18n/asirra/$csCode.json";
+ $fileName = dirname( __FILE__ ) . "/i18n/$csCode.json";
if ( is_readable( $fileName ) ) {
$data = FormatJson::decode( file_get_contents( $fileName ), true );
foreach ( array_keys( $data ) as $key ) {
@@ -31,5 +31,5 @@ if ( !function_exists( 'wfJsonI18nShimc0e16a38c3b0633f' ) ) {
return true;
}
- $GLOBALS['wgHooks']['LocalisationCacheRecache'][] = 'wfJsonI18nShimc0e16a38c3b0633f';
+ $GLOBALS['wgHooks']['LocalisationCacheRecache'][] = 'wfJsonI18nShim88f78f66a49810c2';
}
diff --git a/extensions/PdfHandler/PdfHandler.image.php b/extensions/PdfHandler/PdfHandler.image.php
new file mode 100644
index 00000000..49da7f4e
--- /dev/null
+++ b/extensions/PdfHandler/PdfHandler.image.php
@@ -0,0 +1,309 @@
+<?php
+/**
+ *
+ * Copyright © 2007 Xarax <jodeldi@gmx.de>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ */
+
+/**
+ * inspired by djvuimage from Brion Vibber
+ * modified and written by xarax
+ */
+
+class PdfImage {
+
+ /**
+ * @param $filename
+ */
+ function __construct( $filename ) {
+ $this->mFilename = $filename;
+ }
+
+ /**
+ * @return bool
+ */
+ public function isValid() {
+ return true;
+ }
+
+ /**
+ * @return array|bool
+ */
+ public function getImageSize() {
+ $data = $this->retrieveMetadata();
+ $size = self::getPageSize( $data, 1 );
+
+ if( $size ) {
+ $width = $size['width'];
+ $height = $size['height'];
+ return array( $width, $height, 'Pdf',
+ "width=\"$width\" height=\"$height\"" );
+ }
+ return false;
+ }
+
+ /**
+ * @param $data array
+ * @param $page
+ * @return array|bool
+ */
+ public static function getPageSize( $data, $page ) {
+ global $wgPdfHandlerDpi;
+
+ if( isset( $data['pages'][$page]['Page size'] ) ) {
+ $o = $data['pages'][$page]['Page size'];
+ } elseif( isset( $data['Page size'] ) ) {
+ $o = $data['Page size'];
+ } else {
+ $o = false;
+ }
+
+ if ( $o ) {
+ if( isset( $data['pages'][$page]['Page rot'] ) ) {
+ $r = $data['pages'][$page]['Page rot'];
+ } elseif( isset( $data['Page rot'] ) ) {
+ $r = $data['Page rot'];
+ } else {
+ $r = 0;
+ }
+ $size = explode( 'x', $o, 2 );
+
+ if ( $size ) {
+ $width = intval( trim( $size[0] ) / 72 * $wgPdfHandlerDpi );
+ $height = explode( ' ', trim( $size[1] ), 2 );
+ $height = intval( trim( $height[0] ) / 72 * $wgPdfHandlerDpi );
+ if ( ( $r/90 ) & 1 ) {
+ // Swap width and height for landscape pages
+ $t = $width;
+ $width = $height;
+ $height = $t;
+ }
+
+ return array(
+ 'width' => $width,
+ 'height' => $height
+ );
+ }
+ }
+
+ return false;
+ }
+
+ /**
+ * @return array|bool|null
+ */
+ public function retrieveMetaData() {
+ global $wgPdfInfo, $wgPdftoText;
+
+ if ( $wgPdfInfo ) {
+ wfProfileIn( 'pdfinfo' );
+ $cmd = wfEscapeShellArg( $wgPdfInfo ) .
+ " -enc UTF-8 " . # Report metadata as UTF-8 text...
+ " -l 9999999 " . # Report page sizes for all pages
+ " -meta " . # Report XMP metadata
+ wfEscapeShellArg( $this->mFilename );
+ $retval = '';
+ $dump = wfShellExec( $cmd, $retval );
+ $data = $this->convertDumpToArray( $dump );
+ wfProfileOut( 'pdfinfo' );
+ } else {
+ $data = null;
+ }
+
+ # Read text layer
+ if ( isset( $wgPdftoText ) ) {
+ wfProfileIn( 'pdftotext' );
+ $cmd = wfEscapeShellArg( $wgPdftoText ) . ' '. wfEscapeShellArg( $this->mFilename ) . ' - ';
+ wfDebug( __METHOD__.": $cmd\n" );
+ $retval = '';
+ $txt = wfShellExec( $cmd, $retval );
+ wfProfileOut( 'pdftotext' );
+ if( $retval == 0 ) {
+ $txt = str_replace( "\r\n", "\n", $txt );
+ $pages = explode( "\f", $txt );
+ foreach( $pages as $page => $pageText ) {
+ # Get rid of invalid UTF-8, strip control characters
+ # Note we need to do this per page, as \f page feed would be stripped.
+ $pages[$page] = UtfNormal::cleanUp( $pageText );
+ }
+ $data['text'] = $pages;
+ }
+ }
+ return $data;
+ }
+
+ /**
+ * @param $dump string
+ * @return array|bool
+ */
+ protected function convertDumpToArray( $dump ) {
+ if ( strval( $dump ) == '' ) {
+ return false;
+ }
+
+ $lines = explode( "\n", $dump );
+ $data = array();
+
+ // Metadata is always the last item, and spans multiple lines.
+ $inMetadata = false;
+
+ // Basically this loop will go through each line, splitting key value
+ // pairs on the colon, until it gets to a "Metadata:\n" at which point
+ // it will gather all remaining lines into the xmp key.
+ foreach( $lines as $line ) {
+ if ( $inMetadata ) {
+ # Handle XMP differently due to diffence in line break
+ $data['xmp'] .= "\n$line";
+ continue;
+ }
+ $bits = explode( ':', $line, 2 );
+ if( count( $bits ) > 1 ) {
+ $key = trim( $bits[0] );
+ if ( $key === 'Metadata' ) {
+ $inMetadata = true;
+ $data['xmp'] = '';
+ continue;
+ }
+ $value = trim( $bits[1] );
+ $matches = array();
+ // "Page xx rot" will be in poppler 0.20's pdfinfo output
+ // See https://bugs.freedesktop.org/show_bug.cgi?id=41867
+ if( preg_match( '/^Page +(\d+) (size|rot)$/', $key, $matches ) ) {
+ $data['pages'][$matches[1]][$matches[2] == 'size' ? 'Page size' : 'Page rot'] = $value;
+ } else {
+ $data[$key] = $value;
+ }
+ }
+ }
+ $data = $this->postProcessDump( $data );
+ return $data;
+ }
+
+ /**
+ * Postprocess the metadata (convert xmp into useful form, etc)
+ *
+ * This is used to generate the metadata table at the bottom
+ * of the image description page.
+ *
+ * @param $data Array metadata
+ * @return Array post-processed metadata
+ */
+ protected function postProcessDump( array $data ) {
+
+ $meta = new BitmapMetadataHandler();
+ $items = array();
+ foreach( $data as $key => $val ) {
+ switch ( $key ) {
+ case 'Title':
+ $items['ObjectName'] = $val;
+ break;
+ case 'Subject':
+ $items['ImageDescription'] = $val;
+ break;
+ case 'Keywords':
+ // Sometimes we have empty keywords. This seems
+ // to be a product of how pdfinfo deals with keywords
+ // with spaces in them. Filter such empty keywords
+ $keyList = array_filter( explode( ' ', $val ) );
+ if ( count( $keyList ) > 0 ) {
+ $items['Keywords'] = $keyList;
+ }
+ break;
+ case 'Author':
+ $items['Artist'] = $val;
+ break;
+ case 'Creator':
+ // Program used to create file.
+ // Different from program used to convert to pdf.
+ $items['Software'] = $val;
+ break;
+ case 'Producer':
+ // Conversion program
+ $items['pdf-Producer'] = $val;
+ break;
+ case 'ModTime':
+ $timestamp = wfTimestamp( TS_EXIF, $val );
+ if ( $timestamp ) {
+ // 'if' is just paranoia
+ $items['DateTime'] = $timestamp;
+ }
+ break;
+ case 'CreationTime':
+ $timestamp = wfTimestamp( TS_EXIF, $val );
+ if ( $timestamp ) {
+ $items['DateTimeDigitized'] = $timestamp;
+ }
+ break;
+ // These last two (version and encryption) I was unsure
+ // if we should include in the table, since they aren't
+ // all that useful to editors. I leaned on the side
+ // of including. However not including if file
+ // is optimized/linearized since that is really useless
+ // to an editor.
+ case 'PDF version':
+ $items['pdf-Version'] = $val;
+ break;
+ case 'Encrypted':
+ // @todo: The value isn't i18n-ised. The appropriate
+ // place to do that is in FormatMetadata.php
+ // should add a hook a there.
+ // For reference, if encrypted this fields value looks like:
+ // "yes (print:yes copy:no change:no addNotes:no)"
+ $items['pdf-Encrypted'] = $val;
+ break;
+ // Note 'pages' and 'Pages' are different keys (!)
+ case 'pages':
+ // A pdf document can have multiple sized pages in it.
+ // (However 95% of the time, all pages are the same size)
+ // get a list of all the unique page sizes in document.
+ // This doesn't do anything with rotation as of yet,
+ // mostly because I am unsure of what a good way to
+ // present that information to the user would be.
+ $pageSizes = array();
+ foreach( $val as $page ) {
+ if( isset( $page['Page size'] ) ) {
+ $pageSizes[ $page['Page size'] ] = true;
+ }
+ }
+
+ $pageSizeArray = array_keys( $pageSizes );
+ if ( count( $pageSizeArray ) > 0 ) {
+ $items['pdf-PageSize'] = $pageSizeArray;
+ }
+ break;
+ }
+
+ }
+ $meta->addMetadata( $items, 'native' );
+
+ if ( isset( $data['xmp'] ) && function_exists( 'xml_parser_create_ns' ) ) {
+ // func exists verifies that the xml extension required for XMPReader
+ // is present (Almost always is present)
+ // @todo: This only handles generic xmp properties. Would be improved
+ // by handling pdf xmp properties (pdf and pdfx) via XMPInfo hook.
+ $xmp = new XMPReader();
+ $xmp->parse( $data['xmp'] );
+ $xmpRes = $xmp->getResults();
+ foreach ( $xmpRes as $type => $xmpSection ) {
+ $meta->addMetadata( $xmpSection, $type );
+ }
+ }
+ unset( $data['xmp'] );
+ $data['mergedMetadata'] = $meta->getMetadataArray();
+ return $data;
+ }
+}
diff --git a/extensions/PdfHandler/PdfHandler.php b/extensions/PdfHandler/PdfHandler.php
new file mode 100644
index 00000000..f4e15657
--- /dev/null
+++ b/extensions/PdfHandler/PdfHandler.php
@@ -0,0 +1,66 @@
+<?php
+/**
+ * PDF Handler extension -- handler for viewing PDF files in image mode.
+ *
+ * @file
+ * @ingroup Extensions
+ * @author Martin Seidel (Xarax) <jodeldi@gmx.de>
+ * @copyright Copyright © 2007 Martin Seidel (Xarax) <jodeldi@gmx.de>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ */
+
+# Not a valid entry point, skip unless MEDIAWIKI is defined
+if ( !defined( 'MEDIAWIKI' ) ) {
+ echo 'PdfHandler extension';
+ exit( 1 );
+}
+
+$wgExtensionCredits['media'][] = array(
+ 'path' => __FILE__,
+ 'name' => 'PDF Handler',
+ 'author' => array( 'Martin Seidel', 'Mike Połtyn' ),
+ 'descriptionmsg' => 'pdf-desc',
+ 'url' => 'https://www.mediawiki.org/wiki/Extension:PdfHandler',
+);
+
+// External program requirements...
+$wgPdfProcessor = 'gs';
+$wgPdfPostProcessor = 'convert';
+$wgPdfInfo = 'pdfinfo';
+$wgPdftoText = 'pdftotext';
+
+$wgPdfOutputExtension = 'jpg';
+$wgPdfHandlerDpi = 150;
+$wgPdfHandlerJpegQuality = 95;
+
+// This setting, if enabled, will put creating thumbnails into a job queue,
+// so they do not have to be created on-the-fly,
+// but rather inconspicuously during normal wiki browsing
+$wgPdfCreateThumbnailsInJobQueue = false;
+
+// To upload new PDF files you'll need to do this too:
+// $wgFileExtensions[] = 'pdf';
+
+$dir = __DIR__ . '/';
+$wgMessagesDirs['PdfHandler'] = __DIR__ . '/i18n';
+$wgExtensionMessagesFiles['PdfHandler'] = $dir . 'PdfHandler.i18n.php';
+$wgAutoloadClasses['PdfImage'] = $dir . 'PdfHandler.image.php';
+$wgAutoloadClasses['PdfHandler'] = $dir . 'PdfHandler_body.php';
+$wgAutoloadClasses['CreatePdfThumbnailsJob'] = $dir . 'CreatePdfThumbnailsJob.class.php';
+$wgMediaHandlers['application/pdf'] = 'PdfHandler';
+$wgJobClasses['createPdfThumbnailsJob'] = 'CreatePdfThumbnailsJob';
+$wgHooks['UploadVerifyFile'][] = 'CreatePdfThumbnailsJob::insertJobs';
diff --git a/extensions/PdfHandler/PdfHandler_body.php b/extensions/PdfHandler/PdfHandler_body.php
new file mode 100644
index 00000000..2a08a95b
--- /dev/null
+++ b/extensions/PdfHandler/PdfHandler_body.php
@@ -0,0 +1,386 @@
+<?php
+/**
+ * Copyright © 2007 Martin Seidel (Xarax) <jodeldi@gmx.de>
+ *
+ * Inspired by djvuhandler from Tim Starling
+ * Modified and written by Xarax
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ */
+
+class PdfHandler extends ImageHandler {
+
+ /**
+ * @return bool
+ */
+ function isEnabled() {
+ global $wgPdfProcessor, $wgPdfPostProcessor, $wgPdfInfo;
+
+ if ( !isset( $wgPdfProcessor ) || !isset( $wgPdfPostProcessor ) || !isset( $wgPdfInfo ) ) {
+ wfDebug( "PdfHandler is disabled, please set the following\n" );
+ wfDebug( "variables in LocalSettings.php:\n" );
+ wfDebug( "\$wgPdfProcessor, \$wgPdfPostProcessor, \$wgPdfInfo\n" );
+ return false;
+ }
+ return true;
+ }
+
+ /**
+ * @param $file
+ * @return bool
+ */
+ function mustRender( $file ) {
+ return true;
+ }
+
+ /**
+ * @param $file
+ * @return bool
+ */
+ function isMultiPage( $file ) {
+ return true;
+ }
+
+ /**
+ * @param $name
+ * @param $value
+ * @return bool
+ */
+ function validateParam( $name, $value ) {
+ if ( $name === 'page' && trim( $value ) !== (string) intval( $value ) ) {
+ // Extra junk on the end of page, probably actually a caption
+ // e.g. [[File:Foo.pdf|thumb|Page 3 of the document shows foo]]
+ return false;
+ }
+ if ( in_array( $name, array( 'width', 'height', 'page' ) ) ) {
+ return ( $value > 0 );
+ }
+ return false;
+ }
+
+ /**
+ * @param $params array
+ * @return bool|string
+ */
+ function makeParamString( $params ) {
+ $page = isset( $params['page'] ) ? $params['page'] : 1;
+ if ( !isset( $params['width'] ) ) {
+ return false;
+ }
+ return "page{$page}-{$params['width']}px";
+ }
+
+ /**
+ * @param $str string
+ * @return array|bool
+ */
+ function parseParamString( $str ) {
+ $m = false;
+
+ if ( preg_match( '/^page(\d+)-(\d+)px$/', $str, $m ) ) {
+ return array( 'width' => $m[2], 'page' => $m[1] );
+ }
+
+ return false;
+ }
+
+ /**
+ * @param $params array
+ * @return array
+ */
+ function getScriptParams( $params ) {
+ return array(
+ 'width' => $params['width'],
+ 'page' => $params['page'],
+ );
+ }
+
+ /**
+ * @return array
+ */
+ function getParamMap() {
+ return array(
+ 'img_width' => 'width',
+ 'img_page' => 'page',
+ );
+ }
+
+ /**
+ * @param $width
+ * @param $height
+ * @param $msg
+ * @return MediaTransformError
+ */
+ protected function doThumbError( $width, $height, $msg ) {
+ return new MediaTransformError( 'thumbnail_error',
+ $width, $height, wfMessage( $msg )->inContentLanguage()->text() );
+ }
+
+ /**
+ * @param $image File
+ * @param $dstPath string
+ * @param $dstUrl string
+ * @param $params array
+ * @param $flags int
+ * @return MediaTransformError|MediaTransformOutput|ThumbnailImage|TransformParameterError
+ */
+ function doTransform( $image, $dstPath, $dstUrl, $params, $flags = 0 ) {
+ global $wgPdfProcessor, $wgPdfPostProcessor, $wgPdfHandlerDpi, $wgPdfHandlerJpegQuality;
+
+ $metadata = $image->getMetadata();
+
+ if ( !$metadata ) {
+ return $this->doThumbError(
+ isset( $params['width'] ) ? $params['width'] : null,
+ isset( $params['height'] ) ? $params['height'] : null,
+ 'pdf_no_metadata'
+ );
+ }
+
+ if ( !$this->normaliseParams( $image, $params ) ) {
+ return new TransformParameterError( $params );
+ }
+
+ $width = $params['width'];
+ $height = $params['height'];
+ $page = $params['page'];
+
+ if ( $page > $this->pageCount( $image ) ) {
+ return $this->doThumbError( $width, $height, 'pdf_page_error' );
+ }
+
+ if ( $flags & self::TRANSFORM_LATER ) {
+ return new ThumbnailImage( $image, $dstUrl, $width, $height, false, $page );
+ }
+
+ if ( !wfMkdirParents( dirname( $dstPath ), null, __METHOD__ ) ) {
+ return $this->doThumbError( $width, $height, 'thumbnail_dest_directory' );
+ }
+
+ // Thumbnail extraction is very inefficient for large files.
+ // Provide a way to pool count limit the number of downloaders.
+ if ( $image->getSize() >= 1e7 ) { // 10MB
+ $work = new PoolCounterWorkViaCallback( 'GetLocalFileCopy', sha1( $image->getName() ),
+ array(
+ 'doWork' => function() use ( $image ) {
+ return $image->getLocalRefPath();
+ }
+ )
+ );
+ $srcPath = $work->execute();
+ } else {
+ $srcPath = $image->getLocalRefPath();
+ }
+
+ if ( $srcPath === false ) { // could not download original
+ return $this->doThumbError( $width, $height, 'filemissing' );
+ }
+
+ $cmd = '(' . wfEscapeShellArg(
+ $wgPdfProcessor,
+ "-sDEVICE=jpeg",
+ "-sOutputFile=-",
+ "-dFirstPage={$page}",
+ "-dLastPage={$page}",
+ "-r{$wgPdfHandlerDpi}",
+ "-dBATCH",
+ "-dNOPAUSE",
+ "-q",
+ $srcPath
+ );
+ $cmd .= " | " . wfEscapeShellArg(
+ $wgPdfPostProcessor,
+ "-depth",
+ "8",
+ "-quality",
+ $wgPdfHandlerJpegQuality,
+ "-resize",
+ $width,
+ "-",
+ $dstPath
+ );
+ $cmd .= ")";
+
+ wfProfileIn( 'PdfHandler' );
+ wfDebug( __METHOD__ . ": $cmd\n" );
+ $retval = '';
+ $err = wfShellExecWithStderr( $cmd, $retval );
+ wfProfileOut( 'PdfHandler' );
+
+ $removed = $this->removeBadFile( $dstPath, $retval );
+
+ if ( $retval != 0 || $removed ) {
+ wfDebugLog( 'thumbnail',
+ sprintf( 'thumbnail failed on %s: error %d "%s" from "%s"',
+ wfHostname(), $retval, trim( $err ), $cmd ) );
+ return new MediaTransformError( 'thumbnail_error', $width, $height, $err );
+ } else {
+ return new ThumbnailImage( $image, $dstUrl, $width, $height, $dstPath, $page );
+ }
+ }
+
+ /**
+ * @param $image File
+ * @param $path string
+ * @return PdfImage
+ */
+ function getPdfImage( $image, $path ) {
+ if ( !$image ) {
+ $pdfimg = new PdfImage( $path );
+ } elseif ( !isset( $image->pdfImage ) ) {
+ $pdfimg = $image->pdfImage = new PdfImage( $path );
+ } else {
+ $pdfimg = $image->pdfImage;
+ }
+
+ return $pdfimg;
+ }
+
+ /**
+ * @param $image File
+ * @return bool
+ */
+ function getMetaArray( $image ) {
+ if ( isset( $image->pdfMetaArray ) ) {
+ return $image->pdfMetaArray;
+ }
+
+ $metadata = $image->getMetadata();
+
+ if ( !$this->isMetadataValid( $image, $metadata ) ) {
+ wfDebug( "Pdf metadata is invalid or missing, should have been fixed in upgradeRow\n" );
+ return false;
+ }
+
+ wfProfileIn( __METHOD__ );
+ wfSuppressWarnings();
+ $image->pdfMetaArray = unserialize( $metadata );
+ wfRestoreWarnings();
+ wfProfileOut( __METHOD__ );
+
+ return $image->pdfMetaArray;
+ }
+
+ /**
+ * @param $image File
+ * @param $path string
+ * @return array|bool
+ */
+ function getImageSize( $image, $path ) {
+ return $this->getPdfImage( $image, $path )->getImageSize();
+ }
+
+ /**
+ * @param $ext
+ * @param $mime string
+ * @param $params null
+ * @return array
+ */
+ function getThumbType( $ext, $mime, $params = null ) {
+ global $wgPdfOutputExtension;
+ static $mime;
+
+ if ( !isset( $mime ) ) {
+ $magic = MimeMagic::singleton();
+ $mime = $magic->guessTypesForExtension( $wgPdfOutputExtension );
+ }
+ return array( $wgPdfOutputExtension, $mime );
+ }
+
+ /**
+ * @param $image File
+ * @param $path string
+ * @return string
+ */
+ function getMetadata( $image, $path ) {
+ return serialize( $this->getPdfImage( $image, $path )->retrieveMetaData() );
+ }
+
+ /**
+ * @param $image File
+ * @param $metadata string
+ * @return bool
+ */
+ function isMetadataValid( $image, $metadata ) {
+ if ( !$metadata || $metadata === serialize(array()) ) {
+ return self::METADATA_BAD;
+ } elseif ( strpos( $metadata, 'mergedMetadata' ) === false ) {
+ return self::METADATA_COMPATIBLE;
+ }
+ return self::METADATA_GOOD;
+ }
+
+ /**
+ * @param $image File
+ * @return bool|int
+ */
+ function formatMetadata( $image ) {
+ $meta = $image->getMetadata();
+
+ if ( !$meta ) {
+ return false;
+ }
+ wfSuppressWarnings();
+ $meta = unserialize( $meta );
+ wfRestoreWarnings();
+
+ if ( !isset( $meta['mergedMetadata'] )
+ || !is_array( $meta['mergedMetadata'] )
+ || count( $meta['mergedMetadata'] ) < 1
+ ) {
+ return false;
+ }
+
+ // Inherited from MediaHandler.
+ return $this->formatMetadataHelper( $meta['mergedMetadata'] );
+ }
+
+ /**
+ * @param $image
+ * @return bool|int
+ */
+ function pageCount( $image ) {
+ $data = $this->getMetaArray( $image );
+ if ( !$data || !isset( $data['Pages'] ) ) {
+ return false;
+ }
+ return intval( $data['Pages'] );
+ }
+
+ /**
+ * @param $image File
+ * @param $page int
+ * @return array|bool
+ */
+ function getPageDimensions( $image, $page ) {
+ $data = $this->getMetaArray( $image );
+ return PdfImage::getPageSize( $data, $page );
+ }
+
+ /**
+ * @param $image File
+ * @param $page int
+ * @return bool
+ */
+ function getPageText( $image, $page ) {
+ $data = $this->getMetaArray( $image, true );
+ if ( !$data || !isset( $data['text'] ) || !isset( $data['text'][$page - 1] ) ) {
+ return false;
+ }
+ return $data['text'][$page - 1];
+ }
+
+}
diff --git a/extensions/PdfHandler/i18n/af.json b/extensions/PdfHandler/i18n/af.json
new file mode 100644
index 00000000..0bb386a2
--- /dev/null
+++ b/extensions/PdfHandler/i18n/af.json
@@ -0,0 +1,11 @@
+{
+ "@metadata": {
+ "authors": [
+ "Naudefj",
+ "පසිඳු කාවින්ද"
+ ]
+ },
+ "pdf-desc": "Handler vir die lees van PDF-lêers in beeld af",
+ "pdf_no_metadata": "Kan nie metadata uit PDF kry nie",
+ "pdf_page_error": "Bladsynommer kom nie in dokument voor nie"
+}
diff --git a/extensions/PdfHandler/i18n/aln.json b/extensions/PdfHandler/i18n/aln.json
new file mode 100644
index 00000000..38372cdb
--- /dev/null
+++ b/extensions/PdfHandler/i18n/aln.json
@@ -0,0 +1,10 @@
+{
+ "@metadata": {
+ "authors": [
+ "Mdupont"
+ ]
+ },
+ "pdf-desc": "Mbajtës për shikimin PDF files në imazh mode",
+ "pdf_no_metadata": "Nuk mund të merrni nga metadata PDF",
+ "pdf_page_error": "numrin e faqes nuk është në varg"
+}
diff --git a/extensions/PdfHandler/i18n/an.json b/extensions/PdfHandler/i18n/an.json
new file mode 100644
index 00000000..ed321d67
--- /dev/null
+++ b/extensions/PdfHandler/i18n/an.json
@@ -0,0 +1,10 @@
+{
+ "@metadata": {
+ "authors": [
+ "Juanpabl"
+ ]
+ },
+ "pdf-desc": "Maneyador ta veyer fichers PDF en modo imachen",
+ "pdf_no_metadata": "No s'obtenioron metadatos d'o PDF",
+ "pdf_page_error": "Numero de pachina difuera de rango"
+}
diff --git a/extensions/PdfHandler/i18n/ar.json b/extensions/PdfHandler/i18n/ar.json
new file mode 100644
index 00000000..6bd54a16
--- /dev/null
+++ b/extensions/PdfHandler/i18n/ar.json
@@ -0,0 +1,16 @@
+{
+ "@metadata": {
+ "authors": [
+ "Meno25",
+ "Mido",
+ "أحمد"
+ ]
+ },
+ "pdf-desc": "معالج عرض ملفات PDF في طور الصور",
+ "pdf_no_metadata": "تعذّر استخراج البيانات الفوقية من ملف PDF",
+ "pdf_page_error": "رقم الصفحة خارج عن النطاق",
+ "exif-pdf-producer": "برمجية التحويل",
+ "exif-pdf-version": "إصدارة صيغة PDF",
+ "exif-pdf-encrypted": "مُعمّى",
+ "exif-pdf-pagesize": "حجم الصفحة"
+}
diff --git a/extensions/PdfHandler/i18n/arz.json b/extensions/PdfHandler/i18n/arz.json
new file mode 100644
index 00000000..16b3a730
--- /dev/null
+++ b/extensions/PdfHandler/i18n/arz.json
@@ -0,0 +1,10 @@
+{
+ "@metadata": {
+ "authors": [
+ "Meno25"
+ ]
+ },
+ "pdf-desc": "متحكم لرؤية ملفات PDF فى نمط صورة",
+ "pdf_no_metadata": "لم يمكن أخذ معلومات ميتا من PDF",
+ "pdf_page_error": "رقم الصفحة ليس فى النطاق"
+}
diff --git a/extensions/PdfHandler/i18n/as.json b/extensions/PdfHandler/i18n/as.json
new file mode 100644
index 00000000..bcd58e33
--- /dev/null
+++ b/extensions/PdfHandler/i18n/as.json
@@ -0,0 +1,13 @@
+{
+ "@metadata": {
+ "authors": [
+ "Bishnu Saikia"
+ ]
+ },
+ "pdf-desc": "পিডিএফ ফাইল ছবি হিচাপে ব্যৱহাৰৰ পদ্ধতি",
+ "pdf_no_metadata": "পি.ডি.এফ.ৰ পৰা মেটাডাটা উপলদ্ধ নহয়",
+ "pdf_page_error": "পৃষ্ঠাৰ নম্বৰ সীমাৰ ভিতৰত নাই",
+ "exif-pdf-producer": "ৰূপান্তৰক প্ৰগ্ৰাম",
+ "exif-pdf-version": "পি.ডি.এফ. ৰূপত সংস্কৰণ",
+ "exif-pdf-pagesize": "পৃষ্ঠাৰ আকাৰ"
+}
diff --git a/extensions/PdfHandler/i18n/ast.json b/extensions/PdfHandler/i18n/ast.json
new file mode 100644
index 00000000..b2ad9d48
--- /dev/null
+++ b/extensions/PdfHandler/i18n/ast.json
@@ -0,0 +1,14 @@
+{
+ "@metadata": {
+ "authors": [
+ "Xuacu"
+ ]
+ },
+ "pdf-desc": "Xestor pa ver los ficheros PDF en mou d'imaxe",
+ "pdf_no_metadata": "Nun se pudieron sacar los metadatos del PDF",
+ "pdf_page_error": "El númberu de la páxina nun ta nel rangu",
+ "exif-pdf-producer": "Programa de conversión",
+ "exif-pdf-version": "Versión del formatu PDF",
+ "exif-pdf-encrypted": "Cifráu",
+ "exif-pdf-pagesize": "Tamañu de la páxina"
+}
diff --git a/extensions/PdfHandler/i18n/azb.json b/extensions/PdfHandler/i18n/azb.json
new file mode 100644
index 00000000..d947868b
--- /dev/null
+++ b/extensions/PdfHandler/i18n/azb.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Amir a57"
+ ]
+ },
+ "exif-pdf-pagesize": "صحیفه اولچوسو"
+}
diff --git a/extensions/PdfHandler/i18n/ba.json b/extensions/PdfHandler/i18n/ba.json
new file mode 100644
index 00000000..451d0637
--- /dev/null
+++ b/extensions/PdfHandler/i18n/ba.json
@@ -0,0 +1,10 @@
+{
+ "@metadata": {
+ "authors": [
+ "Assele"
+ ]
+ },
+ "pdf-desc": "PDF файлдарҙы рәсемдәр рәүешендә ҡарау өсөн эшкәртеүсе ҡорал",
+ "pdf_no_metadata": "PDF-тан мета-мәғлүмәтте алыу мөмкин түгел",
+ "pdf_page_error": "Бит һаны биттәр һанынан ашҡан"
+}
diff --git a/extensions/PdfHandler/i18n/bcl.json b/extensions/PdfHandler/i18n/bcl.json
new file mode 100644
index 00000000..3614c142
--- /dev/null
+++ b/extensions/PdfHandler/i18n/bcl.json
@@ -0,0 +1,14 @@
+{
+ "@metadata": {
+ "authors": [
+ "Geopoet"
+ ]
+ },
+ "pdf-desc": "An tagapagkapot para sa pagtatanaw kan PDF na mga sagunson na yaon sa moda nin imahe.",
+ "pdf_no_metadata": "Dae makakakua nin datos na meta gikan sa PDF.",
+ "pdf_page_error": "An numero kan pahina dae tabi abot.",
+ "exif-pdf-producer": "Programa nin kombersyon",
+ "exif-pdf-version": "Bersyon kan PDF pormat",
+ "exif-pdf-encrypted": "Enkriptado",
+ "exif-pdf-pagesize": "Sukol kan pahina"
+}
diff --git a/extensions/PdfHandler/i18n/be-tarask.json b/extensions/PdfHandler/i18n/be-tarask.json
new file mode 100644
index 00000000..95401de0
--- /dev/null
+++ b/extensions/PdfHandler/i18n/be-tarask.json
@@ -0,0 +1,16 @@
+{
+ "@metadata": {
+ "authors": [
+ "EugeneZelenko",
+ "Jim-by",
+ "Wizardist"
+ ]
+ },
+ "pdf-desc": "Апрацоўшчык для прагляду PDF-файлаў у выглядзе выяваў",
+ "pdf_no_metadata": "Немагчыма атрымаць мэта-зьвесткі з PDF-файла",
+ "pdf_page_error": "Нумар старонкі паза дыяпазонам",
+ "exif-pdf-producer": "Праграма канвэртацыі",
+ "exif-pdf-version": "Вэрсія фармату PDF",
+ "exif-pdf-encrypted": "Зашыфравана",
+ "exif-pdf-pagesize": "Памер старонкі"
+}
diff --git a/extensions/PdfHandler/i18n/bg.json b/extensions/PdfHandler/i18n/bg.json
new file mode 100644
index 00000000..e04fd36b
--- /dev/null
+++ b/extensions/PdfHandler/i18n/bg.json
@@ -0,0 +1,13 @@
+{
+ "@metadata": {
+ "authors": [
+ "DCLXVI",
+ "Stanqo",
+ "Turin"
+ ]
+ },
+ "pdf_no_metadata": "невъзможно е да бъдат извлечени метаданни от PDF",
+ "pdf_page_error": "Номерът на страница е извън обхвата",
+ "exif-pdf-encrypted": "Криптиране",
+ "exif-pdf-pagesize": "Размер на страницата"
+}
diff --git a/extensions/PdfHandler/i18n/bn.json b/extensions/PdfHandler/i18n/bn.json
new file mode 100644
index 00000000..661fffe7
--- /dev/null
+++ b/extensions/PdfHandler/i18n/bn.json
@@ -0,0 +1,11 @@
+{
+ "@metadata": {
+ "authors": [
+ "Nasir8891",
+ "Wikitanvir"
+ ]
+ },
+ "pdf-desc": "পিডিএফ ফাইল ছবি হিসাবে ব্যবহারের পদ্ধতি",
+ "pdf_no_metadata": "পিডিএফ থেকে মেটাডেটা পাওয়া যায়নি",
+ "pdf_page_error": "পাতার নম্বর সীমার মধ্যে নেই"
+}
diff --git a/extensions/PdfHandler/i18n/br.json b/extensions/PdfHandler/i18n/br.json
new file mode 100644
index 00000000..5b9f8a82
--- /dev/null
+++ b/extensions/PdfHandler/i18n/br.json
@@ -0,0 +1,15 @@
+{
+ "@metadata": {
+ "authors": [
+ "Fohanno",
+ "Fulup"
+ ]
+ },
+ "pdf-desc": "Maveg evit gwelet ar restroù PDF e mod skeudenn",
+ "pdf_no_metadata": "Dibosupl tapout meta-roadennoù digant ar restr PDF",
+ "pdf_page_error": "N'emañ ket niverenn ar bajenn er skeuliad",
+ "exif-pdf-producer": "Program amdreiñ",
+ "exif-pdf-version": "Stumm ar furmad PDF",
+ "exif-pdf-encrypted": "Sifret",
+ "exif-pdf-pagesize": "Ment ar bajenn"
+}
diff --git a/extensions/PdfHandler/i18n/bs.json b/extensions/PdfHandler/i18n/bs.json
new file mode 100644
index 00000000..7085dad0
--- /dev/null
+++ b/extensions/PdfHandler/i18n/bs.json
@@ -0,0 +1,10 @@
+{
+ "@metadata": {
+ "authors": [
+ "CERminator"
+ ]
+ },
+ "pdf-desc": "Uređivač za pregled PDF datoteka u modu za slike",
+ "pdf_no_metadata": "Ne mogu se naći metapodaci u PDFu",
+ "pdf_page_error": "Broj stranice nije u rasponu"
+}
diff --git a/extensions/PdfHandler/i18n/ca.json b/extensions/PdfHandler/i18n/ca.json
new file mode 100644
index 00000000..6bf49e64
--- /dev/null
+++ b/extensions/PdfHandler/i18n/ca.json
@@ -0,0 +1,10 @@
+{
+ "@metadata": {
+ "authors": [
+ "Aleator"
+ ]
+ },
+ "pdf-desc": "Gestor per a visualitzar arxius PDF en mode imatge",
+ "pdf_no_metadata": "No s'han pogut obtenir metadades del PDF",
+ "pdf_page_error": "Número de pàgina fora d'abast"
+}
diff --git a/extensions/PdfHandler/i18n/ce.json b/extensions/PdfHandler/i18n/ce.json
new file mode 100644
index 00000000..906c8510
--- /dev/null
+++ b/extensions/PdfHandler/i18n/ce.json
@@ -0,0 +1,12 @@
+{
+ "@metadata": {
+ "authors": [
+ "Sasan700",
+ "Умар"
+ ]
+ },
+ "pdf-desc": "Хьажа аттон кечйо PDF-файлаш суьрта куьцехь",
+ "pdf_no_metadata": "схьацаэцало чура бух оцу PDF",
+ "pdf_page_error": "Агlон терахь дозан чулацамца дац",
+ "exif-pdf-pagesize": "АгӀона барам"
+}
diff --git a/extensions/PdfHandler/i18n/ckb.json b/extensions/PdfHandler/i18n/ckb.json
new file mode 100644
index 00000000..756f3c59
--- /dev/null
+++ b/extensions/PdfHandler/i18n/ckb.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Calak"
+ ]
+ },
+ "exif-pdf-pagesize": "قەبارەی پەڕە"
+}
diff --git a/extensions/PdfHandler/i18n/cs.json b/extensions/PdfHandler/i18n/cs.json
new file mode 100644
index 00000000..204a5374
--- /dev/null
+++ b/extensions/PdfHandler/i18n/cs.json
@@ -0,0 +1,15 @@
+{
+ "@metadata": {
+ "authors": [
+ "Matěj Grabovský",
+ "Mormegil"
+ ]
+ },
+ "pdf-desc": "Ovladač pro prohlížení PDF souborů jako obrázků",
+ "pdf_no_metadata": "Z PDF se nepodařilo získat metadata",
+ "pdf_page_error": "Číslo stránky mimo rozsah",
+ "exif-pdf-producer": "Konverzní program",
+ "exif-pdf-version": "Verze formátu PDF",
+ "exif-pdf-encrypted": "Šifrovaný",
+ "exif-pdf-pagesize": "Velikost stránky"
+}
diff --git a/extensions/PdfHandler/i18n/cy.json b/extensions/PdfHandler/i18n/cy.json
new file mode 100644
index 00000000..bdaa8abc
--- /dev/null
+++ b/extensions/PdfHandler/i18n/cy.json
@@ -0,0 +1,14 @@
+{
+ "@metadata": {
+ "authors": [
+ "Lloffiwr"
+ ]
+ },
+ "pdf-desc": "Teclyn i weld ffeiliau PDF ar lun delwedd",
+ "pdf_no_metadata": "Yn methu cael y metadata o'r PDF",
+ "pdf_page_error": "Nid yw'r rhif hwn oddi mewn i ystod rhifau'r tudalennau",
+ "exif-pdf-producer": "Rhaglen trosi",
+ "exif-pdf-version": "Fersiwn y fformat PDF",
+ "exif-pdf-encrypted": "Amgriptiwyd",
+ "exif-pdf-pagesize": "Maint y dudalen"
+}
diff --git a/extensions/PdfHandler/i18n/da.json b/extensions/PdfHandler/i18n/da.json
new file mode 100644
index 00000000..06a9b63e
--- /dev/null
+++ b/extensions/PdfHandler/i18n/da.json
@@ -0,0 +1,14 @@
+{
+ "@metadata": {
+ "authors": [
+ "Peter Alberti"
+ ]
+ },
+ "pdf-desc": "Håndtering af PDF-visning i billedtilstand",
+ "pdf_no_metadata": "Kan ikke hente metadata fra PDF",
+ "pdf_page_error": "Sidetallet er større end antallet af sider i dokumentet",
+ "exif-pdf-producer": "Konverteringsprogram",
+ "exif-pdf-version": "Version af PDF-format",
+ "exif-pdf-encrypted": "Krypteret",
+ "exif-pdf-pagesize": "Sidestørrelse"
+}
diff --git a/extensions/PdfHandler/i18n/de-ch.json b/extensions/PdfHandler/i18n/de-ch.json
new file mode 100644
index 00000000..1e9af268
--- /dev/null
+++ b/extensions/PdfHandler/i18n/de-ch.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Geitost"
+ ]
+ },
+ "pdf_page_error": "Seitenzahl ausserhalb des Dokumentes."
+}
diff --git a/extensions/PdfHandler/i18n/de.json b/extensions/PdfHandler/i18n/de.json
new file mode 100644
index 00000000..ea9c169d
--- /dev/null
+++ b/extensions/PdfHandler/i18n/de.json
@@ -0,0 +1,16 @@
+{
+ "@metadata": {
+ "authors": [
+ "Kghbln",
+ "Metalhead64",
+ "Raimond Spekking"
+ ]
+ },
+ "pdf-desc": "Stellt eine Schnittstelle zur Ansicht von PDF-Dateien im Bildermodus bereit",
+ "pdf_no_metadata": "Keine Metadaten im PDF vorhanden.",
+ "pdf_page_error": "Seitenzahl außerhalb des Dokumentes.",
+ "exif-pdf-producer": "Umwandlungsprogramm",
+ "exif-pdf-version": "Version des PDF-Formats",
+ "exif-pdf-encrypted": "Verschlüsselt",
+ "exif-pdf-pagesize": "Seitengröße"
+}
diff --git a/extensions/PdfHandler/i18n/diq.json b/extensions/PdfHandler/i18n/diq.json
new file mode 100644
index 00000000..5978d419
--- /dev/null
+++ b/extensions/PdfHandler/i18n/diq.json
@@ -0,0 +1,16 @@
+{
+ "@metadata": {
+ "authors": [
+ "Aspar",
+ "Erdemaslancan",
+ "Mirzali"
+ ]
+ },
+ "pdf-desc": "şuxulnayoxo ke dosyayê PDFyan modê mocnayiş de mocneno",
+ "pdf_no_metadata": "PDF ra metadata nêgeriyeno",
+ "pdf_page_error": "numreyê peli benate de niyo",
+ "exif-pdf-producer": "Programa çerxiney",
+ "exif-pdf-version": "Versiyona babet da PDF",
+ "exif-pdf-encrypted": "Kodıno",
+ "exif-pdf-pagesize": "Ebadê pele"
+}
diff --git a/extensions/PdfHandler/i18n/dsb.json b/extensions/PdfHandler/i18n/dsb.json
new file mode 100644
index 00000000..ec2ec39d
--- /dev/null
+++ b/extensions/PdfHandler/i18n/dsb.json
@@ -0,0 +1,14 @@
+{
+ "@metadata": {
+ "authors": [
+ "Michawiki"
+ ]
+ },
+ "pdf-desc": "Źěłowy rěd za woglědowanje PDF-datajow we wobrazowem modusu",
+ "pdf_no_metadata": "Metadaty njedaju se z PDF dobyś",
+ "pdf_page_error": "Bokowe cysło zwenka wobcerka",
+ "exif-pdf-producer": "Konwertěrowański program",
+ "exif-pdf-version": "Wersija PDF-formata",
+ "exif-pdf-encrypted": "Skoděrowany",
+ "exif-pdf-pagesize": "Wjelikosć boka"
+}
diff --git a/extensions/PdfHandler/i18n/el.json b/extensions/PdfHandler/i18n/el.json
new file mode 100644
index 00000000..f835d016
--- /dev/null
+++ b/extensions/PdfHandler/i18n/el.json
@@ -0,0 +1,10 @@
+{
+ "@metadata": {
+ "authors": [
+ "Omnipaedista"
+ ]
+ },
+ "pdf-desc": "Διαχειριστής για την εμφάνιση αρχείων PDF σε μορφή εικόνας",
+ "pdf_no_metadata": "Αδύνατη η απόκτηση μεταδεδομένων από PDF",
+ "pdf_page_error": "Αριθμός σελίδας εκτός ορίου"
+}
diff --git a/extensions/PdfHandler/i18n/en-gb.json b/extensions/PdfHandler/i18n/en-gb.json
new file mode 100644
index 00000000..e7f8ae14
--- /dev/null
+++ b/extensions/PdfHandler/i18n/en-gb.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Shirayuki"
+ ]
+ },
+ "exif-pdf-producer": "Conversion programme"
+}
diff --git a/extensions/PdfHandler/i18n/en.json b/extensions/PdfHandler/i18n/en.json
new file mode 100644
index 00000000..18bdff89
--- /dev/null
+++ b/extensions/PdfHandler/i18n/en.json
@@ -0,0 +1,12 @@
+{
+ "@metadata": {
+ "authors": []
+ },
+ "pdf-desc": "Handler for viewing PDF files in image mode.",
+ "pdf_no_metadata": "Cannot get metadata from PDF.",
+ "pdf_page_error": "Page number not in range.",
+ "exif-pdf-producer": "Conversion program",
+ "exif-pdf-version": "Version of PDF format",
+ "exif-pdf-encrypted": "Encrypted",
+ "exif-pdf-pagesize": "Page size"
+} \ No newline at end of file
diff --git a/extensions/PdfHandler/i18n/eo.json b/extensions/PdfHandler/i18n/eo.json
new file mode 100644
index 00000000..0f74f7c4
--- /dev/null
+++ b/extensions/PdfHandler/i18n/eo.json
@@ -0,0 +1,13 @@
+{
+ "@metadata": {
+ "authors": [
+ "Yekrats"
+ ]
+ },
+ "pdf-desc": "Ilo por vidi PDF-dosierojn en bilda reĝimo",
+ "pdf_no_metadata": "Ne povas preni metadatenon el PDF",
+ "pdf_page_error": "Paĝnombro ekster valida intervalo",
+ "exif-pdf-version": "Versio de PDF-formato",
+ "exif-pdf-encrypted": "Ĉifrita",
+ "exif-pdf-pagesize": "Grandeco de paĝo"
+}
diff --git a/extensions/PdfHandler/i18n/es.json b/extensions/PdfHandler/i18n/es.json
new file mode 100644
index 00000000..c658bf30
--- /dev/null
+++ b/extensions/PdfHandler/i18n/es.json
@@ -0,0 +1,15 @@
+{
+ "@metadata": {
+ "authors": [
+ "Armando-Martin",
+ "Sanbec"
+ ]
+ },
+ "pdf-desc": "Manejador para ver archivos PDF en modo imagen",
+ "pdf_no_metadata": "No se obtuvieron metadatos del PDF",
+ "pdf_page_error": "Número de página fuera de rango",
+ "exif-pdf-producer": "Programa de conversión",
+ "exif-pdf-version": "Versión del formato PDF",
+ "exif-pdf-encrypted": "Cifrado",
+ "exif-pdf-pagesize": "Tamaño de página"
+}
diff --git a/extensions/PdfHandler/i18n/et.json b/extensions/PdfHandler/i18n/et.json
new file mode 100644
index 00000000..7cebfda7
--- /dev/null
+++ b/extensions/PdfHandler/i18n/et.json
@@ -0,0 +1,15 @@
+{
+ "@metadata": {
+ "authors": [
+ "Avjoska",
+ "Pikne"
+ ]
+ },
+ "pdf-desc": "Töötleja PDF-failide piltidena kuvamiseks",
+ "pdf_no_metadata": "Ei õnnestu PDF-faili meta-andmeid saada",
+ "pdf_page_error": "Leheküljenumber pole vahemikus.",
+ "exif-pdf-producer": "Teisendusprogramm",
+ "exif-pdf-version": "PDF-vormingu versioon",
+ "exif-pdf-encrypted": "Krüptitud",
+ "exif-pdf-pagesize": "Lehe suurus"
+}
diff --git a/extensions/PdfHandler/i18n/fa.json b/extensions/PdfHandler/i18n/fa.json
new file mode 100644
index 00000000..2ceeac1c
--- /dev/null
+++ b/extensions/PdfHandler/i18n/fa.json
@@ -0,0 +1,18 @@
+{
+ "@metadata": {
+ "authors": [
+ "Ebraminio",
+ "Huji",
+ "Reza1615",
+ "Sahim",
+ "Wayiran"
+ ]
+ },
+ "pdf-desc": "گرداننده‌ای برای مشاهدهٔ پرونده‌های پی‌دی‌اف در حالت تصویر",
+ "pdf_no_metadata": "نمی‌توان فراداده‌ها را از پی‌دی‌اف گرفت",
+ "pdf_page_error": "شماره صفحه در محدوده نیست",
+ "exif-pdf-producer": "برنامهٔ مبدل",
+ "exif-pdf-version": "نسخهٔ قالب پی‌دی‌اف",
+ "exif-pdf-encrypted": "رمز شده",
+ "exif-pdf-pagesize": "حجم صفحه"
+}
diff --git a/extensions/PdfHandler/i18n/fi.json b/extensions/PdfHandler/i18n/fi.json
new file mode 100644
index 00000000..7dd03d03
--- /dev/null
+++ b/extensions/PdfHandler/i18n/fi.json
@@ -0,0 +1,18 @@
+{
+ "@metadata": {
+ "authors": [
+ "Crt",
+ "Kulmalukko",
+ "Nike",
+ "VezonThunder",
+ "Vililikku"
+ ]
+ },
+ "pdf-desc": "Käsittelijä PDF-tiedostojen katsomiseen kuvatilassa.",
+ "pdf_no_metadata": "Metatietojen hakeminen PDF-tiedostosta epäonnistui",
+ "pdf_page_error": "Sivunumero ei ole alueella.",
+ "exif-pdf-producer": "Muunto-ohjelma",
+ "exif-pdf-version": "PDF-muodon versio",
+ "exif-pdf-encrypted": "Salattu",
+ "exif-pdf-pagesize": "Sivun koko"
+}
diff --git a/extensions/PdfHandler/i18n/fr.json b/extensions/PdfHandler/i18n/fr.json
new file mode 100644
index 00000000..9970cb21
--- /dev/null
+++ b/extensions/PdfHandler/i18n/fr.json
@@ -0,0 +1,17 @@
+{
+ "@metadata": {
+ "authors": [
+ "Crochet.david",
+ "Gomoko",
+ "Grondin",
+ "Verdy p"
+ ]
+ },
+ "pdf-desc": "Gestionnaire permettant de visualiser les fichiers PDF en mode image",
+ "pdf_no_metadata": "Impossible d’obtenir les métadonnées du fichier PDF",
+ "pdf_page_error": "Le numéro de page est hors de l’étendue.",
+ "exif-pdf-producer": "Programme de conversion",
+ "exif-pdf-version": "Version du format PDF",
+ "exif-pdf-encrypted": "Crypté",
+ "exif-pdf-pagesize": "Taille de la page"
+}
diff --git a/extensions/PdfHandler/i18n/frp.json b/extensions/PdfHandler/i18n/frp.json
new file mode 100644
index 00000000..256d38a1
--- /dev/null
+++ b/extensions/PdfHandler/i18n/frp.json
@@ -0,0 +1,10 @@
+{
+ "@metadata": {
+ "authors": [
+ "ChrisPtDe"
+ ]
+ },
+ "pdf-desc": "Utilitèro por vêre los fichiérs PDF en fôrma émâge.",
+ "pdf_no_metadata": "Pôt pas avêr les mètabalyês du fichiér PDF.",
+ "pdf_page_error": "Lo numerô de pâge est en defôr de la portâ."
+}
diff --git a/extensions/PdfHandler/i18n/gl.json b/extensions/PdfHandler/i18n/gl.json
new file mode 100644
index 00000000..06c708a4
--- /dev/null
+++ b/extensions/PdfHandler/i18n/gl.json
@@ -0,0 +1,15 @@
+{
+ "@metadata": {
+ "authors": [
+ "Alma",
+ "Toliño"
+ ]
+ },
+ "pdf-desc": "Manipulador para ver ficheiros PDF no modo de imaxe",
+ "pdf_no_metadata": "Non se puideron obter os metadatos do PDF.",
+ "pdf_page_error": "O número da páxina non está no rango.",
+ "exif-pdf-producer": "Programa de conversión",
+ "exif-pdf-version": "Versión en formato PDF",
+ "exif-pdf-encrypted": "Cifrado",
+ "exif-pdf-pagesize": "Tamaño da páxina"
+}
diff --git a/extensions/PdfHandler/i18n/grc.json b/extensions/PdfHandler/i18n/grc.json
new file mode 100644
index 00000000..fd2249ab
--- /dev/null
+++ b/extensions/PdfHandler/i18n/grc.json
@@ -0,0 +1,9 @@
+{
+ "@metadata": {
+ "authors": [
+ "Omnipaedista"
+ ]
+ },
+ "pdf_no_metadata": "Ἀδύνατον τὸ ἀποκομίζειν μεταδεδομένα ἐκ PDF",
+ "pdf_page_error": "Ἀριθμὸς δέλτου ἐκτὸς ἐμβελείας"
+}
diff --git a/extensions/PdfHandler/i18n/gsw.json b/extensions/PdfHandler/i18n/gsw.json
new file mode 100644
index 00000000..7dc1324e
--- /dev/null
+++ b/extensions/PdfHandler/i18n/gsw.json
@@ -0,0 +1,14 @@
+{
+ "@metadata": {
+ "authors": [
+ "Als-Holder"
+ ]
+ },
+ "pdf-desc": "Schnittstell fir d Aasicht vu PDF-Dateien im Bilder-Modus",
+ "pdf_no_metadata": "Kei Metadate im PDF vorhande.",
+ "pdf_page_error": "Sytezahl usserhalb vum Dokumänt.",
+ "exif-pdf-producer": "Umwandligsprogramm",
+ "exif-pdf-version": "Version vum PDF-Format",
+ "exif-pdf-encrypted": "Verschlisslet",
+ "exif-pdf-pagesize": "Sytegreßi"
+}
diff --git a/extensions/PdfHandler/i18n/gu.json b/extensions/PdfHandler/i18n/gu.json
new file mode 100644
index 00000000..1605e38a
--- /dev/null
+++ b/extensions/PdfHandler/i18n/gu.json
@@ -0,0 +1,11 @@
+{
+ "@metadata": {
+ "authors": [
+ "KartikMistry",
+ "Sushant savla"
+ ]
+ },
+ "pdf-desc": "PDF ફાઈલોને ચિત્ર સ્વરૂપે જોવાનું સાધન",
+ "pdf_no_metadata": "PDFમાંથી મેટા ડાટા ન મેળવી શકાયો",
+ "pdf_page_error": "પાનાં ક્રમાંક અવધિમાં નથી"
+}
diff --git a/extensions/PdfHandler/i18n/he.json b/extensions/PdfHandler/i18n/he.json
new file mode 100644
index 00000000..1569df31
--- /dev/null
+++ b/extensions/PdfHandler/i18n/he.json
@@ -0,0 +1,16 @@
+{
+ "@metadata": {
+ "authors": [
+ "Amire80",
+ "Rotemliss",
+ "YaronSh"
+ ]
+ },
+ "pdf-desc": "טיפול בצפייה בקובצי PDF במצב תמונה",
+ "pdf_no_metadata": "לא ניתן לאחזר את נתוני המסמך מה־PDF",
+ "pdf_page_error": "מספר הדף אינו בטווח",
+ "exif-pdf-producer": "תוכנת המרה",
+ "exif-pdf-version": "הגרסה של תסדיר PDF",
+ "exif-pdf-encrypted": "מוצפן",
+ "exif-pdf-pagesize": "גודל דף"
+}
diff --git a/extensions/PdfHandler/i18n/hi.json b/extensions/PdfHandler/i18n/hi.json
new file mode 100644
index 00000000..e904654e
--- /dev/null
+++ b/extensions/PdfHandler/i18n/hi.json
@@ -0,0 +1,10 @@
+{
+ "@metadata": {
+ "authors": [
+ "Kaustubh"
+ ]
+ },
+ "pdf-desc": "चित्र मोड में पीडीएफ फ़ाईल देखनेके लिये आवश्यक प्रणाली",
+ "pdf_no_metadata": "पीडीएफ से मेटाडाटा ले नहीं पायें",
+ "pdf_page_error": "पन्ने का क्रमांक सीमामें नहीं हैं"
+}
diff --git a/extensions/PdfHandler/i18n/hr.json b/extensions/PdfHandler/i18n/hr.json
new file mode 100644
index 00000000..af9859c4
--- /dev/null
+++ b/extensions/PdfHandler/i18n/hr.json
@@ -0,0 +1,10 @@
+{
+ "@metadata": {
+ "authors": [
+ "Ex13"
+ ]
+ },
+ "pdf-desc": "Program za gledanje PDF datoteka u slikovnom modu",
+ "pdf_no_metadata": "Nije moguće dobiti metapodatke iz PDF",
+ "pdf_page_error": "Broj stranice nije u opsegu"
+}
diff --git a/extensions/PdfHandler/i18n/hsb.json b/extensions/PdfHandler/i18n/hsb.json
new file mode 100644
index 00000000..917cf858
--- /dev/null
+++ b/extensions/PdfHandler/i18n/hsb.json
@@ -0,0 +1,14 @@
+{
+ "@metadata": {
+ "authors": [
+ "Michawiki"
+ ]
+ },
+ "pdf-desc": "Program za wobhladowanje datajow PDF we wobrazowym modusu",
+ "pdf_no_metadata": "W PDF žane metadaty njejsu.",
+ "pdf_page_error": "Ličba strony zwonka dokumenta.",
+ "exif-pdf-producer": "Konwertowanski program",
+ "exif-pdf-version": "Wersija PDF-formata",
+ "exif-pdf-encrypted": "Zaklučowany",
+ "exif-pdf-pagesize": "Wulkosć strony"
+}
diff --git a/extensions/PdfHandler/i18n/hu.json b/extensions/PdfHandler/i18n/hu.json
new file mode 100644
index 00000000..425a4474
--- /dev/null
+++ b/extensions/PdfHandler/i18n/hu.json
@@ -0,0 +1,15 @@
+{
+ "@metadata": {
+ "authors": [
+ "Dani",
+ "Dj"
+ ]
+ },
+ "pdf-desc": "PDF fájlok megjelenítse képként",
+ "pdf_no_metadata": "nem sikerült lekérni a PDF metaadatait",
+ "pdf_page_error": "Az oldalszám a tartományon kívül esik",
+ "exif-pdf-producer": "Konvertáló program",
+ "exif-pdf-version": "PDF formátum verziója",
+ "exif-pdf-encrypted": "Titkosított",
+ "exif-pdf-pagesize": "Lapméret"
+}
diff --git a/extensions/PdfHandler/i18n/ia.json b/extensions/PdfHandler/i18n/ia.json
new file mode 100644
index 00000000..66550a72
--- /dev/null
+++ b/extensions/PdfHandler/i18n/ia.json
@@ -0,0 +1,14 @@
+{
+ "@metadata": {
+ "authors": [
+ "McDutchie"
+ ]
+ },
+ "pdf-desc": "Gestor pro visualisar files PDF in modo de imagine",
+ "pdf_no_metadata": "Non pote obtener metadatos ab PDF",
+ "pdf_page_error": "Numero de pagina foras del intervallo",
+ "exif-pdf-producer": "Programma de conversion",
+ "exif-pdf-version": "Version del formato PDF",
+ "exif-pdf-encrypted": "Cryptate",
+ "exif-pdf-pagesize": "Dimension del pagina"
+}
diff --git a/extensions/PdfHandler/i18n/id.json b/extensions/PdfHandler/i18n/id.json
new file mode 100644
index 00000000..fddfc094
--- /dev/null
+++ b/extensions/PdfHandler/i18n/id.json
@@ -0,0 +1,10 @@
+{
+ "@metadata": {
+ "authors": [
+ "Bennylin"
+ ]
+ },
+ "pdf-desc": "Yang menangani tampilan berkas PDF dalam mode gambar",
+ "pdf_no_metadata": "Tidak dapat membaca metadata dari PDF",
+ "pdf_page_error": "Nomor halaman di luar batas"
+}
diff --git a/extensions/PdfHandler/i18n/ilo.json b/extensions/PdfHandler/i18n/ilo.json
new file mode 100644
index 00000000..2939be6d
--- /dev/null
+++ b/extensions/PdfHandler/i18n/ilo.json
@@ -0,0 +1,14 @@
+{
+ "@metadata": {
+ "authors": [
+ "Lam-ang"
+ ]
+ },
+ "pdf-desc": "Panagtengngel para iti panagkita kadagiti PDF a papeles iti moda a ladawan",
+ "pdf_no_metadata": "Saan a makaala ti metadata manipud idiay PDF.",
+ "pdf_page_error": "Saan a masakupan ti numero ti panid.",
+ "exif-pdf-producer": "Konbersion a programa",
+ "exif-pdf-version": "Bersion iti PDF a pormat",
+ "exif-pdf-encrypted": "Naenkripto",
+ "exif-pdf-pagesize": "Kadakkel ti panid"
+}
diff --git a/extensions/PdfHandler/i18n/it.json b/extensions/PdfHandler/i18n/it.json
new file mode 100644
index 00000000..5d4ae85a
--- /dev/null
+++ b/extensions/PdfHandler/i18n/it.json
@@ -0,0 +1,15 @@
+{
+ "@metadata": {
+ "authors": [
+ "Beta16",
+ "Darth Kule"
+ ]
+ },
+ "pdf-desc": "Gestore per la visualizzazione di file PDF in modalità immagine",
+ "pdf_no_metadata": "Impossibile ottenere i metadati da PDF",
+ "pdf_page_error": "Numero di pagina non compreso nell'intervallo",
+ "exif-pdf-producer": "Programma di conversione",
+ "exif-pdf-version": "Versione del formato PDF",
+ "exif-pdf-encrypted": "Crittografato",
+ "exif-pdf-pagesize": "Dimensioni pagina"
+}
diff --git a/extensions/PdfHandler/i18n/ja.json b/extensions/PdfHandler/i18n/ja.json
new file mode 100644
index 00000000..0bbffde3
--- /dev/null
+++ b/extensions/PdfHandler/i18n/ja.json
@@ -0,0 +1,15 @@
+{
+ "@metadata": {
+ "authors": [
+ "Fryed-peach",
+ "Shirayuki"
+ ]
+ },
+ "pdf-desc": "画像モードで PDF ファイルを表示するためのハンドラー",
+ "pdf_no_metadata": "PDF ファイルからメタデータを取得できません",
+ "pdf_page_error": "ページ番号が正しい範囲内にありません。",
+ "exif-pdf-producer": "変換プログラム",
+ "exif-pdf-version": "PDF 形式のバージョン",
+ "exif-pdf-encrypted": "暗号化済み",
+ "exif-pdf-pagesize": "ページのサイズ"
+}
diff --git a/extensions/PdfHandler/i18n/jv.json b/extensions/PdfHandler/i18n/jv.json
new file mode 100644
index 00000000..a9a25b2e
--- /dev/null
+++ b/extensions/PdfHandler/i18n/jv.json
@@ -0,0 +1,11 @@
+{
+ "@metadata": {
+ "authors": [
+ "Meursault2004",
+ "NoiX180"
+ ]
+ },
+ "pdf-desc": "Sing nadhangi kanggo ndelok berkas PDF mawa modé gambar",
+ "pdf_no_metadata": "Ora bisa olèh metadata saka PDF",
+ "pdf_page_error": "Nomèr kaca nèng njaba wates"
+}
diff --git a/extensions/PdfHandler/i18n/ka.json b/extensions/PdfHandler/i18n/ka.json
new file mode 100644
index 00000000..34a327ad
--- /dev/null
+++ b/extensions/PdfHandler/i18n/ka.json
@@ -0,0 +1,15 @@
+{
+ "@metadata": {
+ "authors": [
+ "BRUTE",
+ "David1010"
+ ]
+ },
+ "pdf-desc": "დამამუშავებელი PDF-ფაილების სურათების სახით დასათვალიერებლად",
+ "pdf_no_metadata": "შეუძლებელია PDF-დან მეტამონაცემების მიღება",
+ "pdf_page_error": "გვერდის ნომერი არ არის დიაპაზონში",
+ "exif-pdf-producer": "პროგრამის გარდაქმნა",
+ "exif-pdf-version": "ვერსია PDF ფორმატში",
+ "exif-pdf-encrypted": "დაშიფრული",
+ "exif-pdf-pagesize": "გვერდის ზომა"
+}
diff --git a/extensions/PdfHandler/i18n/km.json b/extensions/PdfHandler/i18n/km.json
new file mode 100644
index 00000000..db8ec3e2
--- /dev/null
+++ b/extensions/PdfHandler/i18n/km.json
@@ -0,0 +1,13 @@
+{
+ "@metadata": {
+ "authors": [
+ "Chhorran",
+ "Lovekhmer",
+ "Thearith",
+ "គីមស៊្រុន"
+ ]
+ },
+ "pdf-desc": "កម្មវិធីសំរាប់បើកមើលឯកសារ PDF ជាទំរង់រូបភាព",
+ "pdf_no_metadata": "មិនអាចទទួលយកទិន្នន័យមេតាពី PDF បានទេ",
+ "pdf_page_error": "គ្មានលេខទំព័រ ក្នុងដែនកំណត់"
+}
diff --git a/extensions/PdfHandler/i18n/kn.json b/extensions/PdfHandler/i18n/kn.json
new file mode 100644
index 00000000..a0587589
--- /dev/null
+++ b/extensions/PdfHandler/i18n/kn.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "VASANTH S.N."
+ ]
+ },
+ "exif-pdf-pagesize": "ಪುಟದ ಗಾತ್ರ"
+}
diff --git a/extensions/PdfHandler/i18n/ko.json b/extensions/PdfHandler/i18n/ko.json
new file mode 100644
index 00000000..d8bc29c9
--- /dev/null
+++ b/extensions/PdfHandler/i18n/ko.json
@@ -0,0 +1,15 @@
+{
+ "@metadata": {
+ "authors": [
+ "Kwj2772",
+ "아라"
+ ]
+ },
+ "pdf-desc": "PDF 파일을 이미지 방식으로 볼 수 있게 하는 핸들러",
+ "pdf_no_metadata": "PDF 파일에서 메타데이터를 추출할 수 없습니다.",
+ "pdf_page_error": "쪽수가 범위 안에 있지 않습니다.",
+ "exif-pdf-producer": "변환 프로그램",
+ "exif-pdf-version": "PDF 형식 버전",
+ "exif-pdf-encrypted": "암호화함",
+ "exif-pdf-pagesize": "페이지 크기"
+}
diff --git a/extensions/PdfHandler/i18n/ksh.json b/extensions/PdfHandler/i18n/ksh.json
new file mode 100644
index 00000000..75347d70
--- /dev/null
+++ b/extensions/PdfHandler/i18n/ksh.json
@@ -0,0 +1,14 @@
+{
+ "@metadata": {
+ "authors": [
+ "Purodha"
+ ]
+ },
+ "pdf-desc": "Määd et möjjelesch, PDF-Dateie wie Bellder ze beloore.",
+ "pdf_no_metadata": "Kann de Metta-Date nit fun dä PDF-Datei holle.",
+ "pdf_page_error": "En Sigge-Nommer es ußerhallef",
+ "exif-pdf-producer": "Ömwandelongsprojramm",
+ "exif-pdf-version": "PDF-Fommaat-Version",
+ "exif-pdf-encrypted": "Verschlößelt",
+ "exif-pdf-pagesize": "Dä Sigg(e) ier Jrüüße"
+}
diff --git a/extensions/PdfHandler/i18n/ky.json b/extensions/PdfHandler/i18n/ky.json
new file mode 100644
index 00000000..7df1c9c4
--- /dev/null
+++ b/extensions/PdfHandler/i18n/ky.json
@@ -0,0 +1,9 @@
+{
+ "@metadata": {
+ "authors": [
+ "Chorobek"
+ ]
+ },
+ "pdf-desc": "PDF файлдарды сүрөт түрүндө көрсөткүч",
+ "pdf_no_metadata": "PDF-тин метамаалыматтарын алуу мүмкүн эмес"
+}
diff --git a/extensions/PdfHandler/i18n/lb.json b/extensions/PdfHandler/i18n/lb.json
new file mode 100644
index 00000000..36a9a88f
--- /dev/null
+++ b/extensions/PdfHandler/i18n/lb.json
@@ -0,0 +1,14 @@
+{
+ "@metadata": {
+ "authors": [
+ "Robby"
+ ]
+ },
+ "pdf-desc": "\"Programm\" den et erméiglecht PDF-Fichieren als Bild ze kucken",
+ "pdf_no_metadata": "Meta-Informatiounen aus dem PDF Dokument kënnen net gelies ginn",
+ "pdf_page_error": "D'Säitenzuel ass net an dem Beräich.",
+ "exif-pdf-producer": "Ëmwandlungsprogramm",
+ "exif-pdf-version": "Versioun vum PDF-Format",
+ "exif-pdf-encrypted": "Verschlësselt",
+ "exif-pdf-pagesize": "Gréisst vun der Säit"
+}
diff --git a/extensions/PdfHandler/i18n/li.json b/extensions/PdfHandler/i18n/li.json
new file mode 100644
index 00000000..6cb890bf
--- /dev/null
+++ b/extensions/PdfHandler/i18n/li.json
@@ -0,0 +1,10 @@
+{
+ "@metadata": {
+ "authors": [
+ "Ooswesthoesbes"
+ ]
+ },
+ "pdf-desc": "Hanjeltj PDF-bestenj aaf en maak 't meugelik die es aafbeildjing te zeen",
+ "pdf_no_metadata": "Kèn gein metadata vanne PDF kriege",
+ "pdf_page_error": "paginanómmer besteit neet"
+}
diff --git a/extensions/PdfHandler/i18n/lrc.json b/extensions/PdfHandler/i18n/lrc.json
new file mode 100644
index 00000000..b0f7f5ef
--- /dev/null
+++ b/extensions/PdfHandler/i18n/lrc.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Mogoeilor"
+ ]
+ },
+ "exif-pdf-pagesize": "انازه بلگه"
+}
diff --git a/extensions/PdfHandler/i18n/lt.json b/extensions/PdfHandler/i18n/lt.json
new file mode 100644
index 00000000..6d1315c6
--- /dev/null
+++ b/extensions/PdfHandler/i18n/lt.json
@@ -0,0 +1,10 @@
+{
+ "@metadata": {
+ "authors": [
+ "Matasg"
+ ]
+ },
+ "pdf-desc": "Įrankis PDF failų peržiūrai vaizdo režime",
+ "pdf_no_metadata": "Nepavyko gauti metaduomenų iš PDF",
+ "pdf_page_error": "Puslapis numeris nėra diapazone"
+}
diff --git a/extensions/PdfHandler/i18n/mk.json b/extensions/PdfHandler/i18n/mk.json
new file mode 100644
index 00000000..30232e1f
--- /dev/null
+++ b/extensions/PdfHandler/i18n/mk.json
@@ -0,0 +1,15 @@
+{
+ "@metadata": {
+ "authors": [
+ "Bjankuloski06",
+ "Brest"
+ ]
+ },
+ "pdf-desc": "Ракувач за прегледување PDF податотеки во сликовен режим",
+ "pdf_no_metadata": "Не може да се земат метаподатоци од PDF",
+ "pdf_page_error": "Бројот на страница е надвор од опсег",
+ "exif-pdf-producer": "Програм за претворање",
+ "exif-pdf-version": "Верзија на PDF-форматот",
+ "exif-pdf-encrypted": "Шифрирано",
+ "exif-pdf-pagesize": "Големина на страницата"
+}
diff --git a/extensions/PdfHandler/i18n/ml.json b/extensions/PdfHandler/i18n/ml.json
new file mode 100644
index 00000000..7c75a12b
--- /dev/null
+++ b/extensions/PdfHandler/i18n/ml.json
@@ -0,0 +1,15 @@
+{
+ "@metadata": {
+ "authors": [
+ "Praveenp",
+ "Shijualex"
+ ]
+ },
+ "pdf-desc": "പി.ഡി.എഫ്. പ്രമാണങ്ങൾ ചിത്രരൂപത്തിൽ കാണുന്നതിനുള്ള കൈകാര്യോപകരണം",
+ "pdf_no_metadata": "PDF-ൽ നിന്നു മെറ്റാഡാറ്റ ലഭിച്ചില്ല",
+ "pdf_page_error": "താളിന്റെ ക്രമസംഖ്യ പരിധിയിലധികമാണ്",
+ "exif-pdf-producer": "പരിവർത്തന പ്രോഗ്രാം",
+ "exif-pdf-version": "പി.ഡി.എഫ്. തരത്തിന്റെ പതിപ്പ്",
+ "exif-pdf-encrypted": "നിഗൂഢീകരിക്കപ്പെട്ടത്",
+ "exif-pdf-pagesize": "താളിന്റെ വലിപ്പം"
+}
diff --git a/extensions/PdfHandler/i18n/mr.json b/extensions/PdfHandler/i18n/mr.json
new file mode 100644
index 00000000..dfc9894c
--- /dev/null
+++ b/extensions/PdfHandler/i18n/mr.json
@@ -0,0 +1,12 @@
+{
+ "@metadata": {
+ "authors": [
+ "Kaustubh",
+ "Sankalpdravid",
+ "V.narsikar"
+ ]
+ },
+ "pdf-desc": "चित्र मोडमध्ये पीडीएफ संचिका पाहण्यासाठी आवश्यक प्रणाली",
+ "pdf_no_metadata": "पीडीएफमधून मेटाडाटा घेऊ शकत नाही",
+ "pdf_page_error": "पान क्रमांक आवाक्यात नाही"
+}
diff --git a/extensions/PdfHandler/i18n/ms.json b/extensions/PdfHandler/i18n/ms.json
new file mode 100644
index 00000000..843b160d
--- /dev/null
+++ b/extensions/PdfHandler/i18n/ms.json
@@ -0,0 +1,14 @@
+{
+ "@metadata": {
+ "authors": [
+ "Anakmalaysia"
+ ]
+ },
+ "pdf-desc": "Pengendali untuk melihat fail PDF dalam mod imej",
+ "pdf_no_metadata": "Metadata tidak boleh diperoleh dari PDF",
+ "pdf_page_error": "Nombor halaman tiada dalam julat",
+ "exif-pdf-producer": "Program penukaran",
+ "exif-pdf-version": "Versi format PDF",
+ "exif-pdf-encrypted": "Disulitkan",
+ "exif-pdf-pagesize": "Saiz halaman"
+}
diff --git a/extensions/PdfHandler/i18n/mt.json b/extensions/PdfHandler/i18n/mt.json
new file mode 100644
index 00000000..1f707e8a
--- /dev/null
+++ b/extensions/PdfHandler/i18n/mt.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Chrisportelli"
+ ]
+ },
+ "pdf_page_error": "In-numru tal-paġna ma jinsabx fl-intervall"
+}
diff --git a/extensions/PdfHandler/i18n/nb.json b/extensions/PdfHandler/i18n/nb.json
new file mode 100644
index 00000000..8f18d2da
--- /dev/null
+++ b/extensions/PdfHandler/i18n/nb.json
@@ -0,0 +1,14 @@
+{
+ "@metadata": {
+ "authors": [
+ "Jsoby"
+ ]
+ },
+ "pdf-desc": "Håndtering av PDF-visning i bildemodus",
+ "pdf_no_metadata": "kan ikke hente metadata fra PDF",
+ "pdf_page_error": "Sidenummer overstiger antall sider i dokumentet",
+ "exif-pdf-producer": "Koverteringsprogram",
+ "exif-pdf-version": "Versjon av PDF-format",
+ "exif-pdf-encrypted": "Kryptert",
+ "exif-pdf-pagesize": "Sidestørrelse"
+}
diff --git a/extensions/PdfHandler/i18n/nl.json b/extensions/PdfHandler/i18n/nl.json
new file mode 100644
index 00000000..f019d3e9
--- /dev/null
+++ b/extensions/PdfHandler/i18n/nl.json
@@ -0,0 +1,15 @@
+{
+ "@metadata": {
+ "authors": [
+ "Siebrand",
+ "Wiki13"
+ ]
+ },
+ "pdf-desc": "Handelt pdfbestanden af en maakt het mogelijk ze als afbeeldingen te bekijken",
+ "pdf_no_metadata": "De metadata van het pdfbestand kan niet uitgelezen worden",
+ "pdf_page_error": "Het paginanummer ligt niet binnen het bereik",
+ "exif-pdf-producer": "Conversieprogramma",
+ "exif-pdf-version": "Versie van pdfopmaak",
+ "exif-pdf-encrypted": "Versleuteld",
+ "exif-pdf-pagesize": "Papierformaat"
+}
diff --git a/extensions/PdfHandler/i18n/nn.json b/extensions/PdfHandler/i18n/nn.json
new file mode 100644
index 00000000..19f20f46
--- /dev/null
+++ b/extensions/PdfHandler/i18n/nn.json
@@ -0,0 +1,11 @@
+{
+ "@metadata": {
+ "authors": [
+ "Harald Khan",
+ "Njardarlogar"
+ ]
+ },
+ "pdf-desc": "Handering av PDF-vising i biletmodus",
+ "pdf_no_metadata": "Kan ikkje henta metadata frå PDF",
+ "pdf_page_error": "Sidenummer overstig talet på sider i dokumentet"
+}
diff --git a/extensions/PdfHandler/i18n/oc.json b/extensions/PdfHandler/i18n/oc.json
new file mode 100644
index 00000000..618cfebe
--- /dev/null
+++ b/extensions/PdfHandler/i18n/oc.json
@@ -0,0 +1,14 @@
+{
+ "@metadata": {
+ "authors": [
+ "Cedric31"
+ ]
+ },
+ "pdf-desc": "Utilitari per visualizar los fichièrs PDF en mòde imatge",
+ "pdf_no_metadata": "Pòt pas obténer las metadonadas del fichièr PDF",
+ "pdf_page_error": "Lo numèro de pagina es pas dins la gama.",
+ "exif-pdf-producer": "Programa de conversion",
+ "exif-pdf-version": "Version del format PDF",
+ "exif-pdf-encrypted": "Chifrat",
+ "exif-pdf-pagesize": "Talha de la pagina"
+}
diff --git a/extensions/PdfHandler/i18n/or.json b/extensions/PdfHandler/i18n/or.json
new file mode 100644
index 00000000..c11db2ef
--- /dev/null
+++ b/extensions/PdfHandler/i18n/or.json
@@ -0,0 +1,15 @@
+{
+ "@metadata": {
+ "authors": [
+ "Jnanaranjan Sahu",
+ "Psubhashish"
+ ]
+ },
+ "pdf-desc": "PDF ଫାଇଲକୁ ଛବି ମୋଡ଼ରେ ଦେଖିବାର ପରିଚାଳକ",
+ "pdf_no_metadata": "ପି.ଡ଼ି.ଏଫ.ରୁ ମେଟାଡାଟା ବାହାର କରିପାରିଲୁଁ ନାହିଁ",
+ "pdf_page_error": "ପୃଷ୍ଠା ସଂଖ୍ୟା ସୀମା ଭିତରେ ନାହିଁ",
+ "exif-pdf-producer": "ରୂପାନ୍ତର କାମ",
+ "exif-pdf-version": "PDF ପ୍ରକାରର ସଂସ୍କରଣ",
+ "exif-pdf-encrypted": "ଏନକ୍ରିପ୍ଟ ହୋଇଥିବା",
+ "exif-pdf-pagesize": "ପୃଷ୍ଠା ଆକାର"
+}
diff --git a/extensions/PdfHandler/i18n/pdc.json b/extensions/PdfHandler/i18n/pdc.json
new file mode 100644
index 00000000..1d7798c2
--- /dev/null
+++ b/extensions/PdfHandler/i18n/pdc.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Xqt"
+ ]
+ },
+ "pdf_no_metadata": "Keene Meta-Daade im PDF"
+}
diff --git a/extensions/PdfHandler/i18n/pl.json b/extensions/PdfHandler/i18n/pl.json
new file mode 100644
index 00000000..1eed58a3
--- /dev/null
+++ b/extensions/PdfHandler/i18n/pl.json
@@ -0,0 +1,16 @@
+{
+ "@metadata": {
+ "authors": [
+ "Holek",
+ "Matma Rex",
+ "Sp5uhe"
+ ]
+ },
+ "pdf-desc": "Konwerter graficznego podglądu plików PDF",
+ "pdf_no_metadata": "nie można pobrać metadanych z pliku PDF",
+ "pdf_page_error": "Numer strony poza zakresem",
+ "exif-pdf-producer": "Program użyty do konwersji",
+ "exif-pdf-version": "Wersja formatu PDF",
+ "exif-pdf-encrypted": "Zaszyfrowany",
+ "exif-pdf-pagesize": "Wymiary strony"
+}
diff --git a/extensions/PdfHandler/i18n/pms.json b/extensions/PdfHandler/i18n/pms.json
new file mode 100644
index 00000000..4ec09417
--- /dev/null
+++ b/extensions/PdfHandler/i18n/pms.json
@@ -0,0 +1,15 @@
+{
+ "@metadata": {
+ "authors": [
+ "Borichèt",
+ "Dragonòt"
+ ]
+ },
+ "pdf-desc": "Ël gestor për vëdde ij file PDF an manera image",
+ "pdf_no_metadata": "as peulo nen pijesse ij metadat dal PDF",
+ "pdf_page_error": "Ël nùmer ëd pàgina a l'é pa ant ël range",
+ "exif-pdf-producer": "Programa ëd conversion",
+ "exif-pdf-version": "Version dël formà PDF",
+ "exif-pdf-encrypted": "Criptà",
+ "exif-pdf-pagesize": "Dimension dla pàgina"
+}
diff --git a/extensions/PdfHandler/i18n/pnb.json b/extensions/PdfHandler/i18n/pnb.json
new file mode 100644
index 00000000..c239b8b3
--- /dev/null
+++ b/extensions/PdfHandler/i18n/pnb.json
@@ -0,0 +1,10 @@
+{
+ "@metadata": {
+ "authors": [
+ "Khalid Mahmood"
+ ]
+ },
+ "pdf-desc": "پی ڈی ایف فائلاں امیج موڈ چ ویکھن لئی ہینڈلر",
+ "pdf_no_metadata": "پی ڈی ایف توں میٹاڈیٹا نئیں مل سکیا۔",
+ "pdf_page_error": "صفہ نمبر ولگن چ نئیں۔"
+}
diff --git a/extensions/PdfHandler/i18n/pt-br.json b/extensions/PdfHandler/i18n/pt-br.json
new file mode 100644
index 00000000..38947a35
--- /dev/null
+++ b/extensions/PdfHandler/i18n/pt-br.json
@@ -0,0 +1,15 @@
+{
+ "@metadata": {
+ "authors": [
+ "Eduardo.mps",
+ "555"
+ ]
+ },
+ "pdf-desc": "Ferramenta de visualização de arquivos PDF em modo de imagem",
+ "pdf_no_metadata": "Não foi possível obter os metadados do PDF",
+ "pdf_page_error": "Número de página fora do intervalo",
+ "exif-pdf-producer": "Programa de conversão",
+ "exif-pdf-version": "Versão do formato PDF",
+ "exif-pdf-encrypted": "Criptografado",
+ "exif-pdf-pagesize": "Tamanho da página"
+}
diff --git a/extensions/PdfHandler/i18n/pt.json b/extensions/PdfHandler/i18n/pt.json
new file mode 100644
index 00000000..35d892f8
--- /dev/null
+++ b/extensions/PdfHandler/i18n/pt.json
@@ -0,0 +1,16 @@
+{
+ "@metadata": {
+ "authors": [
+ "Hamilton Abreu",
+ "Malafaya",
+ "Vitorvicentevalente"
+ ]
+ },
+ "pdf-desc": "Manuseador de visionamento de ficheiros PDF em modo de imagem",
+ "pdf_no_metadata": "não foi possível obter os metadados do PDF",
+ "pdf_page_error": "Número de página fora do intervalo",
+ "exif-pdf-producer": "Programa de conversão",
+ "exif-pdf-version": "Versão do formato PDF",
+ "exif-pdf-encrypted": "Criptografado",
+ "exif-pdf-pagesize": "Tamanho da página"
+}
diff --git a/extensions/PdfHandler/i18n/qqq.json b/extensions/PdfHandler/i18n/qqq.json
new file mode 100644
index 00000000..0d657592
--- /dev/null
+++ b/extensions/PdfHandler/i18n/qqq.json
@@ -0,0 +1,16 @@
+{
+ "@metadata": {
+ "authors": [
+ "Purodha",
+ "Shirayuki",
+ "The Evil IP address"
+ ]
+ },
+ "pdf-desc": "{{desc|name=Pdf Handler|url=http://www.mediawiki.org/wiki/Extension:PdfHandler}}",
+ "pdf_no_metadata": "Error message given when metadata cannot be retrieved from a PDF file",
+ "pdf_page_error": "Error message given when a PDF does not have the requested page number",
+ "exif-pdf-producer": "The label used in the metadata table at the bottom of the file description page for the program used to convert this PDF file into a PDF.\n\nThis is separate from the program used to create the original file (Which is labeled by {{msg-mw|Exif-software}}).",
+ "exif-pdf-version": "Label for the version of the pdf file format in the metadata table at the bottom of an image description page. Usually a number between 1.2 and 1.6",
+ "exif-pdf-encrypted": "Label for field in metadata table at bottom of an image description page to denote if the PDF file is encrypted. The value of the field this references is either \"no\" (most common) or something like \"yes (print:yes copy:no change:no addNotes:no)\"",
+ "exif-pdf-pagesize": "Label for the field in the metadata table at the bottom of an image description page to denote the size of the pages in the pdf. If there is more than one size of page used in this document, each size is listed once.\n{{Identical|Page size}}"
+}
diff --git a/extensions/PdfHandler/i18n/ro.json b/extensions/PdfHandler/i18n/ro.json
new file mode 100644
index 00000000..8d576489
--- /dev/null
+++ b/extensions/PdfHandler/i18n/ro.json
@@ -0,0 +1,11 @@
+{
+ "@metadata": {
+ "authors": [
+ "Stelistcristi"
+ ]
+ },
+ "pdf-desc": "Operator pentru vizualizarea fișierelor PDF în modul de imagine",
+ "pdf_no_metadata": "Nu se poate obține metadate din PDF",
+ "pdf_page_error": "Numărul paginii nu e în șir",
+ "exif-pdf-pagesize": "Dimensiunea paginii"
+}
diff --git a/extensions/PdfHandler/i18n/roa-tara.json b/extensions/PdfHandler/i18n/roa-tara.json
new file mode 100644
index 00000000..e7a5d949
--- /dev/null
+++ b/extensions/PdfHandler/i18n/roa-tara.json
@@ -0,0 +1,14 @@
+{
+ "@metadata": {
+ "authors": [
+ "Joetaras"
+ ]
+ },
+ "pdf-desc": "Gestore pe vedè le file PDF in mode immaggine",
+ "pdf_no_metadata": "Non ge pozze pigghià le metadata da 'u PDF",
+ "pdf_page_error": "Numere de pàgene fore da l'indervalle",
+ "exif-pdf-producer": "Programme de conversione",
+ "exif-pdf-version": "Versione d'u formate PDF",
+ "exif-pdf-encrypted": "Criptate",
+ "exif-pdf-pagesize": "Dimenzione d'a pàgene"
+}
diff --git a/extensions/PdfHandler/i18n/ru.json b/extensions/PdfHandler/i18n/ru.json
new file mode 100644
index 00000000..e97ec2ad
--- /dev/null
+++ b/extensions/PdfHandler/i18n/ru.json
@@ -0,0 +1,15 @@
+{
+ "@metadata": {
+ "authors": [
+ "DCamer",
+ "Александр Сигачёв"
+ ]
+ },
+ "pdf-desc": "Обработчик для просмотра PDF-файлов в виде изображений",
+ "pdf_no_metadata": "невозможно получить метаданные из PDF",
+ "pdf_page_error": "Номер страницы вне диапазона",
+ "exif-pdf-producer": "Программа преобразования",
+ "exif-pdf-version": "Версия в формате PDF",
+ "exif-pdf-encrypted": "Шифрование",
+ "exif-pdf-pagesize": "Размер страницы"
+}
diff --git a/extensions/PdfHandler/i18n/rue.json b/extensions/PdfHandler/i18n/rue.json
new file mode 100644
index 00000000..44ad4d71
--- /dev/null
+++ b/extensions/PdfHandler/i18n/rue.json
@@ -0,0 +1,10 @@
+{
+ "@metadata": {
+ "authors": [
+ "Gazeb"
+ ]
+ },
+ "pdf-desc": "Овладач про перегляд PDF файлів як образків",
+ "pdf_no_metadata": "Не годен обтримати метадата з PDF",
+ "pdf_page_error": "Чісло сторінкы не є в россягу"
+}
diff --git a/extensions/PdfHandler/i18n/sa.json b/extensions/PdfHandler/i18n/sa.json
new file mode 100644
index 00000000..50a61c1e
--- /dev/null
+++ b/extensions/PdfHandler/i18n/sa.json
@@ -0,0 +1,10 @@
+{
+ "@metadata": {
+ "authors": [
+ "Shubha"
+ ]
+ },
+ "pdf-desc": "सुलेख(PDF)सञ्चिकाः चित्रदशायां दर्शनाय अपेक्षिता प्रणाली",
+ "pdf_no_metadata": "सुलेखात् मेटादत्तांशः प्राप्तुम् अशक्यः",
+ "pdf_page_error": "पृष्ठक्रमाङ्कः सीमायां न विद्यते"
+}
diff --git a/extensions/PdfHandler/i18n/sah.json b/extensions/PdfHandler/i18n/sah.json
new file mode 100644
index 00000000..e893873b
--- /dev/null
+++ b/extensions/PdfHandler/i18n/sah.json
@@ -0,0 +1,10 @@
+{
+ "@metadata": {
+ "authors": [
+ "HalanTul"
+ ]
+ },
+ "pdf-desc": "PDF билэлэри ойуу курдук көрдөрөөччү",
+ "pdf_no_metadata": "PDF-тан мета дааннайдарын ылар кыах суох",
+ "pdf_page_error": "Сирэй нүөмэрэ диапазоҥҥа киирбэт"
+}
diff --git a/extensions/PdfHandler/i18n/si.json b/extensions/PdfHandler/i18n/si.json
new file mode 100644
index 00000000..aae61f8c
--- /dev/null
+++ b/extensions/PdfHandler/i18n/si.json
@@ -0,0 +1,15 @@
+{
+ "@metadata": {
+ "authors": [
+ "Budhajeewa",
+ "පසිඳු කාවින්ද"
+ ]
+ },
+ "pdf-desc": "PDF ගොනු රූප මාදිලියෙන් හසුරුවනය",
+ "pdf_no_metadata": "PDF ගොනුවෙන් මෙටාදත්ත ගත නොහැක",
+ "pdf_page_error": "පිටු අංකය නිවැරදි පරාසයේ නොමැත",
+ "exif-pdf-producer": "හැරවුම් වැඩසටහන",
+ "exif-pdf-version": "PDF ආකෘතියේ අනුවාදය",
+ "exif-pdf-encrypted": "ගුප්තකේතීකරණය වූ",
+ "exif-pdf-pagesize": "පිටු ප්‍රමාණය"
+}
diff --git a/extensions/PdfHandler/i18n/sk.json b/extensions/PdfHandler/i18n/sk.json
new file mode 100644
index 00000000..b0e0a59c
--- /dev/null
+++ b/extensions/PdfHandler/i18n/sk.json
@@ -0,0 +1,10 @@
+{
+ "@metadata": {
+ "authors": [
+ "Helix84"
+ ]
+ },
+ "pdf-desc": "Obsluha zobrazovania PDF súborov v režime obrázkov",
+ "pdf_no_metadata": "nie je možné získať metadáta z PDF",
+ "pdf_page_error": "Číslo stránky nie je v intervale"
+}
diff --git a/extensions/PdfHandler/i18n/sl.json b/extensions/PdfHandler/i18n/sl.json
new file mode 100644
index 00000000..bb355a3c
--- /dev/null
+++ b/extensions/PdfHandler/i18n/sl.json
@@ -0,0 +1,14 @@
+{
+ "@metadata": {
+ "authors": [
+ "Dbc334"
+ ]
+ },
+ "pdf-desc": "Upravljavec ogledovanja datotek PDF v slikovnem načinu",
+ "pdf_no_metadata": "Ne morem pridobiti metapodatkov iz PDF",
+ "pdf_page_error": "Številka strani ni v dosegu",
+ "exif-pdf-producer": "Pretvorbeni program",
+ "exif-pdf-version": "Različica oblike PDF",
+ "exif-pdf-encrypted": "Šifrirano",
+ "exif-pdf-pagesize": "Velikost strani"
+}
diff --git a/extensions/PdfHandler/i18n/sq.json b/extensions/PdfHandler/i18n/sq.json
new file mode 100644
index 00000000..3ade0ae6
--- /dev/null
+++ b/extensions/PdfHandler/i18n/sq.json
@@ -0,0 +1,10 @@
+{
+ "@metadata": {
+ "authors": [
+ "Olsi"
+ ]
+ },
+ "pdf-desc": "Mbajtës për pamjen e skedave PDF në mënyrën e figurave",
+ "pdf_no_metadata": "Nuk mund të merren metadata nga PDF",
+ "pdf_page_error": "Numri i faqes nuk është në varg"
+}
diff --git a/extensions/PdfHandler/i18n/sr-ec.json b/extensions/PdfHandler/i18n/sr-ec.json
new file mode 100644
index 00000000..81e69443
--- /dev/null
+++ b/extensions/PdfHandler/i18n/sr-ec.json
@@ -0,0 +1,11 @@
+{
+ "@metadata": {
+ "authors": [
+ "Rancher",
+ "Михајло Анђелковић"
+ ]
+ },
+ "pdf-desc": "Програм за прегледање PDF докумената у сликовном режиму",
+ "pdf_no_metadata": "Не могу да преузмем метаподатке из PDF-а",
+ "pdf_page_error": "Број страница ван опсега"
+}
diff --git a/extensions/PdfHandler/i18n/sr-el.json b/extensions/PdfHandler/i18n/sr-el.json
new file mode 100644
index 00000000..68f497ef
--- /dev/null
+++ b/extensions/PdfHandler/i18n/sr-el.json
@@ -0,0 +1,10 @@
+{
+ "@metadata": {
+ "authors": [
+ "Michaello"
+ ]
+ },
+ "pdf-desc": "Handler za pregled PDF fajlova kao slika",
+ "pdf_no_metadata": "Ne mogu se dobiti meta-podaci iz PDF-a",
+ "pdf_page_error": "Broj strane izlazi van opsega"
+}
diff --git a/extensions/PdfHandler/i18n/stq.json b/extensions/PdfHandler/i18n/stq.json
new file mode 100644
index 00000000..d4cfc773
--- /dev/null
+++ b/extensions/PdfHandler/i18n/stq.json
@@ -0,0 +1,10 @@
+{
+ "@metadata": {
+ "authors": [
+ "Pyt"
+ ]
+ },
+ "pdf-desc": "Snitsteede foar dät Bekiekjen fon PDF-Doatäie in dän Bielde-Modus",
+ "pdf_no_metadata": "Neen Metadoaten in dät PDF deer.",
+ "pdf_page_error": "Siedentaal buute Riege."
+}
diff --git a/extensions/PdfHandler/i18n/sv.json b/extensions/PdfHandler/i18n/sv.json
new file mode 100644
index 00000000..2ba54aea
--- /dev/null
+++ b/extensions/PdfHandler/i18n/sv.json
@@ -0,0 +1,15 @@
+{
+ "@metadata": {
+ "authors": [
+ "Ainali",
+ "M.M.S."
+ ]
+ },
+ "pdf-desc": "Hantering av PDF-visning i bildläge",
+ "pdf_no_metadata": "Kan inte hämta metadata från PDF",
+ "pdf_page_error": "Sidnummer överstiger antal sidor i dokumentet",
+ "exif-pdf-producer": "Konverteringsprogram",
+ "exif-pdf-version": "Version av PDF-format",
+ "exif-pdf-encrypted": "Krypterad",
+ "exif-pdf-pagesize": "Sidstorlek"
+}
diff --git a/extensions/PdfHandler/i18n/ta.json b/extensions/PdfHandler/i18n/ta.json
new file mode 100644
index 00000000..9bd5a2f8
--- /dev/null
+++ b/extensions/PdfHandler/i18n/ta.json
@@ -0,0 +1,14 @@
+{
+ "@metadata": {
+ "authors": [
+ "Shanmugamp7",
+ "TRYPPN",
+ "மதனாஹரன்"
+ ]
+ },
+ "pdf-desc": "PDF கோப்புகளை உருவ முறையில் பார்க்க கையாளுனர்",
+ "pdf_no_metadata": "PDF இருந்து மேல்தரவை பெற இயலவில்லை",
+ "pdf_page_error": "பக்கத்தின் எண் குறிப்பிட்ட வரையறையில் இல்லை",
+ "exif-pdf-producer": "மாற்றனிரல்",
+ "exif-pdf-pagesize": "பக்க அளவு"
+}
diff --git a/extensions/PdfHandler/i18n/te.json b/extensions/PdfHandler/i18n/te.json
new file mode 100644
index 00000000..e40216f3
--- /dev/null
+++ b/extensions/PdfHandler/i18n/te.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Veeven"
+ ]
+ },
+ "pdf_page_error": "పుట సంఖ్య అవధిలో లేదు"
+}
diff --git a/extensions/PdfHandler/i18n/tk.json b/extensions/PdfHandler/i18n/tk.json
new file mode 100644
index 00000000..ada6e7f5
--- /dev/null
+++ b/extensions/PdfHandler/i18n/tk.json
@@ -0,0 +1,10 @@
+{
+ "@metadata": {
+ "authors": [
+ "Hanberke"
+ ]
+ },
+ "pdf-desc": "PDF faýllaryny görkeziş režiminde görkezmek üçin işleýji",
+ "pdf_no_metadata": "PDF-den meta-maglumat alyp bolanok",
+ "pdf_page_error": "Sahypa belgisi diapazonda däl"
+}
diff --git a/extensions/PdfHandler/i18n/tl.json b/extensions/PdfHandler/i18n/tl.json
new file mode 100644
index 00000000..d736043b
--- /dev/null
+++ b/extensions/PdfHandler/i18n/tl.json
@@ -0,0 +1,10 @@
+{
+ "@metadata": {
+ "authors": [
+ "AnakngAraw"
+ ]
+ },
+ "pdf-desc": "Tagapaghawak para sa pagtanaw ng mga talaksang PDF na nasa modalidad na panglarawan",
+ "pdf_no_metadata": "Hindi makuha ang dato ng meta mula sa PDF",
+ "pdf_page_error": "Wala sa sakop ang bilang ng pahina"
+}
diff --git a/extensions/PdfHandler/i18n/tr.json b/extensions/PdfHandler/i18n/tr.json
new file mode 100644
index 00000000..75a6e1a2
--- /dev/null
+++ b/extensions/PdfHandler/i18n/tr.json
@@ -0,0 +1,10 @@
+{
+ "@metadata": {
+ "authors": [
+ "Joseph"
+ ]
+ },
+ "pdf-desc": "PDF dosyalarını görüntü modunda görüntülemek için işleyici",
+ "pdf_no_metadata": "PDF'den metadata alınamıyor",
+ "pdf_page_error": "Sayfa numarası aralıkta değil"
+}
diff --git a/extensions/PdfHandler/i18n/ug-arab.json b/extensions/PdfHandler/i18n/ug-arab.json
new file mode 100644
index 00000000..4010aca1
--- /dev/null
+++ b/extensions/PdfHandler/i18n/ug-arab.json
@@ -0,0 +1,9 @@
+{
+ "@metadata": {
+ "authors": [
+ "Sahran"
+ ]
+ },
+ "exif-pdf-encrypted": "شىفىرلانغان",
+ "exif-pdf-pagesize": "بەت چوڭلۇقى"
+}
diff --git a/extensions/PdfHandler/i18n/uk.json b/extensions/PdfHandler/i18n/uk.json
new file mode 100644
index 00000000..d5af168c
--- /dev/null
+++ b/extensions/PdfHandler/i18n/uk.json
@@ -0,0 +1,15 @@
+{
+ "@metadata": {
+ "authors": [
+ "Base",
+ "Prima klasy4na"
+ ]
+ },
+ "pdf-desc": "Оброблювач для перегляду PDF-файлів в режимі зображень",
+ "pdf_no_metadata": "Не виходить отримати метадані з PDF",
+ "pdf_page_error": "Номер сторінки не в діапазоні",
+ "exif-pdf-producer": "програма конвертації",
+ "exif-pdf-version": "Версія формату PDF",
+ "exif-pdf-encrypted": "Зашифровано",
+ "exif-pdf-pagesize": "Розмір сторінки"
+}
diff --git a/extensions/PdfHandler/i18n/ur.json b/extensions/PdfHandler/i18n/ur.json
new file mode 100644
index 00000000..7c3c6392
--- /dev/null
+++ b/extensions/PdfHandler/i18n/ur.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "පසිඳු කාවින්ද"
+ ]
+ },
+ "pdf_page_error": "صفحہ نمبر رینج میں نہیں"
+}
diff --git a/extensions/PdfHandler/i18n/vec.json b/extensions/PdfHandler/i18n/vec.json
new file mode 100644
index 00000000..7345331d
--- /dev/null
+++ b/extensions/PdfHandler/i18n/vec.json
@@ -0,0 +1,15 @@
+{
+ "@metadata": {
+ "authors": [
+ "Candalua",
+ "GatoSelvadego"
+ ]
+ },
+ "pdf-desc": "Handler par vardar i file PDF in modalità imagine",
+ "pdf_no_metadata": "No se riesse a recuperar i metadati dal PDF",
+ "pdf_page_error": "Nùmaro de pagina mia conpreso in te l'intervalo",
+ "exif-pdf-producer": "Programa de conversion",
+ "exif-pdf-version": "Version del formato PDF",
+ "exif-pdf-encrypted": "Critigrafà",
+ "exif-pdf-pagesize": "Dimension pàjina"
+}
diff --git a/extensions/PdfHandler/i18n/vi.json b/extensions/PdfHandler/i18n/vi.json
new file mode 100644
index 00000000..e4e50ac6
--- /dev/null
+++ b/extensions/PdfHandler/i18n/vi.json
@@ -0,0 +1,15 @@
+{
+ "@metadata": {
+ "authors": [
+ "Minh Nguyen",
+ "Vinhtantran"
+ ]
+ },
+ "pdf-desc": "Bộ xử lý để xem tập tin PDF ở dạng hình ảnh",
+ "pdf_no_metadata": "Không thấy truy xuất siêu dữ liệu từ PDF",
+ "pdf_page_error": "Số trang không nằm trong giới hạn",
+ "exif-pdf-producer": "Chương trình chuyển đổi",
+ "exif-pdf-version": "Phiên bản định dạng PDF",
+ "exif-pdf-encrypted": "Mã hóa",
+ "exif-pdf-pagesize": "Kích thước trang"
+}
diff --git a/extensions/PdfHandler/i18n/yo.json b/extensions/PdfHandler/i18n/yo.json
new file mode 100644
index 00000000..52995a6a
--- /dev/null
+++ b/extensions/PdfHandler/i18n/yo.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Demmy"
+ ]
+ },
+ "pdf_no_metadata": "Dátà-àtẹ̀yìnwá kó ṣe é mú láti inú PDF"
+}
diff --git a/extensions/PdfHandler/i18n/yue.json b/extensions/PdfHandler/i18n/yue.json
new file mode 100644
index 00000000..a5aa1050
--- /dev/null
+++ b/extensions/PdfHandler/i18n/yue.json
@@ -0,0 +1,6 @@
+{
+ "@metadata": [],
+ "pdf-desc": "響圖像模式睇PDF檔嘅處理器",
+ "pdf_no_metadata": "唔能夠響PDF度拎metadata",
+ "pdf_page_error": "頁數唔響範圍度"
+}
diff --git a/extensions/PdfHandler/i18n/zh-hans.json b/extensions/PdfHandler/i18n/zh-hans.json
new file mode 100644
index 00000000..3b789624
--- /dev/null
+++ b/extensions/PdfHandler/i18n/zh-hans.json
@@ -0,0 +1,15 @@
+{
+ "@metadata": {
+ "authors": [
+ "Shirayuki",
+ "Yfdyh000"
+ ]
+ },
+ "pdf-desc": "在图像模式中查看PDF文件的处理器。",
+ "pdf_no_metadata": "无法在PDF中获取元数据。",
+ "pdf_page_error": "页数不在范围内。",
+ "exif-pdf-producer": "转换程序",
+ "exif-pdf-version": "PDF格式的版本",
+ "exif-pdf-encrypted": "加密",
+ "exif-pdf-pagesize": "页面大小"
+}
diff --git a/extensions/PdfHandler/i18n/zh-hant.json b/extensions/PdfHandler/i18n/zh-hant.json
new file mode 100644
index 00000000..d18de97c
--- /dev/null
+++ b/extensions/PdfHandler/i18n/zh-hant.json
@@ -0,0 +1,17 @@
+{
+ "@metadata": {
+ "authors": [
+ "Justincheng12345",
+ "Mark85296341",
+ "Simon Shek",
+ "Cwlin0416"
+ ]
+ },
+ "pdf-desc": "使用圖片模式檢視 PDF 檔案的處理程式。",
+ "pdf_no_metadata": "無法在 PDF 中取得資料定義。",
+ "pdf_page_error": "頁數超出範圍。",
+ "exif-pdf-producer": "轉換程式",
+ "exif-pdf-version": "PDF 格式版本",
+ "exif-pdf-encrypted": "已加密",
+ "exif-pdf-pagesize": "頁面大小"
+}
diff --git a/extensions/PdfHandler/tests/browser/Gemfile.lock b/extensions/PdfHandler/tests/browser/Gemfile.lock
new file mode 100644
index 00000000..c48276e7
--- /dev/null
+++ b/extensions/PdfHandler/tests/browser/Gemfile.lock
@@ -0,0 +1,62 @@
+GEM
+ remote: https://rubygems.org/
+ specs:
+ builder (3.2.2)
+ childprocess (0.5.3)
+ ffi (~> 1.0, >= 1.0.11)
+ cucumber (1.3.15)
+ builder (>= 2.1.2)
+ diff-lcs (>= 1.1.3)
+ gherkin (~> 2.12)
+ multi_json (>= 1.7.5, < 2.0)
+ multi_test (>= 0.1.1)
+ data_magic (0.19)
+ faker (>= 1.1.2)
+ yml_reader (>= 0.3)
+ diff-lcs (1.2.5)
+ faker (1.3.0)
+ i18n (~> 0.5)
+ ffi (1.9.3)
+ gherkin (2.12.2)
+ multi_json (~> 1.3)
+ headless (1.0.2)
+ i18n (0.6.9)
+ json (1.8.1)
+ mediawiki_selenium (0.2.25)
+ cucumber (~> 1.3, >= 1.3.10)
+ headless (~> 1.0, >= 1.0.1)
+ json (~> 1.8, >= 1.8.1)
+ page-object (~> 1.0)
+ rest-client (~> 1.6, >= 1.6.7)
+ rspec-expectations (~> 2.14, >= 2.14.4)
+ syntax (~> 1.2, >= 1.2.0)
+ mime-types (2.3)
+ multi_json (1.10.1)
+ multi_test (0.1.1)
+ page-object (1.0)
+ page_navigation (>= 0.9)
+ selenium-webdriver (>= 2.42.0)
+ watir-webdriver (>= 0.6.9)
+ page_navigation (0.9)
+ data_magic (>= 0.14)
+ rest-client (1.6.7)
+ mime-types (>= 1.16)
+ rspec-expectations (2.99.1)
+ diff-lcs (>= 1.1.3, < 2.0)
+ rubyzip (1.1.4)
+ selenium-webdriver (2.42.0)
+ childprocess (>= 0.5.0)
+ multi_json (~> 1.0)
+ rubyzip (~> 1.0)
+ websocket (~> 1.0.4)
+ syntax (1.2.0)
+ watir-webdriver (0.6.10)
+ selenium-webdriver (>= 2.18.0)
+ websocket (1.0.7)
+ yml_reader (0.3)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ mediawiki_selenium
diff --git a/extensions/PdfHandler/tests/browser/features/pdf.feature b/extensions/PdfHandler/tests/browser/features/pdf.feature
new file mode 100644
index 00000000..f78dd1ca
--- /dev/null
+++ b/extensions/PdfHandler/tests/browser/features/pdf.feature
@@ -0,0 +1,22 @@
+#
+# This file is subject to the license terms in the LICENSE file found in the
+# qa-browsertests top-level directory and at
+# https://git.wikimedia.org/blob/qa%2Fbrowsertests/HEAD/LICENSE. No part of
+# qa-browsertests, including this file, may be copied, modified, propagated, or
+# distributed except according to the terms contained in the LICENSE file.
+#
+# Copyright 2012-2014 by the Mediawiki developers. See the CREDITS file in the
+# qa-browsertests top-level directory and at
+# https://git.wikimedia.org/blob/qa%2Fbrowsertests/HEAD/CREDITS
+#
+@chrome @firefox @internet_explorer_8 @internet_explorer_9 @internet_explorer_10 @phantomjs @test2.wikipedia.org
+Feature: PDF
+
+ Scenario: Check for Download as PDF link
+ Given I am at a random page
+ Then Download as PDF should be present
+
+ Scenario: Click on Download as PDF link
+ Given I am at a random page
+ When I click on Download as PDF
+ Then Download the file link should be present
diff --git a/extensions/PdfHandler/tests/browser/features/step_definitions/pdf_steps.rb b/extensions/PdfHandler/tests/browser/features/step_definitions/pdf_steps.rb
new file mode 100644
index 00000000..25cf8ef4
--- /dev/null
+++ b/extensions/PdfHandler/tests/browser/features/step_definitions/pdf_steps.rb
@@ -0,0 +1,20 @@
+#
+# This file is subject to the license terms in the LICENSE file found in the
+# qa-browsertests top-level directory and at
+# https://git.wikimedia.org/blob/qa%2Fbrowsertests/HEAD/LICENSE. No part of
+# qa-browsertests, including this file, may be copied, modified, propagated, or
+# distributed except according to the terms contained in the LICENSE file.
+#
+# Copyright 2012-2014 by the Mediawiki developers. See the CREDITS file in the
+# qa-browsertests top-level directory and at
+# https://git.wikimedia.org/blob/qa%2Fbrowsertests/HEAD/CREDITS
+#
+Then(/^Download as PDF should be present$/) do
+ on(PdfPage).download_as_pdf_element.should exist
+end
+When(/^I click on Download as PDF$/) do
+ on(PdfPage).download_as_pdf_element.when_present.click
+end
+Then(/^Download the file link should be present$/) do
+ on(PdfPage).download_the_file_element.when_present(30).should exist
+end
diff --git a/extensions/PdfHandler/tests/browser/features/support/env.rb b/extensions/PdfHandler/tests/browser/features/support/env.rb
new file mode 100644
index 00000000..515ff78a
--- /dev/null
+++ b/extensions/PdfHandler/tests/browser/features/support/env.rb
@@ -0,0 +1,12 @@
+#
+# This file is subject to the license terms in the LICENSE file found in the
+# qa-browsertests top-level directory and at
+# https://git.wikimedia.org/blob/qa%2Fbrowsertests/HEAD/LICENSE. No part of
+# qa-browsertests, including this file, may be copied, modified, propagated, or
+# distributed except according to the terms contained in the LICENSE file.
+#
+# Copyright 2012-2014 by the Mediawiki developers. See the CREDITS file in the
+# qa-browsertests top-level directory and at
+# https://git.wikimedia.org/blob/qa%2Fbrowsertests/HEAD/CREDITS
+#
+require "mediawiki_selenium"
diff --git a/extensions/PdfHandler/tests/browser/features/support/pages/random_page.rb b/extensions/PdfHandler/tests/browser/features/support/pages/random_page.rb
new file mode 100644
index 00000000..8d77e976
--- /dev/null
+++ b/extensions/PdfHandler/tests/browser/features/support/pages/random_page.rb
@@ -0,0 +1,17 @@
+#
+# This file is subject to the license terms in the LICENSE file found in the
+# qa-browsertests top-level directory and at
+# https://git.wikimedia.org/blob/qa%2Fbrowsertests/HEAD/LICENSE. No part of
+# qa-browsertests, including this file, may be copied, modified, propagated, or
+# distributed except according to the terms contained in the LICENSE file.
+#
+# Copyright 2012-2014 by the Mediawiki developers. See the CREDITS file in the
+# qa-browsertests top-level directory and at
+# https://git.wikimedia.org/blob/qa%2Fbrowsertests/HEAD/CREDITS
+#
+class PdfPage
+ include PageObject
+
+ a(:download_as_pdf, text: "Download as PDF")
+ a(:download_the_file, text: "Download the file")
+end
diff --git a/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php b/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php
index 6d1f73c7..3580d013 100644
--- a/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php
+++ b/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php
@@ -470,18 +470,6 @@ class SyntaxHighlight_GeSHi {
}
/**
- * Get the GeSHI's version information while Special:Version is read.
- * @param $extensionTypes
- * @return bool
- */
- public static function extensionTypes( &$extensionTypes ) {
- global $wgExtensionCredits;
- self::initialise();
- $wgExtensionCredits['parserhook']['SyntaxHighlight_GeSHi']['version'] = GESHI_VERSION;
- return true;
- }
-
- /**
* Register a ResourceLoader module providing styles for each supported language.
*
* @param ResourceLoader $resourceLoader
diff --git a/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php b/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php
index da33ebee..6820ae1e 100644
--- a/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php
+++ b/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php
@@ -36,12 +36,15 @@ if( !defined( 'MEDIAWIKI' ) ) {
die();
}
-$wgExtensionCredits['parserhook']['SyntaxHighlight_GeSHi'] = array(
+require_once __DIR__ . '/geshi/geshi.php';
+
+$wgExtensionCredits['parserhook'][] = array(
'path' => __FILE__,
'name' => 'SyntaxHighlight',
'author' => array( 'Brion Vibber', 'Tim Starling', 'Rob Church', 'Niklas Laxström' ),
'descriptionmsg' => 'syntaxhighlight-desc',
'url' => 'https://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi',
+ 'version' => GESHI_VERSION,
);
// Change these in LocalSettings.php
@@ -56,7 +59,6 @@ $wgAutoloadClasses['SyntaxHighlight_GeSHi'] = $dir . 'SyntaxHighlight_GeSHi.clas
$wgAutoloadClasses['ResourceLoaderGeSHiModule'] = $dir . 'ResourceLoaderGeSHiModule.php';
$wgAutoloadClasses['ResourceLoaderGeSHiLocalModule'] = $dir . 'ResourceLoaderGeSHiLocalModule.php';
-$wgHooks['ExtensionTypes'][] = 'SyntaxHighlight_GeSHi::extensionTypes';
$wgHooks['ResourceLoaderRegisterModules'][] = 'SyntaxHighlight_GeSHi::resourceLoaderRegisterModules';
$wgHooks['ContentGetParserOutput'][] = 'SyntaxHighlight_GeSHi::renderHook';
diff --git a/extensions/TitleBlacklist/tests/ApiQueryTitleBlacklistTest.php b/extensions/TitleBlacklist/tests/ApiQueryTitleBlacklistTest.php
new file mode 100644
index 00000000..344e9996
--- /dev/null
+++ b/extensions/TitleBlacklist/tests/ApiQueryTitleBlacklistTest.php
@@ -0,0 +1,132 @@
+<?php
+/**
+ * Test the TitleBlacklist API.
+ *
+ * This wants to run with phpunit.php, like so:
+ * cd $IP/tests/phpunit
+ * php phpunit.php ../../extensions/TitleBlacklist/tests/ApiQueryTitleBlacklistTest.php
+ *
+ * The blacklist file is `testSource` and shared by all tests.
+ *
+ * Ian Baker <ian@wikimedia.org>
+ */
+
+ini_set( 'include_path', ini_get( 'include_path' ) . ':' . __DIR__ . '/../../../tests/phpunit/includes/api' );
+
+/**
+ * @group medium
+ **/
+class ApiQueryTitleBlacklistTest extends ApiTestCase {
+
+ function setUp() {
+ global $wgTitleBlacklistSources;
+ parent::setUp();
+ $this->doLogin();
+
+ $wgTitleBlacklistSources = array(
+ array(
+ 'type' => TBLSRC_FILE,
+ 'src' => __DIR__ . '/testSource',
+ ),
+ );
+ }
+
+ /**
+ * Verify we allow a title which is not blacklisted
+ */
+ function testCheckingUnlistedTitle() {
+ $unlisted = $this->doApiRequest( array(
+ 'action' => 'titleblacklist',
+ // evil_acc is blacklisted as <newaccountonly>
+ 'tbtitle' => 'evil_acc',
+ 'tbaction' => 'create',
+ 'tbnooverride' => true,
+ ) );
+
+ $this->assertEquals(
+ 'ok',
+ $unlisted[0]['titleblacklist']['result'],
+ 'Not blacklisted title returns ok'
+ );
+ }
+
+ /**
+ * Verify tboverride works
+ */
+ function testTboverride() {
+ global $wgGroupPermissions;
+
+ // Allow all users to override the titleblacklist
+ $wgGroupPermissions['*']['tboverride'] = true;
+
+ $unlisted = $this->doApiRequest( array(
+ 'action' => 'titleblacklist',
+ 'tbtitle' => 'bar',
+ 'tbaction' => 'create',
+ ) );
+
+ $this->assertEquals(
+ 'ok',
+ $unlisted[0]['titleblacklist']['result'],
+ 'Blacklisted title returns ok if the user is allowd to tboverride'
+ );
+ }
+
+ /**
+ * Verify a blacklisted title gives out an error.
+ */
+ function testCheckingBlackListedTitle() {
+ $listed = $this->doApiRequest( array(
+ 'action' => 'titleblacklist',
+ 'tbtitle' => 'bar',
+ 'tbaction' => 'create',
+ 'tbnooverride' => true,
+ ) );
+
+ $this->assertEquals(
+ 'blacklisted',
+ $listed[0]['titleblacklist']['result'],
+ 'Listed title returns error'
+ );
+ $this->assertEquals(
+ "The title \"bar\" has been banned from creation.\nIt matches the following blacklist entry: <code>[Bb]ar #example blacklist entry</code>",
+ $listed[0]['titleblacklist']['reason'],
+ 'Listed title error text is as expected'
+ );
+
+ $this->assertEquals(
+ "titleblacklist-forbidden-edit",
+ $listed[0]['titleblacklist']['message'],
+ 'Correct blacklist message name is returned'
+ );
+
+ $this->assertEquals(
+ "[Bb]ar #example blacklist entry",
+ $listed[0]['titleblacklist']['line'],
+ 'Correct blacklist line is returned'
+ );
+ }
+
+ /**
+ * Tests integration with the AntiSpoof extension
+ */
+ function testAntiSpoofIntegration() {
+ if ( !class_exists( 'AntiSpoof') ) {
+ $this->markTestSkipped( "This test requires the AntiSpoof extension" );
+ }
+
+ $listed = $this->doApiRequest( array(
+ 'action' => 'titleblacklist',
+ 'tbtitle' => 'AVVVV',
+ 'tbaction' => 'create',
+ 'tbnooverride' => true,
+ ) );
+
+ $this->assertEquals(
+ 'blacklisted',
+ $listed[0]['titleblacklist']['result'],
+ 'Spoofed title is blacklisted'
+ );
+
+ }
+}
diff --git a/extensions/TitleBlacklist/tests/testSource b/extensions/TitleBlacklist/tests/testSource
new file mode 100644
index 00000000..235cc671
--- /dev/null
+++ b/extensions/TitleBlacklist/tests/testSource
@@ -0,0 +1,5 @@
+[Bb]ar #example blacklist entry
+.*[Ff]ail.*
+.*[Nn]yancat.* <errmsg=blacklisted-nyancat>
+.*evil_acc.* <newaccountonly>
+AW{1,10} <antispoof>
diff --git a/extensions/WikiEditor/tests/selenium/WikiDialogs_Links.php b/extensions/WikiEditor/tests/selenium/WikiDialogs_Links.php
new file mode 100644
index 00000000..7153f49f
--- /dev/null
+++ b/extensions/WikiEditor/tests/selenium/WikiDialogs_Links.php
@@ -0,0 +1,67 @@
+<?php
+require_once 'WikiDialogs_Links_Setup.php';
+/**
+ * Description of WikiNewPageDialogs
+ *
+ * @author bhagyag, pdhanda
+ *
+ * This test case is part of the WikiEditorTestSuite.
+ * Configuration for these tests are dosumented as part of extensions/WikiEditor/tests/selenium/WikiEditorTestSuite.php
+ *
+ */
+class WikiDialogs_Links extends WikiDialogs_Links_Setup {
+ // Set up the testing environment
+ function setup() {
+ parent::setUp();
+ parent::doCreateInternalTestPageIfMissing();
+ }
+
+ function tearDown() {
+ parent::doLogout();
+ parent::tearDown();
+ }
+
+ // Create a new page temporary
+ function createNewPage() {
+ parent::doOpenLink();
+ parent::login();
+ parent::doCreateNewPageTemporary();
+ }
+
+ // Add a internal link and verify
+ function testInternalLink() {
+ $this->createNewPage();
+ parent::verifyInternalLink();
+ }
+
+ // Add a internal link with different display text and verify
+ function testInternalLinkWithDisplayText() {
+ $this->createNewPage();
+ parent::verifyInternalLinkWithDisplayText();
+ }
+
+ // Add a internal link with blank display text and verify
+ function testInternalLinkWithBlankDisplayText() {
+ $this->createNewPage();
+ parent::verifyInternalLinkWithBlankDisplayText();
+ }
+
+ // Add external link and verify
+ function testExternalLink() {
+ $this->createNewPage();
+ parent::verifyExternalLink();
+ }
+
+ // Add external link with different display text and verify
+ function testExternalLinkWithDisplayText( ) {
+ $this->createNewPage();
+ parent::verifyExternalLinkWithDisplayText();
+ }
+
+ // Add external link with Blank display text and verify
+ function testExternalLinkWithBlankDisplayText() {
+ $this->createNewPage();
+ parent::verifyExternalLinkWithBlankDisplayText();
+ }
+
+}
diff --git a/extensions/WikiEditor/tests/selenium/WikiDialogs_Links_Setup.php b/extensions/WikiEditor/tests/selenium/WikiDialogs_Links_Setup.php
new file mode 100644
index 00000000..352ebec0
--- /dev/null
+++ b/extensions/WikiEditor/tests/selenium/WikiDialogs_Links_Setup.php
@@ -0,0 +1,295 @@
+<?php
+include( "WikiEditorConstants.php" );
+/**
+ * This test case will be handling the Wiki Tool bar Dialog functions
+ * Date : Apr - 2010
+ * @author : BhagyaG - Calcey
+ */
+class WikiDialogs_Links_Setup extends SeleniumTestCase {
+
+ // Open the page.
+ function doOpenLink() {
+ $this->open( $this->getUrl() . '/index.php' );
+ $this->waitForPageToLoad( WIKI_TEST_WAIT_TIME );
+ }
+
+ // Expand advance tool bar section if its not
+ function doExpandAdvanceSection() {
+ if ( !$this->isTextPresent( TEXT_HEADING ) ) {
+ $this->click( LINK_ADVANCED );
+ }
+ }
+
+ // Log out from the application
+ function doLogout() {
+ $this->open( $this->getUrl() . '/index.php' );
+ if ( $this->isTextPresent( TEXT_LOGOUT ) ) {
+ $this->click( LINK_LOGOUT );
+ $this->waitForPageToLoad( WIKI_TEST_WAIT_TIME );
+ $this->assertEquals( TEXT_LOGOUT_CONFIRM, $this->getText( LINK_LOGIN ) );
+ $this->open( $this->getUrl() . '/index.php' );
+ $this->waitForPageToLoad( WIKI_TEST_WAIT_TIME );
+ }
+ }
+
+ // Create a temporary fixture page
+ function doCreateInternalTestPageIfMissing() {
+ $this->type( INPUT_SEARCH_BOX, WIKI_INTERNAL_LINK );
+ $this->click( BUTTON_SEARCH );
+ $this->waitForPageToLoad( WIKI_TEST_WAIT_TIME );
+ $this->click( LINK_START . WIKI_INTERNAL_LINK );
+ $this->waitForPageToLoad( WIKI_TEST_WAIT_TIME );
+ $location = $this->getLocation() . "\n";
+ if ( strpos( $location, '&redlink=1' ) !== false ) {
+ $this->type( TEXT_EDITOR, "Test fixture page. No real content here" );
+ $this->click( BUTTON_SAVE_WATCH );
+ $this->waitForPageToLoad( WIKI_TEST_WAIT_TIME );
+ $this->assertTrue( $this->isTextPresent( WIKI_INTERNAL_LINK ),
+ $this->getText( TEXT_PAGE_HEADING ) );
+ }
+ }
+
+ // Create a temporary new page
+ function doCreateNewPageTemporary() {
+ $this->type( INPUT_SEARCH_BOX, WIKI_TEMP_NEWPAGE );
+ $this->click( BUTTON_SEARCH );
+ $this->waitForPageToLoad( WIKI_TEST_WAIT_TIME );
+ $this->click( LINK_START . WIKI_TEMP_NEWPAGE );
+ $this->waitForPageToLoad( WIKI_TEST_WAIT_TIME );
+ }
+
+ // Add a internal link and verify
+ function verifyInternalLink() {
+ $this->type( TEXT_EDITOR, "" );
+ $this->click( LINK_ADDLINK );
+ $this->waitForPopup( 'addLink', WIKI_TEST_WAIT_TIME );
+ $this->type( TEXT_LINKNAME, ( WIKI_INTERNAL_LINK ) );
+ $this->assertTrue( $this->isElementPresent( ICON_PAGEEXISTS ), 'Element ' . ICON_PAGEEXISTS . 'Not found' );
+ $this->assertEquals( "on", $this->getValue( OPT_INTERNAL ) );
+ $this->click( BUTTON_INSERTLINK );
+ $this->click( LINK_PREVIEW );
+ $this->waitForPageToLoad( WIKI_TEST_WAIT_TIME );
+ $this->assertEquals( ( WIKI_INTERNAL_LINK ), $this->getText( LINK_START . WIKI_INTERNAL_LINK ) );
+ $this->click( LINK_START . WIKI_INTERNAL_LINK );
+ $this->waitForPageToLoad( WIKI_TEST_WAIT_TIME );
+ $this->assertTrue( $this->isTextPresent( WIKI_INTERNAL_LINK ), $this->getText( TEXT_PAGE_HEADING ) );
+ }
+
+ // Add a internal link with different display text and verify
+ function verifyInternalLinkWithDisplayText() {
+ $this->type( TEXT_EDITOR, "" );
+ $this->click( LINK_ADDLINK );
+ $this->waitForPopup( 'addLink', WIKI_TEST_WAIT_TIME );
+ $this->type( TEXT_LINKNAME, WIKI_INTERNAL_LINK );
+ $this->type ( TEXT_LINKDISPLAYNAME, WIKI_INTERNAL_LINK . TEXT_LINKDISPLAYNAME_APPENDTEXT );
+ $this->assertTrue( $this->isElementPresent( ICON_PAGEEXISTS ) );
+ $this->assertEquals( "on", $this->getValue( OPT_INTERNAL ) );
+ $this->click( BUTTON_INSERTLINK );
+ $this->click( LINK_PREVIEW );
+ $this->waitForPageToLoad( WIKI_TEST_WAIT_TIME );
+ $this->assertEquals( WIKI_INTERNAL_LINK . TEXT_LINKDISPLAYNAME_APPENDTEXT,
+ $this->getText( LINK_START . WIKI_INTERNAL_LINK . TEXT_LINKDISPLAYNAME_APPENDTEXT ) );
+ $this->click( LINK_START . WIKI_INTERNAL_LINK . TEXT_LINKDISPLAYNAME_APPENDTEXT );
+ $this->waitForPageToLoad( WIKI_TEST_WAIT_TIME );
+ $this->assertTrue( $this->isTextPresent( WIKI_INTERNAL_LINK ), $this->getText( TEXT_PAGE_HEADING ) );
+
+ }
+
+ // Add a internal link with blank display text and verify
+ function verifyInternalLinkWithBlankDisplayText() {
+ $this->type( TEXT_EDITOR, "" );
+ $this->click( LINK_ADDLINK );
+ $this->waitForPopup( 'addLink', WIKI_TEST_WAIT_TIME );
+ $this->type( TEXT_LINKNAME, WIKI_INTERNAL_LINK );
+ $this->type( TEXT_LINKDISPLAYNAME, "" );
+ $this->assertTrue( $this->isElementPresent( ICON_PAGEEXISTS ) );
+ $this->assertEquals( "on", $this->getValue( OPT_INTERNAL ) );
+ $this->click( BUTTON_INSERTLINK );
+ $this->click( LINK_PREVIEW );
+ $this->waitForPageToLoad( WIKI_TEST_WAIT_TIME );
+ $this->assertEquals( WIKI_INTERNAL_LINK, $this->getText( LINK_START . WIKI_INTERNAL_LINK ) );
+ $this->click( LINK_START . WIKI_INTERNAL_LINK );
+ $this->waitForPageToLoad( WIKI_TEST_WAIT_TIME );
+ $this->assertEquals( WIKI_INTERNAL_LINK, $this->getText( TEXT_PAGE_HEADING ) );
+
+ }
+
+ // Add external link and verify
+ function verifyExternalLink() {
+ $this->type( LINK_PREVIEW, "" );
+ $this->click( LINK_ADDLINK );
+ $this->type( TEXT_LINKNAME, WIKI_EXTERNAL_LINK );
+ $this->assertTrue( $this->isElementPresent( ICON_PAGEEXTERNAL ) );
+ $this->assertEquals( "on", $this->getValue( OPT_EXTERNAL ) );
+ $this->click( BUTTON_INSERTLINK );
+ $this->click( LINK_PREVIEW );
+ $this->waitForPageToLoad( WIKI_TEST_WAIT_TIME );
+ $this->assertEquals( WIKI_EXTERNAL_LINK, $this->getText( LINK_START . WIKI_EXTERNAL_LINK ) );
+
+ $this->click( LINK_START . WIKI_EXTERNAL_LINK );
+ $this->waitForPageToLoad( WIKI_TEST_WAIT_TIME );
+ $this->assertEquals( WIKI_EXTERNAL_LINK_TITLE, $this->getTitle() );
+ }
+
+ // Add external link with different display text and verify
+ function verifyExternalLinkWithDisplayText() {
+ $this->type( TEXT_EDITOR, "" );
+ $this->click( LINK_ADDLINK );
+ $this->type( TEXT_LINKNAME, WIKI_EXTERNAL_LINK );
+ $this->type( TEXT_LINKDISPLAYNAME, WIKI_EXTERNAL_LINK_TITLE );
+ $this->assertTrue( $this->isElementPresent( ICON_PAGEEXTERNAL ) );
+ $this->assertEquals( "on", $this->getValue( OPT_EXTERNAL ) );
+ $this->click( BUTTON_INSERTLINK );
+ $this->click( LINK_PREVIEW );
+ $this->waitForPageToLoad( WIKI_TEST_WAIT_TIME );
+ $this->assertEquals( WIKI_EXTERNAL_LINK_TITLE, $this->getText( LINK_START . WIKI_EXTERNAL_LINK_TITLE ) );
+ $this->click( LINK_START . ( WIKI_EXTERNAL_LINK_TITLE ) );
+ $this->waitForPageToLoad( WIKI_TEST_WAIT_TIME );
+ $this->assertEquals( WIKI_EXTERNAL_LINK_TITLE , $this->getTitle() );
+ }
+
+ // Add external link with Blank display text and verify
+ function verifyExternalLinkWithBlankDisplayText() {
+ $this->type( TEXT_EDITOR, "" );
+ $this->click( LINK_ADDLINK );
+ $this->type( TEXT_LINKNAME, WIKI_EXTERNAL_LINK );
+ $this->type( TEXT_LINKDISPLAYNAME, "" );
+ $this->assertTrue( $this->isElementPresent( ICON_PAGEEXTERNAL ) );
+ $this->assertEquals( "on", $this->getValue( OPT_EXTERNAL ) );
+ $this->click( BUTTON_INSERTLINK );
+ $this->click( LINK_PREVIEW );
+ $this->waitForPageToLoad( WIKI_TEST_WAIT_TIME );
+ $this->assertEquals( "[1]", $this->getText( LINK_START . "[1]" ) );
+ $this->click( LINK_START . "[1]" );
+ $this->waitForPageToLoad( WIKI_TEST_WAIT_TIME );
+ $this->assertEquals( WIKI_EXTERNAL_LINK_TITLE, $this->getTitle() );
+ }
+
+ // Add a table and verify
+ function verifyCreateTable() {
+ $WIKI_TABLE_ROW = 2;
+ $WIKI_TABLE_COL = "5";
+ $this->doExpandAdvanceSection();
+ $this->type( TEXT_EDITOR, "" );
+ $this->click( LINK_ADDTABLE );
+ $this->click( CHK_SORT );
+ $this->type( TEXT_ROW, $WIKI_TABLE_ROW );
+ $this->type( TEXT_COL, $WIKI_TABLE_COL );
+ $this->click( BUTTON_INSERTABLE );
+ $this->click( CHK_SORT );
+ $this->click( LINK_PREVIEW );
+ $this->waitForPageToLoad( WIKI_TEST_WAIT_TIME );
+ $WIKI_TABLE_ROW = $WIKI_TABLE_ROW + 1;
+ $this->assertTrue( $this->isElementPresent( TEXT_TABLEID_OTHER .
+ TEXT_VALIDATE_TABLE_PART1 . $WIKI_TABLE_ROW .
+ TEXT_VALIDATE_TABLE_PART2 . $WIKI_TABLE_COL .
+ TEXT_VALIDATE_TABLE_PART3 ) );
+ }
+
+ // Add a table and verify only with head row
+ function verifyCreateTableWithHeadRow() {
+ $WIKI_TABLE_ROW = 3;
+ $WIKI_TABLE_COL = "4";
+ $this->doExpandAdvanceSection();
+ $this->type( TEXT_EDITOR, "" );
+ $this->click( LINK_ADDTABLE );
+ $this->click( CHK_BOARDER );
+ $this->type( TEXT_ROW, $WIKI_TABLE_ROW );
+ $this->type( TEXT_COL, $WIKI_TABLE_COL );
+ $this->click( BUTTON_INSERTABLE );
+ $this->click( LINK_PREVIEW );
+ $this->waitForPageToLoad( WIKI_TEST_WAIT_TIME );
+ $WIKI_TABLE_ROW = $WIKI_TABLE_ROW + 1;
+ $this->assertTrue( $this->isElementPresent( TEXT_TABLEID_OTHER .
+ TEXT_VALIDATE_TABLE_PART1 . $WIKI_TABLE_ROW .
+ TEXT_VALIDATE_TABLE_PART2 . $WIKI_TABLE_COL .
+ TEXT_VALIDATE_TABLE_PART3 ) );
+ }
+
+ // Add a table and verify only with borders
+ function verifyCreateTableWithBorders() {
+ $WIKI_TABLE_ROW = "4";
+ $WIKI_TABLE_COL = "6";
+ $this->type( TEXT_EDITOR, "" );
+ $this->click( LINK_ADDTABLE );
+ $this->click( CHK_HEADER );
+ $this->type( TEXT_ROW, $WIKI_TABLE_ROW );
+ $this->type( TEXT_COL, $WIKI_TABLE_COL );
+ $this->click( BUTTON_INSERTABLE );
+ $this->click( CHK_HEADER );
+ $this->click( LINK_PREVIEW );
+ $this->waitForPageToLoad( WIKI_TEST_WAIT_TIME );
+ $this->assertTrue( $this->isElementPresent( TEXT_TABLEID_OTHER .
+ TEXT_VALIDATE_TABLE_PART1 . $WIKI_TABLE_ROW .
+ TEXT_VALIDATE_TABLE_PART2 . $WIKI_TABLE_COL .
+ TEXT_VALIDATE_TABLE_PART3 ) );
+ }
+
+ // Add a table and verify only with sort row
+ function verifyCreateTableWithSortRow() {
+ $WIKI_TABLE_ROW = "2";
+ $WIKI_TABLE_COL = "5";
+ $this->type( TEXT_EDITOR, "" );
+ $this->click( LINK_ADDTABLE );
+ $this->click( CHK_HEADER );
+ $this->click( CHK_BOARDER );
+ $this->click( CHK_SORT );
+ $this->type( TEXT_ROW, $WIKI_TABLE_ROW );
+ $this->type( TEXT_COL, $WIKI_TABLE_COL );
+ $this->click( BUTTON_INSERTABLE );
+ $this->click( CHK_HEADER );
+ $this->click( CHK_BOARDER );
+ $this->click( CHK_SORT );
+ $this->click( LINK_PREVIEW );
+ $this->waitForPageToLoad( WIKI_TEST_WAIT_TIME );
+ $this->assertTrue( $this->isElementPresent( TEXT_TABLEID_WITHALLFEATURES .
+ TEXT_VALIDATE_TABLE_PART1 . $WIKI_TABLE_ROW .
+ TEXT_VALIDATE_TABLE_PART2 . $WIKI_TABLE_COL .
+ TEXT_VALIDATE_TABLE_PART3 ) );
+ }
+
+ // Add a table without headers,borders and sort rows
+ function verifyCreateTableWithNoSpecialEffects() {
+ $WIKI_TABLE_ROW = "6";
+ $WIKI_TABLE_COL = "2";
+ $this->
+ $this->doExpandAdvanceSection();
+ $this->type( TEXT_EDITOR, "" );
+ $this->click( LINK_ADDTABLE );
+ $this->click( CHK_BOARDER );
+ $this->click( CHK_HEADER );
+ $this->type( TEXT_ROW, $WIKI_TABLE_ROW );
+ $this->type( TEXT_COL, $WIKI_TABLE_COL );
+ $this->click( BUTTON_INSERTABLE );
+ $this->click( CHK_BOARDER );
+ $this->click( CHK_HEADER );
+ $this->click( INK_PREVIEW );
+ $this->waitForPageToLoad( WIKI_TEST_WAIT_TIME );
+ $this->assertTrue( $this->isElementPresent( TEXT_TABLEID_OTHER .
+ TEXT_VALIDATE_TABLE_PART1 . $WIKI_TABLE_ROW .
+ TEXT_VALIDATE_TABLE_PART2 . $WIKI_TABLE_COL .
+ TEXT_VALIDATE_TABLE_PART3 ) );
+ }
+
+ // Add a table with headers,borders and sort rows
+ function verifyCreateTableWithAllSpecialEffects() {
+ $WIKI_TABLE_ROW = 6;
+ $WIKI_TABLE_COL = "2";
+ $this->doExpandAdvanceSection();
+ $this->type( TEXT_EDITOR, "" );
+ $this->click( LINK_ADDTABLE );
+ $this->click( CHK_SORT );
+ $this->type( TEXT_ROW, $WIKI_TABLE_ROW );
+ $this->type( TEXT_COL, $WIKI_TABLE_COL );
+ $this->click( BUTTON_INSERTABLE );
+ $this->click( CHK_SORT );
+ $this->click( LINK_PREVIEW );
+ $this->waitForPageToLoad( WIKI_TEST_WAIT_TIME );
+ $WIKI_TABLE_ROW = $WIKI_TABLE_ROW + 1;
+ $this->assertTrue( $this->isElementPresent( TEXT_TABLEID_WITHALLFEATURES .
+ TEXT_VALIDATE_TABLE_PART1 . $WIKI_TABLE_ROW .
+ TEXT_VALIDATE_TABLE_PART2 . $WIKI_TABLE_COL .
+ TEXT_VALIDATE_TABLE_PART3 ) );
+ }
+
+}
diff --git a/extensions/WikiEditor/tests/selenium/WikiEditorConstants.php b/extensions/WikiEditor/tests/selenium/WikiEditorConstants.php
new file mode 100644
index 00000000..090f96bf
--- /dev/null
+++ b/extensions/WikiEditor/tests/selenium/WikiEditorConstants.php
@@ -0,0 +1,84 @@
+<?php
+define ( 'WIKI_TEST_WAIT_TIME', "3000" ); // Waiting time
+
+// tool bar, buttons , links
+// commonly using links
+define ( 'LINK_MAIN_PAGE', "link=Main page" );
+define ( 'LINK_RANDOM_PAGE', "link=Random article" );
+define ( 'TEXT_PAGE_HEADING', "firstHeading" );
+define ( 'LINK_START', "link=" );
+define ( 'LINK_EDITPAGE', "//li[@id='ca-edit']/a/span" );
+define ( 'TEXT_EDITOR', "wpTextbox1" );
+define ( 'LINK_PREVIEW', "wpPreview" );
+
+define ( 'WIKI_SEARCH_PAGE', "Hair (musical)" ); // Page name to search
+define ( 'WIKI_TEXT_SEARCH', "TV" ); // Text to search
+define ( 'WIKI_INTERNAL_LINK', "Wikieditor-Fixture-Page" ); // Exisiting page name to add as an internal tag
+define ( 'WIKI_EXTERNAL_LINK', "www.google.com" ); // External web site name
+define ( 'WIKI_EXTERNAL_LINK_TITLE', "Google" ); // Page title of the external web site name
+define ( 'WIKI_CODE_PATH', getcwd() ); // get the current path of the program
+define ( 'WIKI_SCREENSHOTS_PATH', "screenshots" ); // the folder the error screen shots will be saved
+define ( 'WIKI_SCREENSHOTS_TYPE', "png" ); // screen print type
+define ( 'WIKI_TEMP_NEWPAGE', "TestWikiPage" ); // temporary creating new page name
+// for WikiCommonFunction_TC
+
+// for WikiSearch_TC
+define ( 'INPUT_SEARCH_BOX', "searchInput" );
+define ( 'BUTTON_SEARCH', "mw-searchButton" );
+define ( 'TEXT_SEARCH_RESULT_HEADING', " - Search results - Wikipedia, the free encyclopedia" );
+
+// for WikiWatchUnWatch_TC
+define ( 'LINK_WATCH_PAGE', "link=Watch" );
+define ( 'LINK_WATCH_LIST', "link=My watchlist" );
+define ( 'LINK_WATCH_EDIT', "link=View and edit watchlist" );
+define ( 'LINK_UNWATCH', "link=Unwatch" );
+define ( 'BUTTON_WATCH', "wpWatchthis" );
+define ( 'BUTTON_SAVE_WATCH', "wpSave" );
+define ( 'TEXT_WATCH', "Watch" );
+define ( 'TEXT_UNWATCH', "Unwatch" );
+
+// for WikiCommonFunction_TC
+define ( 'TEXT_LOGOUT', "Log out" );
+define ( 'LINK_LOGOUT', "link=Log out" );
+define ( 'LINK_LOGIN', "link=Log in / create account" );
+define ( 'TEXT_LOGOUT_CONFIRM', "Log in / create account" );
+define ( 'INPUT_USER_NAME', "wpName1" );
+define ( 'INPUT_PASSWD', "wpPassword1" );
+define ( 'BUTTON_LOGIN', "wpLoginAttempt" );
+define ( 'TEXT_HEADING', "Heading" );
+define ( 'LINK_ADVANCED', "link=Advanced" );
+
+// for WikiDialogs_TC
+define ( 'LINK_ADDLINK', "//div[@id='wikiEditor-ui-toolbar']/div[1]/div[2]/span[2 ]" );
+define ( 'TEXT_LINKNAME', "wikieditor-toolbar-link-int-target" );
+define ( 'TEXT_LINKDISPLAYNAME', "wikieditor-toolbar-link-int-text" );
+define ( 'TEXT_LINKDISPLAYNAME_APPENDTEXT', " Test" );
+define ( 'ICON_PAGEEXISTS', "wikieditor-toolbar-link-int-target-status-exists" );
+define ( 'ICON_PAGEEXTERNAL', "wikieditor-toolbar-link-int-target-status-external" );
+define ( 'OPT_INTERNAL', "wikieditor-toolbar-link-type-int" );
+define ( 'OPT_EXTERNAL', "wikieditor-toolbar-link-type-ext" );
+define ( 'BUTTON_INSERTLINK', "//div[10]/div[11]/button[1]" );
+define ( 'LINK_ADDTABLE', "//div[@id='wikiEditor-ui-toolbar']/div[3]/div[1]/div[4]/span[2]" );
+define ( 'CHK_HEADER', "wikieditor-toolbar-table-dimensions-header" );
+define ( 'CHK_BOARDER', "wikieditor-toolbar-table-wikitable" );
+define ( 'CHK_SORT', "wikieditor-toolbar-table-sortable" );
+define ( 'TEXT_ROW', "wikieditor-toolbar-table-dimensions-rows" );
+define ( 'TEXT_COL', "wikieditor-toolbar-table-dimensions-columns" );
+define ( 'BUTTON_INSERTABLE', "//div[3]/button[1]" );
+define ( 'TEXT_HEADTABLE_TEXT', "Header text" );
+define ( 'TEXT_TABLEID_WITHALLFEATURES', "//table[@id='sortable_table_id_0']/tbody/" );
+define ( 'TEXT_TABLEID_OTHER', "//div[@id='wikiPreview']/table/tbody/" );
+define ( 'TEXT_VALIDATE_TABLE_PART1', "tr[" );
+define ( 'TEXT_VALIDATE_TABLE_PART2', "]/td[" );
+define ( 'TEXT_VALIDATE_TABLE_PART3', "]" );
+define ( 'LINK_SEARCH', "//div[@id='wikiEditor-ui-toolbar']/div[3]/div[1]/div[5]/span" );
+define ( 'INPUT_SEARCH', "wikieditor-toolbar-replace-search" );
+define ( 'INPUT_REPLACE', "wikieditor-toolbar-replace-replace" );
+define ( 'BUTTON_REPLACEALL', "//button[3]" );
+define ( 'BUTTON_REPLACENEXT', "//button[2]" );
+define ( 'BUTTON_CANCEL', "//button[4]" );
+define ( 'TEXT_PREVIEW_TEXT1', "//div[@id='wikiPreview']/p[1]" );
+define ( 'TEXT_PREVIEW_TEXT2', "//div[@id='wikiPreview']/p[2]" );
+define ( 'TEXT_PREVIEW_TEXT3', "//div[@id='wikiPreview']/p[3]" );
+
+
diff --git a/extensions/WikiEditor/tests/selenium/WikiEditorSeleniumConfig.php b/extensions/WikiEditor/tests/selenium/WikiEditorSeleniumConfig.php
new file mode 100644
index 00000000..137e67b0
--- /dev/null
+++ b/extensions/WikiEditor/tests/selenium/WikiEditorSeleniumConfig.php
@@ -0,0 +1,24 @@
+<?php
+
+class WikiEditorSeleniumConfig {
+
+ public static function getSettings( &$includeFiles, &$globalConfigs ) {
+ $includes = array(
+ 'extensions/Vector/Vector.php',
+ 'extensions/WikiEditor/WikiEditor.php'
+ );
+ $configs = array(
+ 'wgDefaultSkin' => 'vector',
+ 'wgWikiEditorFeatures' => array(
+ 'toolbar' => array( 'global' => true, 'user' => true ),
+ 'dialogs' => array( 'global' => true, 'user' => true )
+ ),
+ 'wgVectorFeatures' => array(
+ 'editwarning' => array( 'global' => false, 'user' => false )
+ )
+ );
+ $includeFiles = array_merge( $includeFiles, $includes );
+ $globalConfigs = array_merge( $globalConfigs, $configs );
+ return true;
+ }
+}
diff --git a/extensions/WikiEditor/tests/selenium/WikiEditorTestSuite.php b/extensions/WikiEditor/tests/selenium/WikiEditorTestSuite.php
new file mode 100644
index 00000000..14a8bf20
--- /dev/null
+++ b/extensions/WikiEditor/tests/selenium/WikiEditorTestSuite.php
@@ -0,0 +1,32 @@
+<?php
+
+/**
+ * To configure MW for these tests
+ * 1) If you are running multiple test suites, add the following in LocalSettings.php
+ * require_once("extensions/WikiEditor/tests/selenium/WikiEditorSeleniumConfig.php");
+ * $wgSeleniumTestConfigs['WikiEditorTestSuite'] = 'WikiEditorSeleniumConfig::getSettings';
+ * OR
+ * 2) Add the following to your Localsettings.php
+ * require_once( "$IP/extensions/Vector/Vector.php" );
+ * require_once( "$IP/extensions/WikiEditor/WikiEditor.php" );
+ * $wgDefaultSkin = 'vector';
+ * $wgVectorFeatures['editwarning'] = array( 'global' => false, 'user' => false );
+ * $wgWikiEditorFeatures['toolbar'] = array( 'global' => true, 'user' => true );
+ * $wgWikiEditorFeatures['dialogs'] = array( 'global' => true, 'user' => true );
+ *
+ */
+class WikiEditorTestSuite extends SeleniumTestSuite
+{
+ public function setUp() {
+ $this->setLoginBeforeTests( false );
+ parent::setUp();
+ }
+ public function addTests() {
+ $testFiles = array(
+ 'extensions/WikiEditor/tests/selenium/WikiDialogs_Links.php'
+ );
+ parent::addTestFiles( $testFiles );
+ }
+
+
+}