summaryrefslogtreecommitdiff
path: root/extensions/PdfHandler
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/PdfHandler')
-rw-r--r--extensions/PdfHandler/Gemfile.lock (renamed from extensions/PdfHandler/tests/browser/Gemfile.lock)17
-rw-r--r--extensions/PdfHandler/PdfHandler.i18n.php35
-rw-r--r--extensions/PdfHandler/PdfHandler.php74
-rw-r--r--extensions/PdfHandler/PdfHandler_body.php34
-rw-r--r--extensions/PdfHandler/extension.json45
-rw-r--r--extensions/PdfHandler/i18n/de.json4
-rw-r--r--extensions/PdfHandler/i18n/en.json6
-rw-r--r--extensions/PdfHandler/i18n/es.json7
-rw-r--r--extensions/PdfHandler/i18n/et.json4
-rw-r--r--extensions/PdfHandler/i18n/frc.json8
-rw-r--r--extensions/PdfHandler/i18n/he.json6
-rw-r--r--extensions/PdfHandler/i18n/ksh.json6
-rw-r--r--extensions/PdfHandler/i18n/ku-latn.json8
-rw-r--r--extensions/PdfHandler/i18n/lb.json1
-rw-r--r--extensions/PdfHandler/i18n/lrc.json2
-rw-r--r--extensions/PdfHandler/i18n/mk.json4
-rw-r--r--extensions/PdfHandler/i18n/pl.json5
-rw-r--r--extensions/PdfHandler/i18n/pt.json7
-rw-r--r--extensions/PdfHandler/i18n/qqq.json5
-rw-r--r--extensions/PdfHandler/i18n/sv.json1
-rw-r--r--extensions/PdfHandler/i18n/zh-hans.json7
21 files changed, 177 insertions, 109 deletions
diff --git a/extensions/PdfHandler/tests/browser/Gemfile.lock b/extensions/PdfHandler/Gemfile.lock
index c48276e7..14736585 100644
--- a/extensions/PdfHandler/tests/browser/Gemfile.lock
+++ b/extensions/PdfHandler/Gemfile.lock
@@ -1,6 +1,9 @@
GEM
remote: https://rubygems.org/
specs:
+ ast (2.0.0)
+ astrolabe (1.3.0)
+ parser (>= 2.2.0.pre.3, < 3.0)
builder (3.2.2)
childprocess (0.5.3)
ffi (~> 1.0, >= 1.0.11)
@@ -39,16 +42,29 @@ GEM
watir-webdriver (>= 0.6.9)
page_navigation (0.9)
data_magic (>= 0.14)
+ parser (2.2.0.pre.4)
+ ast (>= 1.1, < 3.0)
+ slop (~> 3.4, >= 3.4.5)
+ powerpack (0.0.9)
+ rainbow (2.0.0)
rest-client (1.6.7)
mime-types (>= 1.16)
rspec-expectations (2.99.1)
diff-lcs (>= 1.1.3, < 2.0)
+ rubocop (0.26.1)
+ astrolabe (~> 1.3)
+ parser (>= 2.2.0.pre.4, < 3.0)
+ powerpack (~> 0.0.6)
+ rainbow (>= 1.99.1, < 3.0)
+ ruby-progressbar (~> 1.4)
+ ruby-progressbar (1.6.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)
+ slop (3.6.0)
syntax (1.2.0)
watir-webdriver (0.6.10)
selenium-webdriver (>= 2.18.0)
@@ -60,3 +76,4 @@ PLATFORMS
DEPENDENCIES
mediawiki_selenium
+ rubocop
diff --git a/extensions/PdfHandler/PdfHandler.i18n.php b/extensions/PdfHandler/PdfHandler.i18n.php
deleted file mode 100644
index 46a34a6c..00000000
--- a/extensions/PdfHandler/PdfHandler.i18n.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-/**
- * This is a backwards-compatibility shim, generated by:
- * https://git.wikimedia.org/blob/mediawiki%2Fcore.git/HEAD/maintenance%2FgenerateJsonI18n.php
- *
- * Beginning with MediaWiki 1.23, translation strings are stored in json files,
- * and the EXTENSION.i18n.php file only exists to provide compatibility with
- * older releases of MediaWiki. For more information about this migration, see:
- * https://www.mediawiki.org/wiki/Requests_for_comment/Localisation_format
- *
- * This shim maintains compatibility back to MediaWiki 1.17.
- */
-$messages = array();
-if ( !function_exists( 'wfJsonI18nShim88f78f66a49810c2' ) ) {
- function wfJsonI18nShim88f78f66a49810c2( $cache, $code, &$cachedData ) {
- $codeSequence = array_merge( array( $code ), $cachedData['fallbackSequence'] );
- foreach ( $codeSequence as $csCode ) {
- $fileName = dirname( __FILE__ ) . "/i18n/$csCode.json";
- if ( is_readable( $fileName ) ) {
- $data = FormatJson::decode( file_get_contents( $fileName ), true );
- foreach ( array_keys( $data ) as $key ) {
- if ( $key === '' || $key[0] === '@' ) {
- unset( $data[$key] );
- }
- }
- $cachedData['messages'] = array_merge( $data, $cachedData['messages'] );
- }
-
- $cachedData['deps'][] = new FileDependency( $fileName );
- }
- return true;
- }
-
- $GLOBALS['wgHooks']['LocalisationCacheRecache'][] = 'wfJsonI18nShim88f78f66a49810c2';
-}
diff --git a/extensions/PdfHandler/PdfHandler.php b/extensions/PdfHandler/PdfHandler.php
index f4e15657..07ecd104 100644
--- a/extensions/PdfHandler/PdfHandler.php
+++ b/extensions/PdfHandler/PdfHandler.php
@@ -1,66 +1,14 @@
<?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 );
+if ( function_exists( 'wfLoadExtension' ) ) {
+ wfLoadExtension( 'PdfHandler' );
+ // Keep i18n globals so mergeMessageFileList.php doesn't break
+ $wgMessagesDirs['PdfHandler'] = __DIR__ . '/i18n';
+ /* wfWarn(
+ 'Deprecated PHP entry point used for PdfHandler extension. Please use wfLoadExtension instead, ' .
+ 'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
+ ); */
+ return true;
+} else {
+ die( 'This version of the PdfHandler extension requires MediaWiki 1.25+' );
}
-
-$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
index 2a08a95b..0b192bbb 100644
--- a/extensions/PdfHandler/PdfHandler_body.php
+++ b/extensions/PdfHandler/PdfHandler_body.php
@@ -22,6 +22,12 @@
*/
class PdfHandler extends ImageHandler {
+ static $messages = array(
+ 'main' => 'pdf-file-page-warning',
+ 'header' => 'pdf-file-page-warning-header',
+ 'info' => 'pdf-file-page-warning-info',
+ 'footer' => 'pdf-file-page-warning-footer',
+ );
/**
* @return bool
@@ -325,9 +331,10 @@ class PdfHandler extends ImageHandler {
/**
* @param $image File
+ * @param bool|IContextSource $context Context to use (optional)
* @return bool|int
*/
- function formatMetadata( $image ) {
+ function formatMetadata( $image, $context = false ) {
$meta = $image->getMetadata();
if ( !$meta ) {
@@ -345,7 +352,7 @@ class PdfHandler extends ImageHandler {
}
// Inherited from MediaHandler.
- return $this->formatMetadataHelper( $meta['mergedMetadata'] );
+ return $this->formatMetadataHelper( $meta['mergedMetadata'], $context );
}
/**
@@ -383,4 +390,27 @@ class PdfHandler extends ImageHandler {
return $data['text'][$page - 1];
}
+ /**
+ * Adds a warning about PDFs being potentially dangerous to the file
+ * page. Multiple messages with this base will be used.
+ * @param File $file
+ * @return array
+ */
+ function getWarningConfig( $file ) {
+ return array(
+ 'messages' => self::$messages,
+ 'link' => '//www.mediawiki.org/wiki/Special:MyLanguage/Help:Security/PDF_files',
+ 'module' => 'pdfhandler.messages',
+ );
+ }
+
+ /**
+ * Register a module with the warning messages in it.
+ * @param &$resourceLoader ResourceLoader
+ */
+ static function registerWarningModule( &$resourceLoader ) {
+ $resourceLoader->register( 'pdfhandler.messages', array(
+ 'messages' => array_values( self::$messages ),
+ ) );
+ }
}
diff --git a/extensions/PdfHandler/extension.json b/extensions/PdfHandler/extension.json
new file mode 100644
index 00000000..0736ee8e
--- /dev/null
+++ b/extensions/PdfHandler/extension.json
@@ -0,0 +1,45 @@
+{
+ "name": "PDF Handler",
+ "author": [
+ "Martin Seidel",
+ "Mike Połtyn"
+ ],
+ "url": "https://www.mediawiki.org/wiki/Extension:PdfHandler",
+ "descriptionmsg": "pdf-desc",
+ "license-name": "GPL-2.0+",
+ "type": "media",
+ "config": {
+ "PdfOutputExtension": "jpg",
+ "PdfHandlerDpi": 150,
+ "PdfCreateThumbnailsInJobQueue": false,
+ "PdfPostProcessor": "convert",
+ "PdfHandlerJpegQuality": 95,
+ "PdftoText": "pdftotext",
+ "PdfProcessor": "gs",
+ "PdfInfo": "pdfinfo"
+ },
+ "MessagesDirs": {
+ "PdfHandler": [
+ "i18n"
+ ]
+ },
+ "Hooks": {
+ "UploadVerifyFile": [
+ "CreatePdfThumbnailsJob::insertJobs"
+ ],
+ "ResourceLoaderRegisterModules": [
+ "PdfHandler::registerWarningModule"
+ ]
+ },
+ "JobClasses": {
+ "createPdfThumbnailsJob": "CreatePdfThumbnailsJob"
+ },
+ "MediaHandlers": {
+ "application/pdf": "PdfHandler"
+ },
+ "AutoloadClasses": {
+ "PdfImage": "PdfHandler.image.php",
+ "PdfHandler": "PdfHandler_body.php",
+ "CreatePdfThumbnailsJob": "CreatePdfThumbnailsJob.class.php"
+ }
+}
diff --git a/extensions/PdfHandler/i18n/de.json b/extensions/PdfHandler/i18n/de.json
index ea9c169d..858706fd 100644
--- a/extensions/PdfHandler/i18n/de.json
+++ b/extensions/PdfHandler/i18n/de.json
@@ -7,6 +7,10 @@
]
},
"pdf-desc": "Stellt eine Schnittstelle zur Ansicht von PDF-Dateien im Bildermodus bereit",
+ "pdf-file-page-warning": "PDF ist ein komplexes Format, das in bestimmten Fällen einige deiner privaten Informationen preisgeben kann. Stelle sicher, dass du deinen PDF-Betrachter auf sichere Weise konfigurierst.",
+ "pdf-file-page-warning-header": "Datenschutz-Berücksichtigungen",
+ "pdf-file-page-warning-footer": "Dieses Problem ist nicht speziell für diese bestimmte Datei, aber ein generelles Problem mit dem PDF-Format.",
+ "pdf-file-page-warning-info": "Erfahre mehr über dieses Problem.",
"pdf_no_metadata": "Keine Metadaten im PDF vorhanden.",
"pdf_page_error": "Seitenzahl außerhalb des Dokumentes.",
"exif-pdf-producer": "Umwandlungsprogramm",
diff --git a/extensions/PdfHandler/i18n/en.json b/extensions/PdfHandler/i18n/en.json
index 18bdff89..20ad5dbe 100644
--- a/extensions/PdfHandler/i18n/en.json
+++ b/extensions/PdfHandler/i18n/en.json
@@ -3,10 +3,14 @@
"authors": []
},
"pdf-desc": "Handler for viewing PDF files in image mode.",
+ "pdf-file-page-warning": "PDF is a complex format that may expose some of your private information in some cases. Make sure to configure your PDF viewer in a safe way.",
+ "pdf-file-page-warning-header": "Privacy considerations",
+ "pdf-file-page-warning-footer": "This issue is not specific to this particular file, but a general issue with the PDF format.",
+ "pdf-file-page-warning-info": "Learn more about this issue.",
"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/es.json b/extensions/PdfHandler/i18n/es.json
index c658bf30..bda980d6 100644
--- a/extensions/PdfHandler/i18n/es.json
+++ b/extensions/PdfHandler/i18n/es.json
@@ -2,10 +2,15 @@
"@metadata": {
"authors": [
"Armando-Martin",
- "Sanbec"
+ "Sanbec",
+ "Macofe"
]
},
"pdf-desc": "Manejador para ver archivos PDF en modo imagen",
+ "pdf-file-page-warning": "PDF es un formato complejo que puede exponer alguna información privada en algunos casos. Asegúrate de configurar tu lector de PDF de una manera segura.",
+ "pdf-file-page-warning-header": "Consideraciones de privacidad",
+ "pdf-file-page-warning-footer": "Este problema no es específico de este archivo en particular, sino un problema general con el formato PDF.",
+ "pdf-file-page-warning-info": "Más información sobre este problema.",
"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",
diff --git a/extensions/PdfHandler/i18n/et.json b/extensions/PdfHandler/i18n/et.json
index 7cebfda7..e062e58c 100644
--- a/extensions/PdfHandler/i18n/et.json
+++ b/extensions/PdfHandler/i18n/et.json
@@ -6,6 +6,10 @@
]
},
"pdf-desc": "Töötleja PDF-failide piltidena kuvamiseks",
+ "pdf-file-page-warning": "PDF on keeruline vorming, mis võib mõnel juhul paljastada isiklikku teavet. Veendu, et sinu PDF-failide vaatur on häälestatud turvaliselt.",
+ "pdf-file-page-warning-header": "Andmekaitse kaalutlused",
+ "pdf-file-page-warning-footer": "See küsimus puudutab PDF-vormingut üldiselt, mitte ei käi selle kindla faili kohta.",
+ "pdf-file-page-warning-info": "Lisateave selle küsimuse kohta.",
"pdf_no_metadata": "Ei õnnestu PDF-faili meta-andmeid saada",
"pdf_page_error": "Leheküljenumber pole vahemikus.",
"exif-pdf-producer": "Teisendusprogramm",
diff --git a/extensions/PdfHandler/i18n/frc.json b/extensions/PdfHandler/i18n/frc.json
new file mode 100644
index 00000000..f788c1c9
--- /dev/null
+++ b/extensions/PdfHandler/i18n/frc.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Stisc-14"
+ ]
+ },
+ "pdf-file-page-warning-footer": "La question est pas spécifique à ce dossier, mais une question générale avec le format PDF."
+}
diff --git a/extensions/PdfHandler/i18n/he.json b/extensions/PdfHandler/i18n/he.json
index 1569df31..d82f6a59 100644
--- a/extensions/PdfHandler/i18n/he.json
+++ b/extensions/PdfHandler/i18n/he.json
@@ -7,7 +7,11 @@
]
},
"pdf-desc": "טיפול בצפייה בקובצי PDF במצב תמונה",
- "pdf_no_metadata": "לא ניתן לאחזר את נתוני המסמך מה־PDF",
+ "pdf-file-page-warning": "PDF הוא תסדיר קובץ מורכב שיכול לחשוף חלק מהמידע שלך במקרים מסוימים. נא לוודא שהגדרת את מציג ה־PDF באופן בטוח.",
+ "pdf-file-page-warning-header": "שיקולי פרטיות",
+ "pdf-file-page-warning-footer": "הבעיה הזאת אינה ייחודית לקובץ הזה, אלא כללית לתסדיר PDF.",
+ "pdf-file-page-warning-info": "מידע נוסף על הבעיה הזאת.",
+ "pdf_no_metadata": "לא ניתן לאחזר מטא־נתונים מה־PDF.",
"pdf_page_error": "מספר הדף אינו בטווח",
"exif-pdf-producer": "תוכנת המרה",
"exif-pdf-version": "הגרסה של תסדיר PDF",
diff --git a/extensions/PdfHandler/i18n/ksh.json b/extensions/PdfHandler/i18n/ksh.json
index 75347d70..8901e25c 100644
--- a/extensions/PdfHandler/i18n/ksh.json
+++ b/extensions/PdfHandler/i18n/ksh.json
@@ -5,10 +5,14 @@
]
},
"pdf-desc": "Määd et möjjelesch, PDF-Dateie wie Bellder ze beloore.",
+ "pdf-file-page-warning": "<i lang=\"en\" xml:lang=\"en\" dir=\"ltr\" title=\"Portable Document Format\">PDF</i> es en öpwändesch Dattei_Fommahd un kann onger Ömschtände jebruch wähde, öm päsöhnlejje Dahte vun Der ußzeschpejonihre.\nDonn Ding Projramm för <i lang=\"en\" xml:lang=\"en\" dir=\"ltr\" title=\"Portable Document Format\">PDF</i>-Datteije aanzezeije esu enschtälle, dat dat nit passehre kann, wann De nit meins „Driiß jät drop“",
+ "pdf-file-page-warning-header": "Zom Schoz vun päsöhnlesche Dahte",
+ "pdf-file-page-warning-footer": "Dat hädd och nix met heh dä beschtemmpte Dattei ze donn, ed es esu för jehde Dattei em <i lang=\"en\" xml:lang=\"en\" dir=\"ltr\" title=\"Portable Document Format\">PDF</i>-Fommaht.",
+ "pdf-file-page-warning-info": "Donn mih övver dat Jannze lässe.",
"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"
+ "exif-pdf-pagesize": "Dä Sigg(e) ier Jrüüße <--\nhttps://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Exif-pdf-pagesize/ksh\nhttps://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Exif-pdf-pagesize\n-->"
}
diff --git a/extensions/PdfHandler/i18n/ku-latn.json b/extensions/PdfHandler/i18n/ku-latn.json
new file mode 100644
index 00000000..bb82cb9d
--- /dev/null
+++ b/extensions/PdfHandler/i18n/ku-latn.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Bikarhêner"
+ ]
+ },
+ "pdf-file-page-warning-info": "Di vî mijare de hinêkî din agahî bistine."
+}
diff --git a/extensions/PdfHandler/i18n/lb.json b/extensions/PdfHandler/i18n/lb.json
index 36a9a88f..8248a240 100644
--- a/extensions/PdfHandler/i18n/lb.json
+++ b/extensions/PdfHandler/i18n/lb.json
@@ -5,6 +5,7 @@
]
},
"pdf-desc": "\"Programm\" den et erméiglecht PDF-Fichieren als Bild ze kucken",
+ "pdf-file-page-warning-info": "Méi iwwer dëse Sujet gewuer ginn.",
"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",
diff --git a/extensions/PdfHandler/i18n/lrc.json b/extensions/PdfHandler/i18n/lrc.json
index b0f7f5ef..f8fabc8a 100644
--- a/extensions/PdfHandler/i18n/lrc.json
+++ b/extensions/PdfHandler/i18n/lrc.json
@@ -4,5 +4,7 @@
"Mogoeilor"
]
},
+ "exif-pdf-producer": "برنامه چک چنه",
+ "exif-pdf-version": "نسقه قالو پی دی اف",
"exif-pdf-pagesize": "انازه بلگه"
}
diff --git a/extensions/PdfHandler/i18n/mk.json b/extensions/PdfHandler/i18n/mk.json
index 30232e1f..b858002d 100644
--- a/extensions/PdfHandler/i18n/mk.json
+++ b/extensions/PdfHandler/i18n/mk.json
@@ -6,6 +6,10 @@
]
},
"pdf-desc": "Ракувач за прегледување PDF податотеки во сликовен режим",
+ "pdf-file-page-warning": "PDF е сложен формат кој, во некои случаи, може да изложи некои од вашите лични податоци. Не заборавајте да ги наместите безбедносните поставки на прегледувачот на PDF.",
+ "pdf-file-page-warning-header": "За личните податоци",
+ "pdf-file-page-warning-footer": "Проблемов не се однесува на оваа дадена податотека, туку претставува начелен проблем со форматот PDF воопшто.",
+ "pdf-file-page-warning-info": "Дознајте повеќе за проблемов.",
"pdf_no_metadata": "Не може да се земат метаподатоци од PDF",
"pdf_page_error": "Бројот на страница е надвор од опсег",
"exif-pdf-producer": "Програм за претворање",
diff --git a/extensions/PdfHandler/i18n/pl.json b/extensions/PdfHandler/i18n/pl.json
index 1eed58a3..c9f3eac8 100644
--- a/extensions/PdfHandler/i18n/pl.json
+++ b/extensions/PdfHandler/i18n/pl.json
@@ -3,10 +3,13 @@
"authors": [
"Holek",
"Matma Rex",
- "Sp5uhe"
+ "Sp5uhe",
+ "VerMa"
]
},
"pdf-desc": "Konwerter graficznego podglądu plików PDF",
+ "pdf-file-page-warning-footer": "Ten problem nie dotyczy tylko tego pliku, lecz formatu PDF w ogóle.",
+ "pdf-file-page-warning-info": "Dowiedz się więcej o tym problemie.",
"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",
diff --git a/extensions/PdfHandler/i18n/pt.json b/extensions/PdfHandler/i18n/pt.json
index 35d892f8..65d41e3e 100644
--- a/extensions/PdfHandler/i18n/pt.json
+++ b/extensions/PdfHandler/i18n/pt.json
@@ -3,10 +3,15 @@
"authors": [
"Hamilton Abreu",
"Malafaya",
- "Vitorvicentevalente"
+ "Vitorvicentevalente",
+ "Fabulous"
]
},
"pdf-desc": "Manuseador de visionamento de ficheiros PDF em modo de imagem",
+ "pdf-file-page-warning": "O PDF é um formato complexo que pode expor algumas das suas informações privadas, em alguns casos. Certifique-se de configurar o seu visualizador de PDF de uma forma segura.",
+ "pdf-file-page-warning-header": "Considerações de privacidade",
+ "pdf-file-page-warning-footer": "Este problema não é específico para este tipo de ficheiro, mas uma questão geral com o formato PDF.",
+ "pdf-file-page-warning-info": "Saiba mais sobre este problema.",
"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",
diff --git a/extensions/PdfHandler/i18n/qqq.json b/extensions/PdfHandler/i18n/qqq.json
index 0d657592..39af89f8 100644
--- a/extensions/PdfHandler/i18n/qqq.json
+++ b/extensions/PdfHandler/i18n/qqq.json
@@ -3,10 +3,11 @@
"authors": [
"Purodha",
"Shirayuki",
- "The Evil IP address"
+ "The Evil IP address",
+ "Umherirrender"
]
},
- "pdf-desc": "{{desc|name=Pdf Handler|url=http://www.mediawiki.org/wiki/Extension:PdfHandler}}",
+ "pdf-desc": "{{desc|name=Pdf Handler|url=https://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}}).",
diff --git a/extensions/PdfHandler/i18n/sv.json b/extensions/PdfHandler/i18n/sv.json
index 2ba54aea..fe32c86c 100644
--- a/extensions/PdfHandler/i18n/sv.json
+++ b/extensions/PdfHandler/i18n/sv.json
@@ -6,6 +6,7 @@
]
},
"pdf-desc": "Hantering av PDF-visning i bildläge",
+ "pdf-file-page-warning-info": "Läs mer om det här problemet.",
"pdf_no_metadata": "Kan inte hämta metadata från PDF",
"pdf_page_error": "Sidnummer överstiger antal sidor i dokumentet",
"exif-pdf-producer": "Konverteringsprogram",
diff --git a/extensions/PdfHandler/i18n/zh-hans.json b/extensions/PdfHandler/i18n/zh-hans.json
index 3b789624..df3681b1 100644
--- a/extensions/PdfHandler/i18n/zh-hans.json
+++ b/extensions/PdfHandler/i18n/zh-hans.json
@@ -2,10 +2,15 @@
"@metadata": {
"authors": [
"Shirayuki",
- "Yfdyh000"
+ "Yfdyh000",
+ "Liuxinyu970226"
]
},
"pdf-desc": "在图像模式中查看PDF文件的处理器。",
+ "pdf-file-page-warning": "PDF是一个复杂格式,它在某些情况下会暴露您的私人信息。确保您的PDF阅读器配置安全。",
+ "pdf-file-page-warning-header": "隐私考虑",
+ "pdf-file-page-warning-footer": "此问题不只发生在此问题上,还是PDF格式的普遍问题。",
+ "pdf-file-page-warning-info": "了解关于此问题的更多信息。",
"pdf_no_metadata": "无法在PDF中获取元数据。",
"pdf_page_error": "页数不在范围内。",
"exif-pdf-producer": "转换程序",