mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/PdfHandler
synced 2024-11-28 10:11:08 +00:00
21e92330a0
* Use a nice simple PHP array instead of constructing unnecessary XML. This removes the dependency on PHP 5.1.3 for a SimpleXML method. * Tell pdfinfo to give us metadata encoded in UTF-8. If we start outputting title and creator info this will be nice! * Tell pdfinfo to give us page size information for all pages (at least through page 99999 :) rather than just the first page * Make use of that per-page size information so we can properly render pages of differing size. Without this, they get stretched or squooshed in interesting days. * Rename the pdf_no_xml message to pdf_no_metadata (in English)
142 lines
3.9 KiB
PHP
142 lines
3.9 KiB
PHP
<?php
|
||
/**
|
||
* Internationalisation file for extension PdfHandler.
|
||
*
|
||
* @addtogroup Extensions
|
||
*/
|
||
|
||
$messages = array();
|
||
|
||
$messages['en'] = array(
|
||
'pdf_no_metadata' => 'Cannot get metadata from PDF',
|
||
'pdf_page_error' => 'Page number not in range',
|
||
);
|
||
|
||
$messages['ar'] = array(
|
||
'pdf_no_xml' => 'لم يمكن أخذ معلومات ميتا من pdf',
|
||
'pdf_page_error' => 'رقم الصفحة ليس في النطاق',
|
||
);
|
||
|
||
/** Bulgarian (Български)
|
||
* @author DCLXVI
|
||
*/
|
||
$messages['bg'] = array(
|
||
'pdf_no_xml' => 'невъзможно е да бъдат извлечени метаданни от pdf',
|
||
);
|
||
|
||
$messages['de'] = array(
|
||
'pdf_no_xml' => 'Keine Metadaten im PDF vorhanden.',
|
||
'pdf_page_error' => 'Seitenzahl außerhalb des Dokumentes.',
|
||
);
|
||
|
||
$messages['fr'] = array(
|
||
'pdf_no_xml' => 'Ne peut obtenir les métadonnées du fichier PDF',
|
||
'pdf_page_error' => 'Le numéro de page n\'est pas dans l\'étendue.',
|
||
);
|
||
|
||
$messages['gl'] = array(
|
||
'pdf_no_xml' => 'non se puideron obter os metadatos do pdf',
|
||
'pdf_page_error' => 'o número de páxina non está no rango',
|
||
);
|
||
|
||
$messages['hsb'] = array(
|
||
'pdf_no_xml' => 'W pdf žane metadaty njejsu.',
|
||
'pdf_page_error' => 'Ličba strony zwonka dokumenta.',
|
||
);
|
||
|
||
/** Hungarian (Magyar)
|
||
* @author Bdanee
|
||
*/
|
||
$messages['hu'] = array(
|
||
'pdf_no_xml' => 'nem sikerült lekérni a pdf metaadatait',
|
||
'pdf_page_error' => 'az oldalszám a tartományon kívül esik',
|
||
);
|
||
|
||
/** Luxembourgish (Lëtzebuergesch)
|
||
* @author Robby
|
||
*/
|
||
$messages['lb'] = array(
|
||
'pdf_no_xml' => 'Meta-Informatiounen aus dem PDF Dokument kënne net gelies ginn',
|
||
'pdf_page_error' => 'Déi Säitenzuel gëtt et an dem Dokument net.',
|
||
);
|
||
|
||
$messages['nl'] = array(
|
||
'pdf_no_xml' => 'de metadata van de PDF kan niet uitgelezen worden',
|
||
'pdf_page_error' => 'paginanummer komt niet voor in document',
|
||
);
|
||
|
||
$messages['no'] = array(
|
||
'pdf_no_xml' => 'kan ikke hente metadata fra PDF',
|
||
'pdf_page_error' => 'sidenummer ikke innen rekkevidde',
|
||
);
|
||
|
||
/** Occitan (Occitan)
|
||
* @author Cedric31
|
||
*/
|
||
$messages['oc'] = array(
|
||
'pdf_no_xml' => 'Pòt pas obténer las metadonadas del fichièr PDF',
|
||
'pdf_page_error' => "Lo numèro de pagina es pas dins l'espandida.",
|
||
);
|
||
|
||
$messages['pl'] = array(
|
||
'pdf_no_xml' => 'nie można pobrać metadanych z pliku PDF',
|
||
'pdf_page_error' => 'numer strony poza zakresem',
|
||
);
|
||
|
||
$messages['pms'] = array(
|
||
'pdf_no_xml' => 'as peulo nen pijesse ij metadat dal pdf',
|
||
'pdf_page_error' => 'ël nùmer ëd pàgina a resta fòra da cole ch\'a-i son',
|
||
);
|
||
|
||
$messages['pt'] = array(
|
||
'pdf_no_xml' => 'não foi possível obter os metadados do pdf',
|
||
'pdf_page_error' => 'página indisponível neste intervalo',
|
||
);
|
||
|
||
/** Russian (Русский)
|
||
* @author .:Ajvol:.
|
||
*/
|
||
$messages['ru'] = array(
|
||
'pdf_no_xml' => 'невозможно получить метаданные из PDF',
|
||
'pdf_page_error' => 'номер страницы вне диапазона',
|
||
);
|
||
|
||
/** Slovak (Slovenčina)
|
||
* @author Helix84
|
||
*/
|
||
$messages['sk'] = array(
|
||
'pdf_no_xml' => 'nie je možné získať metadáta z pdf',
|
||
'pdf_page_error' => 'číslo stránky nie je v intervale',
|
||
);
|
||
|
||
/** Seeltersk (Seeltersk)
|
||
* @author Pyt
|
||
*/
|
||
$messages['stq'] = array(
|
||
'pdf_no_xml' => 'Neen Metadoaten in dät PDF deer.',
|
||
'pdf_page_error' => 'Siedentaal buute dät Dokument.',
|
||
);
|
||
|
||
$messages['yue'] = array(
|
||
'pdf_no_xml' => '唔能夠響PDF度拎metadata',
|
||
'pdf_page_error' => '頁數唔響範圍度',
|
||
);
|
||
|
||
$messages['zh-hans'] = array(
|
||
'pdf_no_xml' => '无法在PDF中撷取元数据',
|
||
'pdf_page_error' => '页数不在范围中',
|
||
);
|
||
|
||
$messages['zh-hant'] = array(
|
||
'pdf_no_xml' => '無法在PDF中擷取元數據',
|
||
'pdf_page_error' => '頁數不在範圍中',
|
||
);
|
||
|
||
$messages['de-formal'] = $messages['de'];
|
||
$messages['zh'] = $messages['zh-hans'];
|
||
$messages['zh-cn'] = $messages['zh-hans'];
|
||
$messages['zh-hk'] = $messages['zh-hant'];
|
||
$messages['zh-sg'] = $messages['zh-hans'];
|
||
$messages['zh-tw'] = $messages['zh-hant'];
|
||
$messages['zh-yue'] = $messages['yue'];
|