1
0
Fork 0
mirror of https://github.com/Oreolek/pdfbook.git synced 2024-04-26 22:29:25 +03:00

Initial commit - files extracted

This commit is contained in:
Alexander Yakovlev 2017-04-09 14:26:10 +07:00
commit 539c2ba5ef
64 changed files with 861 additions and 0 deletions

220
PdfBook.hooks.php Executable file
View file

@ -0,0 +1,220 @@
<?php
class PdfBookHooks {
public static function onRegistration() {
global $wgLogTypes, $wgLogNames, $wgLogHeaders, $wgLogActions;
$wgLogTypes[] = 'pdf';
$wgLogNames ['pdf'] = 'pdflogpage';
$wgLogHeaders['pdf'] = 'pdflogpagetext';
$wgLogActions['pdf/book'] = 'pdflogentry';
}
/**
* Perform the export operation
*/
public static function onUnknownAction( $action, $article ) {
global $wgOut, $wgUser, $wgParser, $wgRequest, $wgAjaxComments, $wgPdfBookDownload;
global $wgServer, $wgArticlePath, $wgScriptPath, $wgUploadPath, $wgUploadDirectory, $wgScript;
if( $action == 'pdfbook' ) {
$title = $article->getTitle();
$book = $title->getText();
$opt = ParserOptions::newFromUser( $wgUser );
// Log the export
$msg = wfMessage( 'pdfbook-log', $wgUser->getUserPage()->getPrefixedText() )->text();
$log = new LogPage( 'pdf', false );
$log->addEntry( 'book', $article->getTitle(), $msg );
// Initialise PDF variables
$format = self::setProperty( 'format', '', '' );
$nothumbs = self::setProperty( 'nothumbs', '', '' );
$notitle = self::setProperty( 'notitle', '', '' );
$comments = $wgAjaxComments ? self::setProperty( 'comments', '', false ) : '';
$layout = $format == 'single' ? '--webpage' : '--firstpage toc';
$charset = self::setProperty( 'Charset', 'iso-8859-1' );
$left = self::setProperty( 'LeftMargin', '1cm' );
$right = self::setProperty( 'RightMargin', '1cm' );
$top = self::setProperty( 'TopMargin', '1cm' );
$bottom = self::setProperty( 'BottomMargin','1cm' );
$font = self::setProperty( 'Font', 'Arial' );
$size = self::setProperty( 'FontSize', '8' );
$ls = self::setProperty( 'LineSpacing', 1 );
$linkcol = self::setProperty( 'LinkColour', '217A28' );
$levels = self::setProperty( 'TocLevels', '2' );
$exclude = self::setProperty( 'Exclude', array() );
$width = self::setProperty( 'Width', '' );
$options = self::setProperty( 'Options', '' );
$width = $width ? "--browserwidth $width" : '';
if( !is_array( $exclude ) ) $exclude = preg_split( '\\s*,\\s*', $exclude );
// Generate a list of the articles involved in this doc
// - this is unconditional so that it can be used in cache key generation
// Select articles from members if a category or links in content if not
if( $format == 'single' || $format == 'html' ) $articles = array( $title );
else {
$articles = array();
if( $title->getNamespace() == NS_CATEGORY ) {
$db = wfGetDB( DB_SLAVE );
$cat = $db->addQuotes( $title->getDBkey() );
$result = $db->select(
'categorylinks',
'cl_from',
"cl_to = $cat",
'PdfBook',
array( 'ORDER BY' => 'cl_sortkey' )
);
if( $result instanceof ResultWrapper ) $result = $result->result;
while( $row = $db->fetchRow( $result ) ) $articles[] = Title::newFromID( $row[0] );
} else {
$text = $article->getPage()->getContent()->getNativeData();
$text = $wgParser->preprocess( $text, $title, $opt );
if( preg_match_all( "/^\\*\\s*\\[{2}\\s*([^\\|\\]]+)\\s*.*?\\]{2}/m", $text, $links ) ) {
foreach( $links[1] as $link ) $articles[] = Title::newFromText( $link );
}
}
}
// Create a cache filename from the query-string parameters and the revision ID's of all the source articles
$cache = json_encode( $_GET );
foreach( $articles as $title ) $cache .= '-' . $title->getLatestRevID();
$cache = $wgUploadDirectory . '/pdf-book-cache-' . md5( $cache );
// If the file doesn't exist, render the content now
if( !file_exists( $cache ) ) {
// Format the article(s) as a single HTML document with absolute URL's
$html = '';
$wgArticlePath = $wgServer . $wgArticlePath;
$wgPdfBookTab = false;
$wgScriptPath = $wgServer . $wgScriptPath;
$wgUploadPath = $wgServer . $wgUploadPath;
$wgScript = $wgServer . $wgScript;
foreach( $articles as $title ) {
$ttext = $title->getPrefixedText();
if( !in_array( $ttext, $exclude ) ) {
$article = new Article( $title );
$text = $article->getPage()->getContent()->getNativeData();
$text = preg_replace( "/<!--([^@]+?)-->/s", "@@" . "@@$1@@" . "@@", $text ); // preserve HTML comments
if( $format != 'single' ) $text .= "__NOTOC__";
$opt->setEditSection( false ); // remove section-edit links
$out = $wgParser->parse( $text, $title, $opt, true, true );
$text = $out->getText();
if( $format == 'html' ) {
$text = preg_replace( "|(<img[^>]+?src=\")(/.+?>)|", "$1$wgServer$2", $text ); // make image urls absolute
} else {
$pUrl = parse_url( $wgScriptPath ) ;
$imgpath = str_replace( '/' , '\/', $pUrl['path'] . '/' . basename( $wgUploadDirectory ) ) ; // the image's path
$text = preg_replace( "|(<img[^>]+?src=\"$imgpath)(/.+?>)|", "<img src=\"$wgUploadDirectory$2", $text );
}
if( $nothumbs == 'true') $text = preg_replace( "|images/thumb/(\w+/\w+/[\w\.\-]+).*\"|", "images/$1\"", $text ); // Convert image links from thumbnail to full-size
$text = preg_replace( "|<div\s*class=['\"]?noprint[\"']?>.+?</div>|s", "", $text ); // non-printable areas
$text = preg_replace( "|@{4}([^@]+?)@{4}|s", "<!--$1-->", $text ); // HTML comments hack
$ttext = basename( $ttext );
$h1 = $notitle ? "" : "<center><h1>$ttext</h1></center>";
// Add comments if selected and AjaxComments is installed
if( $comments ) {
$comments = $wgAjaxComments->onUnknownAction( 'ajaxcommentsinternal', $article );
}
$html .= utf8_decode( "$h1$text\n$comments" );
}
}
// Build the cache file
if( $format == 'html' ) file_put_contents( $cache, $html );
else {
// Write the HTML to a tmp file
if( !is_dir( $wgUploadDirectory ) ) mkdir( $wgUploadDirectory );
$file = $wgUploadDirectory . '/' . uniqid( 'pdf-book' );
file_put_contents( $file, $html );
// Build the htmldoc command
$footer = $format == 'single' ? "..." : ".1.";
$toc = $format == 'single' ? "" : " --toclevels $levels";
$cmd = "--left $left --right $right --top $top --bottom $bottom"
. " --header ... --footer $footer --headfootsize 8 --quiet --jpeg --color"
. " --bodyfont $font --fontsize $size --fontspacing $ls --linkstyle plain --linkcolor $linkcol"
. "$toc --no-title --numbered --charset $charset $options $layout $width";
$cmd = $format == 'htmltoc'
? "htmldoc -t html --format html $cmd \"$file\" "
: "htmldoc -t pdf --format pdf14 $cmd \"$file\" ";
// Execute the command outputting to the cache file
putenv( "HTMLDOC_NOCGI=1" );
shell_exec( "$cmd > \"$cache\"" );
unlink( $file );
}
}
// Output the cache file
$wgOut->disable();
if( $format == 'html' || $format == 'htmltoc' ) {
header( "Content-Type: text/html" );
header( "Content-Disposition: attachment; filename=\"$book.html\"" );
} else {
header( "Content-Type: application/pdf" );
if( $wgPdfBookDownload ) header( "Content-Disposition: attachment; filename=\"$book.pdf\"" );
else header( "Content-Disposition: inline; filename=\"$book.pdf\"" );
}
readfile( $cache );
return false;
}
return true;
}
/**
* Return a sanitised property for htmldoc using global, request or passed default
*/
private static function setProperty( $name, $val, $prefix = 'pdf' ) {
global $wgRequest;
if( $wgRequest->getText( "$prefix$name" ) ) $val = $wgRequest->getText( "$prefix$name" );
if( $wgRequest->getText( "amp;$prefix$name" ) ) $val = $wgRequest->getText( "amp;$prefix$name" ); // hack to handle ampersand entities in URL
if( isset( $GLOBALS["wgPdfBook$name"] ) ) $val = $GLOBALS["wgPdfBook$name"];
return preg_replace( '|[^-_:.a-z0-9]|i', '', $val );
}
/**
* Add PDF to actions tabs in MonoBook based skins
*/
public static function onSkinTemplateTabs( $skin, &$actions) {
global $wgPdfBookTab, $wgUser;
if( $wgPdfBookTab && $wgUser->isLoggedIn() ) {
$actions['pdfbook'] = array(
'class' => false,
'text' => wfMessage( 'pdfbook-action' )->text(),
'href' => self::actionLink( $skin )
);
}
return true;
}
/**
* Add PDF to actions tabs in vector based skins
*/
public static function onSkinTemplateNavigation( $skin, &$actions ) {
global $wgPdfBookTab, $wgUser;
if( $wgPdfBookTab && $wgUser->isLoggedIn() ) {
$actions['views']['pdfbook'] = array(
'class' => false,
'text' => wfMessage( 'pdfbook-action' )->text(),
'href' => self::actionLink( $skin )
);
}
return true;
}
/**
* Get the URL for the action link
*/
public static function actionLink( $skin ) {
$qs = 'action=pdfbook&format=single';
foreach( $_REQUEST as $k => $v ) if( $k != 'title' ) $qs .= "&$k=$v";
return $skin->getTitle()->getLocalURL( $qs );
}
}

3
README.md Normal file
View file

@ -0,0 +1,3 @@
PDFBook extension for Mediawiki
Extracted from https://github.com/OrganicDesign/extensions

25
extension.json Normal file
View file

@ -0,0 +1,25 @@
{
"name": "PdfBook",
"version": "1.5.0, 2016-12-01",
"author": ["[http://www.organicdesign.co.nz/aran Aran Dunkley]"],
"url": "http://www.mediawiki.org/wiki/Extension:TreeAndMenu",
"description": "pdfbook-desc",
"license-name": "[https://www.gnu.org/licenses/gpl-2.0.html GNU General Public Licence 2.0] or later",
"type": "parserhook",
"callback": "PdfBookHooks::onRegistration",
"config": {
"wgPdfBookTab": false, "@": "Whether or not an action tab is wanted for printing to PDF",
"wgPdfBookDownload": true, "@": "Whether the files should be downloaded or view in-browser"
},
"Hooks": {
"UnknownAction": ["PdfBookHooks::onUnknownAction"],
"SkinTemplateTabs": ["PdfBookHooks::onSkinTemplateTabs"],
"SkinTemplateNavigation": ["PdfBookHooks::onSkinTemplateNavigation"]
},
"AutoloadClasses": {
"PdfBookHooks": "PdfBook.hooks.php"
},
"MessagesDirs": {
"PdfBook": ["i18n"]
}
}

10
i18n/af.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Naudefj"
]
},
"pdfbook-action": "Druk as PDF",
"pdfbook-log": "$1 is as 'n PDF-boek geëksporteer",
"pdfbook-desc": "Maak 'n boek van bladsye in 'n kategorie en eksporteer as 'n PDF-boek"
}

10
i18n/ast.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Xuacu"
]
},
"pdfbook-action": "Esportar a PDF...",
"pdfbook-log": "$1 esportáu como llibru en PDF",
"pdfbook-desc": "Compón un llibru a partir de páxines d'una categoría y lu esporta como llibru PDF"
}

11
i18n/be-tarask.json Normal file
View file

@ -0,0 +1,11 @@
{
"@metadata": {
"authors": [
"EugeneZelenko",
"Wizardist"
]
},
"pdfbook-action": "Друкаваць у фармаце PDF",
"pdfbook-log": "$1 экспартаваная як кніга ў фармаце PDF",
"pdfbook-desc": "Стварае кнігу са старонак у катэгорыі і экспартуе яе ў фармат PDF"
}

10
i18n/bn.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Bellayet",
"Wikitanvir"
]
},
"pdfbook-action": "পিডিএফ হিসেবে মুদ্রণ",
"pdfbook-log": "$1 পিডিএফ বই হিসেবে তৈরিকৃত"
}

10
i18n/br.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Y-M D"
]
},
"pdfbook-action": "Moullañ er furmad PDF",
"pdfbook-log": "$1 enporzhiet dindan stumm ul levr PDF",
"pdfbook-desc": "A sav ul levr adalek pajennoù ur rummad hag ec'h enporzh anezhañ evel ul levr er furmad PDF"
}

10
i18n/bs.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"CERminator"
]
},
"pdfbook-action": "Štampaj kao PDF",
"pdfbook-log": "$1 izvezena kao PDF knjiga",
"pdfbook-desc": "Sastavlja knjigu od stranica u kategoriji i izvozi ih kao PDF knjigu"
}

10
i18n/ca.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Aleator"
]
},
"pdfbook-action": "Imprimeix com a PDF",
"pdfbook-log": "$1 exportat com a llibre PDF",
"pdfbook-desc": "Compon un llibre a partir de pàgines en una categoria i ho exporta com a llibre PDF"
}

10
i18n/ce.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Sasan700"
]
},
"pdfbook-action": "Зорба оц PDF",
"pdfbook-log": "$1 арадаькхина PDF-жайна санна",
"pdfbook-desc": "Кадегари агlонех кхуллу жайна, PDF бараме дерзош"
}

10
i18n/cy.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Lloffiwr"
]
},
"pdfbook-action": "Argraffu ar ffurf PDF",
"pdfbook-log": "Mae $1 wedi allforio'r llyfr ar ffurf PDF",
"pdfbook-desc": "Yn defnyddio tudalennau o rhyw gategori i lunio llyfr, ac allforio hwnnw ar ffurf llyfr PDF"
}

10
i18n/da.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Peter Alberti"
]
},
"pdfbook-action": "Udskriv som PDF",
"pdfbook-log": "$1 eksporteret som en PDF-bog",
"pdfbook-desc": "Sammensætter en bog fra siderne i en kategori og eksporterer den som PDF"
}

10
i18n/de.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Kghbln"
]
},
"pdfbook-action": "Als PDF-Datei ausgeben",
"pdfbook-log": "$1 wurde als Zusammenstellung in einer PDF-Datei erstellt",
"pdfbook-desc": "Ermöglicht die Erstellung von PDF-Dateien einzelner Seiten oder gesammelt aller in einer Kategorie vorhandener Seiten"
}

10
i18n/dsb.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Michawiki"
]
},
"pdfbook-action": "Ako PDF śišćaś",
"pdfbook-log": "$1 jo se ako PDF-knigły eksportěrował",
"pdfbook-desc": "Staja knigły z bokow w kategoriji gromadu a eksportěrujo je ako PDF-knigły"
}

10
i18n/en.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Aran Dunkley"
]
},
"pdfbook-action": "Print as PDF",
"pdfbook-log": "$1 exported as a PDF book",
"pdfbook-desc": "Composes a book from pages in a category and exports as a PDF book"
}

10
i18n/es.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Armando-Martin"
]
},
"pdfbook-action": "Imprimir en formato PDF",
"pdfbook-log": "$1 exportado como libro en PDF",
"pdfbook-desc": "Compone un libro a partir de las páginas presentes en una categoría y lo exporta como libro en PDF"
}

10
i18n/eu.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"An13sa"
]
},
"pdfbook-action": "PDF gisa inprimatu",
"pdfbook-log": "$1 PDF liburu bezala esportatu da",
"pdfbook-desc": "Kategoria bateko orriak hartu eta PDF liburu gisa esportatzen ditu"
}

11
i18n/fa.json Normal file
View file

@ -0,0 +1,11 @@
{
"@metadata": {
"authors": [
"Huji",
"محک"
]
},
"pdfbook-action": "چاپ به صورت پی‌دی‌اف",
"pdfbook-log": "$1 برون‌بری شده به صورت یک کتاب پی‌دی‌اف",
"pdfbook-desc": "از صفحه‌های یک رده کتابی می‌سازد و به صورت یک کتاب پی‌دی‌اف برون‌بری می‌کند"
}

10
i18n/fi.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Beluga",
"Pyscowicz"
]
},
"pdfbook-action": "Tulosta PDF-tiedostoksi",
"pdfbook-log": "$1 vietiin PDF-kirjaksi"
}

10
i18n/fr.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Jean-Frédéric"
]
},
"pdfbook-action": "Imprimer au format PDF",
"pdfbook-log": "$1 exporté sous forme de livre PDF",
"pdfbook-desc": "Compose un livre à partir des pages dune catégorie et exporte comme un livre au format PDF"
}

9
i18n/frp.json Normal file
View file

@ -0,0 +1,9 @@
{
"@metadata": {
"authors": [
"ChrisPtDe"
]
},
"pdfbook-action": "Emprimar u format PDF",
"pdfbook-log": "$1 èxportâ desot fôrma de lévro PDF"
}

10
i18n/gd.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"GunChleoc"
]
},
"pdfbook-action": "Dèan PDF dheth",
"pdfbook-log": "Rinn $1 às-phortadh 'na leabhar PDF",
"pdfbook-desc": "Cruthaichidh 's às-phortaichidh seo leabhar PDF dhe na duilleagan ann an roinn-seòrsa"
}

10
i18n/gl.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Toliño"
]
},
"pdfbook-action": "Imprimir como PDF",
"pdfbook-log": "$1 exportado como libro en PDF",
"pdfbook-desc": "Composición dun libro a partir das páxinas presentes nunha categoría e exportación como un libro en PDF"
}

10
i18n/gsw.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Als-Holder"
]
},
"pdfbook-action": "As PDF-Datei uusgee",
"pdfbook-log": "$1 exportiert as PDF-Buech",
"pdfbook-desc": "Stellt e Buech vu Syte us ere Kategori zämme un exportiert s as PDF-Buech"
}

10
i18n/gu.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Ashok modhvadia"
]
},
"pdfbook-action": "PDF તરીકે છાપો",
"pdfbook-log": "$1 એ PDF પુસ્તક તરીકે નિકાસ કર્યું",
"pdfbook-desc": "શ્રેણીમાંના પાનાઓમાંથી પુસ્તક સંપાદિત કરી PDF પુસ્તક તરીકે નિકાસ કર્યું"
}

10
i18n/he.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Amire80"
]
},
"pdfbook-action": "הדפסה כקובץ PDF",
"pdfbook-log": "$1 יוּצָא כספר PDF",
"pdfbook-desc": "לערוך ספר מדפים בקטגוריה וייצא אותו כ־PDF"
}

10
i18n/hsb.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Michawiki"
]
},
"pdfbook-action": "Jako PDF ćišćeć",
"pdfbook-log": "$1 bu jako PDF-kniha eksportowany",
"pdfbook-desc": "Zestaja knihu ze stronow w kategoriji a eksportuje jako PDF-knihu"
}

10
i18n/hu.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"BáthoryPéter"
]
},
"pdfbook-action": "Nyomtatás PDF formátumban",
"pdfbook-log": "$ 1 exportálva PDF-könyvként",
"pdfbook-desc": "Kiválasztott oldalakat kategóriába helyez, összeállít belőlük egy könyvet, és exportálja PDF-könyvként"
}

10
i18n/ia.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"McDutchie"
]
},
"pdfbook-action": "Imprimer como PDF",
"pdfbook-log": "$1 exportate como libro in PDF",
"pdfbook-desc": "Compone un libro ex paginas in un categoria e exporta lo como libro in PDF"
}

10
i18n/id.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"IvanLanin"
]
},
"pdfbook-action": "Cetak sebagai PDF",
"pdfbook-log": "$1 diekspor sebagai buku PDF",
"pdfbook-desc": "Menyusun suatu buku dari halaman dalam kategori dan mengekspornya sebagai buku PDF"
}

10
i18n/ilo.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Lam-ang"
]
},
"pdfbook-action": "Imaldit a kasla PDF",
"pdfbook-log": "$1 iangkat a kasla PDF na libro",
"pdfbook-desc": "Agaramid ti libro nga naggapu kadagiti pampanid iti kategoria ken iangkat a kasla PDF a libro"
}

10
i18n/it.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Beta16"
]
},
"pdfbook-action": "Stampa in formato PDF",
"pdfbook-log": "$1 esportato come libro in PDF",
"pdfbook-desc": "Compone un libro dalle pagine in una categoria ed esporta come libro in PDF"
}

11
i18n/ja.json Normal file
View file

@ -0,0 +1,11 @@
{
"@metadata": {
"authors": [
"Iwai.masaharu",
"青子守歌"
]
},
"pdfbook-action": "PDFとして印刷する",
"pdfbook-log": "$1をPDFブックとしてエクスポート",
"pdfbook-desc": "カテゴリ内のページから本を構築し、PDFブックとしてエクスポートする"
}

10
i18n/ka.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"David1010"
]
},
"pdfbook-action": "შენახვა PDF ფორმატში",
"pdfbook-log": "$1 ექსპორტირებულია როგორც PDF წიგნი",
"pdfbook-desc": "კატეგორიების გვერდებიდან ქმნის წიგნს და გარდაქმნის PDF წიგნად"
}

10
i18n/km.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"គីមស៊្រុន"
]
},
"pdfbook-action": "បោះពុម្ភជា PDF",
"pdfbook-log": "$1 នាំចេញជាសៀវភៅ PDF",
"pdfbook-desc": "តែងសៀវភៅពីទំព័រនានាក្នុងចំណាត់ក្រុមមួយ រួចនាំចេញជាសៀវភៅ PDF"
}

11
i18n/ko.json Normal file
View file

@ -0,0 +1,11 @@
{
"@metadata": {
"authors": [
"Priviet",
"아라"
]
},
"pdfbook-action": "PDF로 인쇄",
"pdfbook-log": "$1님이 PDF 책으로 내보냈습니다",
"pdfbook-desc": "분류에서 문서를 책으로 구성하고 PDF 책으로 내보내기"
}

10
i18n/ksh.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Purodha"
]
},
"pdfbook-action": "Als <i lang=\"en\" xml:lang=\"en\" dir=\"ltr\" title=\"Portable Document Format\">PDF</i>-Dattei dröcke",
"pdfbook-log": "$1 wood als en Aat Booch en en PDF-Dattei expoteet",
"pdfbook-desc": "Ställd e Booch zesamme us dä Sigge en ene Saachjropp un expoteed et als en Aat Booch en en PDF-Dattei."
}

8
i18n/ku-latn.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"George Animal"
]
},
"pdfbook-action": "Weka PDF çap bike"
}

10
i18n/lb.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Robby"
]
},
"pdfbook-action": "Als PDF drécken",
"pdfbook-log": "$1 gouf als PDF-Buch exportéiert",
"pdfbook-desc": "Setzt e Buch aus Säiten an eng Kategorie an exportéiert se als PDF-Buch"
}

11
i18n/lv.json Normal file
View file

@ -0,0 +1,11 @@
{
"@metadata": {
"authors": [
"GreenZeb",
"Papuass"
]
},
"pdfbook-action": "Drukāt kā PDF",
"pdfbook-log": "$1 pārstrādāja šo kā grāmatu PDF failā",
"pdfbook-desc": "Izveido grāmatu no kategorijā esošajām lapām un pārstrādā to PDF formātā"
}

10
i18n/mk.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Bjankuloski06"
]
},
"pdfbook-action": "Испечати како PDF",
"pdfbook-log": "Извоз на $1 како PDF-книга",
"pdfbook-desc": "Составува книга од страници во извесна категорија и ја извезува во PDF-формат"
}

10
i18n/ms.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Anakmalaysia"
]
},
"pdfbook-action": "Cetak dalam bentuk PDF",
"pdfbook-log": "$1 dieksport dalam bentuk buku PDF",
"pdfbook-desc": "Mengarang buku daripada laman-laman dalam satu kategori lalu mengeksportnya dalam bentuk buku PDF"
}

10
i18n/mzn.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"محک"
]
},
"pdfbook-action": "چاپ به شکل پی‌دی‌اف",
"pdfbook-log": "$1 برون‌ریزی بیی به صورت اتا کتاب پی‌دی‌اف",
"pdfbook-desc": "از صفحه‌ئون اتا رج کتاب ساجنه و به صورت اتا کتاب پی‌دی‌اف برون‌ریزی کانده"
}

10
i18n/nb.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Nghtwlkr"
]
},
"pdfbook-action": "Skriv ut som PDF",
"pdfbook-log": "$1 eksportert som en PDF-bok",
"pdfbook-desc": "Komponerer en bok fra sider i en kategori og eksporterer dem som en PDF-bok"
}

10
i18n/nl.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Siebrand"
]
},
"pdfbook-action": "Afdrukken als PDF",
"pdfbook-log": "$1 is geëxporteerd als PDF-boek",
"pdfbook-desc": "Maakt een boek van pagina's in een categorie en maakt een export als PDF-boek"
}

10
i18n/nn.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Njardarlogar"
]
},
"pdfbook-action": "Skriv ut som PDF",
"pdfbook-log": "$1 eksporterte som ei PDF-bok",
"pdfbook-desc": "Set saman ei bok frå sider i ein kategori og eksporter som ei PDF-bok"
}

10
i18n/no.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Nghtwlkr"
]
},
"pdfbook-action": "Skriv ut som PDF",
"pdfbook-log": "$1 eksportert som en PDF-bok",
"pdfbook-desc": "Komponerer en bok fra sider i en kategori og eksporterer dem som en PDF-bok"
}

10
i18n/pl.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Sp5uhe"
]
},
"pdfbook-action": "Drukuj do PDF",
"pdfbook-log": "wyeksportowano $1 jako książkę w formacie PDF",
"pdfbook-desc": "Tworzenie książki ze stron kategorii i eksportowanie w formacie PDF"
}

11
i18n/pms.json Normal file
View file

@ -0,0 +1,11 @@
{
"@metadata": {
"authors": [
"Borichèt",
"Dragonòt"
]
},
"pdfbook-action": "Stampa com PDF",
"pdfbook-log": "$1 esportà coma lìber PDF",
"pdfbook-desc": "A compon un lìber a parte da le pàgine an na categorìa e a lo espòrta com un lìber an PDF"
}

10
i18n/pt-br.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Garrasdalua"
]
},
"pdfbook-action": "Imprima como PDF",
"pdfbook-log": "$1 exportado como um livro PDF",
"pdfbook-desc": "Componha um livro com paginas de uma categoria e o exporte como um livro PDF"
}

10
i18n/pt.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Hamilton Abreu"
]
},
"pdfbook-action": "Imprimir como PDF",
"pdfbook-log": "$1 exportado como um livro PDF",
"pdfbook-desc": "Compõe um livro com as páginas de uma categoria e exporta-o como um livro PDF"
}

12
i18n/qqq.json Normal file
View file

@ -0,0 +1,12 @@
{
"@metadata": {
"authors": [
"Lloffiwr",
"Shirayuki",
"Umherirrender"
]
},
"pdfbook-action": "Used as link text for a link to the pdf",
"pdfbook-log": "Parameters:\n* $1 - the username of the user who exports the PDF book",
"pdfbook-desc": "{{desc|name=PdfBook|url=https://www.mediawiki.org/wiki/Extension:PdfBook}}"
}

10
i18n/roa-tara.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Joetaras"
]
},
"pdfbook-action": "Stambe cumme a 'nu PDF",
"pdfbook-log": "$1 esportate cumme a 'nu libbre in PDF",
"pdfbook-desc": "Combone 'nu libbre da le pàggene jndr'à 'na categorije e esporte cumme 'nu libbre in PDF"
}

10
i18n/ru.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Александр Сигачёв"
]
},
"pdfbook-action": "Печать в PDF",
"pdfbook-log": "$1 экспортирована как PDF-книга",
"pdfbook-desc": "Создаёт книгу из страниц категории, преобразует её в PDF"
}

10
i18n/sk.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Helix84"
]
},
"pdfbook-action": "Vytlačiť do PDF",
"pdfbook-log": "Stránka $1 bola exportovaná ako kniha vo formáte PDF",
"pdfbook-desc": "Zostavá knihu z stránok v kategórii a exportuje ju vo formáte PDF"
}

10
i18n/sv.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Diupwijk"
]
},
"pdfbook-action": "Skriv ut som PDF",
"pdfbook-log": "$1 exporterad som PDF-bok",
"pdfbook-desc": "Sätter samman en bok från sidorna i en kategori och exporterar dem som PDF"
}

10
i18n/sw.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Lloffiwr"
]
},
"pdfbook-action": "Chapa kwa mtindo wa PDF",
"pdfbook-log": "$1 amekipeleka kitabu nje kwa mtindo wa PDF",
"pdfbook-desc": "Inaunda kurasa za jamii fulani katika kitabu, na kukipeleka nje kwa mtindo wa PDF"
}

9
i18n/ta.json Normal file
View file

@ -0,0 +1,9 @@
{
"@metadata": {
"authors": [
"Shanmugamp7"
]
},
"pdfbook-action": "PDF ஆக அச்சிடு",
"pdfbook-log": "$1 PDF புத்தகமாக ஏற்றுமதி செய்யப்பட்டது"
}

9
i18n/te.json Normal file
View file

@ -0,0 +1,9 @@
{
"@metadata": {
"authors": [
"రహ్మానుద్దీన్"
]
},
"pdfbook-action": "PDF గా ప్రచురించు",
"pdfbook-log": "$1 PDF పుస్తకంగా ఎగుమతి చేయబడింది"
}

10
i18n/tl.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"AnakngAraw"
]
},
"pdfbook-action": "Ilimbag bilang PDF",
"pdfbook-log": "Iniluwas ang $1 bilang isang aklat na PDF",
"pdfbook-desc": "Bumubuo ng isang aklat mula sa mga pahinang nasa loob ng isang kategorya at nagluluwas bilang isang aklat na PDF"
}

10
i18n/tt-cyrl.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Ильнар"
]
},
"pdfbook-action": "PDF иттереп бастыру",
"pdfbook-log": "$1 PDF китап кебек чыгарылган",
"pdfbook-desc": "Китапны төркем битләреннән ясый һәм PDF форматында чыгара"
}

10
i18n/uk.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Andriykopanytsia"
]
},
"pdfbook-action": "Друк у PDF",
"pdfbook-log": "$1 експортовано як книгу PDF",
"pdfbook-desc": "Створює книгу зі сторінок у категорії і експортує як книгу PDF"
}

10
i18n/zh-hans.json Normal file
View file

@ -0,0 +1,10 @@
{
"@metadata": {
"authors": [
"Yfdyh000"
]
},
"pdfbook-action": "打印为PDF",
"pdfbook-log": "$1导出了一个PDF",
"pdfbook-desc": "从分类中的页面编写一本书并导出为PDF。"
}