commit 539c2ba5ef2091f85948402576a4f902c488b14e Author: Alexander Yakovlev Date: Sun Apr 9 14:26:10 2017 +0700 Initial commit - files extracted diff --git a/PdfBook.hooks.php b/PdfBook.hooks.php new file mode 100755 index 0000000..fc27f91 --- /dev/null +++ b/PdfBook.hooks.php @@ -0,0 +1,220 @@ +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( "|(]+?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( "|(]+?src=\"$imgpath)(/.+?>)|", ".+?|s", "", $text ); // non-printable areas + $text = preg_replace( "|@{4}([^@]+?)@{4}|s", "", $text ); // HTML comments hack + $ttext = basename( $ttext ); + $h1 = $notitle ? "" : "

$ttext

"; + + // 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 ); + } +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..4cd1729 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +PDFBook extension for Mediawiki + +Extracted from https://github.com/OrganicDesign/extensions diff --git a/extension.json b/extension.json new file mode 100644 index 0000000..360ac6d --- /dev/null +++ b/extension.json @@ -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"] + } +} diff --git a/i18n/af.json b/i18n/af.json new file mode 100644 index 0000000..2168135 --- /dev/null +++ b/i18n/af.json @@ -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" +} diff --git a/i18n/ast.json b/i18n/ast.json new file mode 100644 index 0000000..f13b6b7 --- /dev/null +++ b/i18n/ast.json @@ -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" +} diff --git a/i18n/be-tarask.json b/i18n/be-tarask.json new file mode 100644 index 0000000..5cd9a4d --- /dev/null +++ b/i18n/be-tarask.json @@ -0,0 +1,11 @@ +{ + "@metadata": { + "authors": [ + "EugeneZelenko", + "Wizardist" + ] + }, + "pdfbook-action": "Друкаваць у фармаце PDF", + "pdfbook-log": "$1 экспартаваная як кніга ў фармаце PDF", + "pdfbook-desc": "Стварае кнігу са старонак у катэгорыі і экспартуе яе ў фармат PDF" +} diff --git a/i18n/bn.json b/i18n/bn.json new file mode 100644 index 0000000..b91b750 --- /dev/null +++ b/i18n/bn.json @@ -0,0 +1,10 @@ +{ + "@metadata": { + "authors": [ + "Bellayet", + "Wikitanvir" + ] + }, + "pdfbook-action": "পিডিএফ হিসেবে মুদ্রণ", + "pdfbook-log": "$1 পিডিএফ বই হিসেবে তৈরিকৃত" +} diff --git a/i18n/br.json b/i18n/br.json new file mode 100644 index 0000000..1a64ee3 --- /dev/null +++ b/i18n/br.json @@ -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" +} diff --git a/i18n/bs.json b/i18n/bs.json new file mode 100644 index 0000000..b504514 --- /dev/null +++ b/i18n/bs.json @@ -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" +} diff --git a/i18n/ca.json b/i18n/ca.json new file mode 100644 index 0000000..0504dab --- /dev/null +++ b/i18n/ca.json @@ -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" +} diff --git a/i18n/ce.json b/i18n/ce.json new file mode 100644 index 0000000..64987f2 --- /dev/null +++ b/i18n/ce.json @@ -0,0 +1,10 @@ +{ + "@metadata": { + "authors": [ + "Sasan700" + ] + }, + "pdfbook-action": "Зорба оц PDF", + "pdfbook-log": "$1 арадаькхина PDF-жайна санна", + "pdfbook-desc": "Кадегари агlонех кхуллу жайна, PDF бараме дерзош" +} diff --git a/i18n/cy.json b/i18n/cy.json new file mode 100644 index 0000000..c20738c --- /dev/null +++ b/i18n/cy.json @@ -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" +} diff --git a/i18n/da.json b/i18n/da.json new file mode 100644 index 0000000..cfb6337 --- /dev/null +++ b/i18n/da.json @@ -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" +} diff --git a/i18n/de.json b/i18n/de.json new file mode 100644 index 0000000..284345d --- /dev/null +++ b/i18n/de.json @@ -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" +} diff --git a/i18n/dsb.json b/i18n/dsb.json new file mode 100644 index 0000000..cafbecc --- /dev/null +++ b/i18n/dsb.json @@ -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" +} diff --git a/i18n/en.json b/i18n/en.json new file mode 100644 index 0000000..4dd1bf6 --- /dev/null +++ b/i18n/en.json @@ -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" +} diff --git a/i18n/es.json b/i18n/es.json new file mode 100644 index 0000000..fc17950 --- /dev/null +++ b/i18n/es.json @@ -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" +} diff --git a/i18n/eu.json b/i18n/eu.json new file mode 100644 index 0000000..d636e96 --- /dev/null +++ b/i18n/eu.json @@ -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" +} diff --git a/i18n/fa.json b/i18n/fa.json new file mode 100644 index 0000000..ddd16a1 --- /dev/null +++ b/i18n/fa.json @@ -0,0 +1,11 @@ +{ + "@metadata": { + "authors": [ + "Huji", + "محک" + ] + }, + "pdfbook-action": "چاپ به صورت پی‌دی‌اف", + "pdfbook-log": "$1 برون‌بری شده به صورت یک کتاب پی‌دی‌اف", + "pdfbook-desc": "از صفحه‌های یک رده کتابی می‌سازد و به صورت یک کتاب پی‌دی‌اف برون‌بری می‌کند" +} diff --git a/i18n/fi.json b/i18n/fi.json new file mode 100644 index 0000000..10a20d6 --- /dev/null +++ b/i18n/fi.json @@ -0,0 +1,10 @@ +{ + "@metadata": { + "authors": [ + "Beluga", + "Pyscowicz" + ] + }, + "pdfbook-action": "Tulosta PDF-tiedostoksi", + "pdfbook-log": "$1 vietiin PDF-kirjaksi" +} diff --git a/i18n/fr.json b/i18n/fr.json new file mode 100644 index 0000000..2de2e6d --- /dev/null +++ b/i18n/fr.json @@ -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 d’une catégorie et exporte comme un livre au format PDF" +} diff --git a/i18n/frp.json b/i18n/frp.json new file mode 100644 index 0000000..f3a631f --- /dev/null +++ b/i18n/frp.json @@ -0,0 +1,9 @@ +{ + "@metadata": { + "authors": [ + "ChrisPtDe" + ] + }, + "pdfbook-action": "Emprimar u format PDF", + "pdfbook-log": "$1 èxportâ desot fôrma de lévro PDF" +} diff --git a/i18n/gd.json b/i18n/gd.json new file mode 100644 index 0000000..3e3d77c --- /dev/null +++ b/i18n/gd.json @@ -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" +} diff --git a/i18n/gl.json b/i18n/gl.json new file mode 100644 index 0000000..5bfa1b3 --- /dev/null +++ b/i18n/gl.json @@ -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" +} diff --git a/i18n/gsw.json b/i18n/gsw.json new file mode 100644 index 0000000..e096bde --- /dev/null +++ b/i18n/gsw.json @@ -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" +} diff --git a/i18n/gu.json b/i18n/gu.json new file mode 100644 index 0000000..50f04a0 --- /dev/null +++ b/i18n/gu.json @@ -0,0 +1,10 @@ +{ + "@metadata": { + "authors": [ + "Ashok modhvadia" + ] + }, + "pdfbook-action": "PDF તરીકે છાપો", + "pdfbook-log": "$1 એ PDF પુસ્તક તરીકે નિકાસ કર્યું", + "pdfbook-desc": "શ્રેણીમાંના પાનાઓમાંથી પુસ્તક સંપાદિત કરી PDF પુસ્તક તરીકે નિકાસ કર્યું" +} diff --git a/i18n/he.json b/i18n/he.json new file mode 100644 index 0000000..f400216 --- /dev/null +++ b/i18n/he.json @@ -0,0 +1,10 @@ +{ + "@metadata": { + "authors": [ + "Amire80" + ] + }, + "pdfbook-action": "הדפסה כקובץ PDF", + "pdfbook-log": "$1 יוּצָא כספר PDF", + "pdfbook-desc": "לערוך ספר מדפים בקטגוריה וייצא אותו כ־PDF" +} diff --git a/i18n/hsb.json b/i18n/hsb.json new file mode 100644 index 0000000..3cc76cb --- /dev/null +++ b/i18n/hsb.json @@ -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" +} diff --git a/i18n/hu.json b/i18n/hu.json new file mode 100644 index 0000000..d2de092 --- /dev/null +++ b/i18n/hu.json @@ -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" +} diff --git a/i18n/ia.json b/i18n/ia.json new file mode 100644 index 0000000..b30648b --- /dev/null +++ b/i18n/ia.json @@ -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" +} diff --git a/i18n/id.json b/i18n/id.json new file mode 100644 index 0000000..8870953 --- /dev/null +++ b/i18n/id.json @@ -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" +} diff --git a/i18n/ilo.json b/i18n/ilo.json new file mode 100644 index 0000000..bcb4cdb --- /dev/null +++ b/i18n/ilo.json @@ -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" +} diff --git a/i18n/it.json b/i18n/it.json new file mode 100644 index 0000000..cf2e670 --- /dev/null +++ b/i18n/it.json @@ -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" +} diff --git a/i18n/ja.json b/i18n/ja.json new file mode 100644 index 0000000..b98de1a --- /dev/null +++ b/i18n/ja.json @@ -0,0 +1,11 @@ +{ + "@metadata": { + "authors": [ + "Iwai.masaharu", + "青子守歌" + ] + }, + "pdfbook-action": "PDFとして印刷する", + "pdfbook-log": "$1をPDFブックとしてエクスポート", + "pdfbook-desc": "カテゴリ内のページから本を構築し、PDFブックとしてエクスポートする" +} diff --git a/i18n/ka.json b/i18n/ka.json new file mode 100644 index 0000000..baca9d3 --- /dev/null +++ b/i18n/ka.json @@ -0,0 +1,10 @@ +{ + "@metadata": { + "authors": [ + "David1010" + ] + }, + "pdfbook-action": "შენახვა PDF ფორმატში", + "pdfbook-log": "$1 ექსპორტირებულია როგორც PDF წიგნი", + "pdfbook-desc": "კატეგორიების გვერდებიდან ქმნის წიგნს და გარდაქმნის PDF წიგნად" +} diff --git a/i18n/km.json b/i18n/km.json new file mode 100644 index 0000000..27a237b --- /dev/null +++ b/i18n/km.json @@ -0,0 +1,10 @@ +{ + "@metadata": { + "authors": [ + "គីមស៊្រុន" + ] + }, + "pdfbook-action": "បោះពុម្ភជា PDF", + "pdfbook-log": "$1 នាំចេញជាសៀវភៅ PDF", + "pdfbook-desc": "តែងសៀវភៅពីទំព័រនានាក្នុងចំណាត់ក្រុមមួយ រួចនាំចេញជាសៀវភៅ PDF" +} diff --git a/i18n/ko.json b/i18n/ko.json new file mode 100644 index 0000000..d3e9ddd --- /dev/null +++ b/i18n/ko.json @@ -0,0 +1,11 @@ +{ + "@metadata": { + "authors": [ + "Priviet", + "아라" + ] + }, + "pdfbook-action": "PDF로 인쇄", + "pdfbook-log": "$1님이 PDF 책으로 내보냈습니다", + "pdfbook-desc": "분류에서 문서를 책으로 구성하고 PDF 책으로 내보내기" +} diff --git a/i18n/ksh.json b/i18n/ksh.json new file mode 100644 index 0000000..1a6cf9d --- /dev/null +++ b/i18n/ksh.json @@ -0,0 +1,10 @@ +{ + "@metadata": { + "authors": [ + "Purodha" + ] + }, + "pdfbook-action": "Als PDF-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." +} diff --git a/i18n/ku-latn.json b/i18n/ku-latn.json new file mode 100644 index 0000000..5c51850 --- /dev/null +++ b/i18n/ku-latn.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "George Animal" + ] + }, + "pdfbook-action": "Weka PDF çap bike" +} diff --git a/i18n/lb.json b/i18n/lb.json new file mode 100644 index 0000000..f4b8d92 --- /dev/null +++ b/i18n/lb.json @@ -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" +} diff --git a/i18n/lv.json b/i18n/lv.json new file mode 100644 index 0000000..85597a6 --- /dev/null +++ b/i18n/lv.json @@ -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ā" +} diff --git a/i18n/mk.json b/i18n/mk.json new file mode 100644 index 0000000..e896390 --- /dev/null +++ b/i18n/mk.json @@ -0,0 +1,10 @@ +{ + "@metadata": { + "authors": [ + "Bjankuloski06" + ] + }, + "pdfbook-action": "Испечати како PDF", + "pdfbook-log": "Извоз на $1 како PDF-книга", + "pdfbook-desc": "Составува книга од страници во извесна категорија и ја извезува во PDF-формат" +} diff --git a/i18n/ms.json b/i18n/ms.json new file mode 100644 index 0000000..dbe4b4b --- /dev/null +++ b/i18n/ms.json @@ -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" +} diff --git a/i18n/mzn.json b/i18n/mzn.json new file mode 100644 index 0000000..1f1186a --- /dev/null +++ b/i18n/mzn.json @@ -0,0 +1,10 @@ +{ + "@metadata": { + "authors": [ + "محک" + ] + }, + "pdfbook-action": "چاپ به شکل پی‌دی‌اف", + "pdfbook-log": "$1 برون‌ریزی بیی به صورت اتا کتاب پی‌دی‌اف", + "pdfbook-desc": "از صفحه‌ئون اتا رج کتاب ساجنه و به صورت اتا کتاب پی‌دی‌اف برون‌ریزی کانده" +} diff --git a/i18n/nb.json b/i18n/nb.json new file mode 100644 index 0000000..353f22e --- /dev/null +++ b/i18n/nb.json @@ -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" +} diff --git a/i18n/nl.json b/i18n/nl.json new file mode 100644 index 0000000..36d7f71 --- /dev/null +++ b/i18n/nl.json @@ -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" +} diff --git a/i18n/nn.json b/i18n/nn.json new file mode 100644 index 0000000..eae5681 --- /dev/null +++ b/i18n/nn.json @@ -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" +} diff --git a/i18n/no.json b/i18n/no.json new file mode 100644 index 0000000..353f22e --- /dev/null +++ b/i18n/no.json @@ -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" +} diff --git a/i18n/pl.json b/i18n/pl.json new file mode 100644 index 0000000..6471f75 --- /dev/null +++ b/i18n/pl.json @@ -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" +} diff --git a/i18n/pms.json b/i18n/pms.json new file mode 100644 index 0000000..8431585 --- /dev/null +++ b/i18n/pms.json @@ -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" +} diff --git a/i18n/pt-br.json b/i18n/pt-br.json new file mode 100644 index 0000000..88bbb51 --- /dev/null +++ b/i18n/pt-br.json @@ -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" +} diff --git a/i18n/pt.json b/i18n/pt.json new file mode 100644 index 0000000..211aad7 --- /dev/null +++ b/i18n/pt.json @@ -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" +} diff --git a/i18n/qqq.json b/i18n/qqq.json new file mode 100644 index 0000000..a48d385 --- /dev/null +++ b/i18n/qqq.json @@ -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}}" +} diff --git a/i18n/roa-tara.json b/i18n/roa-tara.json new file mode 100644 index 0000000..f007569 --- /dev/null +++ b/i18n/roa-tara.json @@ -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" +} diff --git a/i18n/ru.json b/i18n/ru.json new file mode 100644 index 0000000..ed33651 --- /dev/null +++ b/i18n/ru.json @@ -0,0 +1,10 @@ +{ + "@metadata": { + "authors": [ + "Александр Сигачёв" + ] + }, + "pdfbook-action": "Печать в PDF", + "pdfbook-log": "$1 экспортирована как PDF-книга", + "pdfbook-desc": "Создаёт книгу из страниц категории, преобразует её в PDF" +} diff --git a/i18n/sk.json b/i18n/sk.json new file mode 100644 index 0000000..cc42f70 --- /dev/null +++ b/i18n/sk.json @@ -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" +} diff --git a/i18n/sv.json b/i18n/sv.json new file mode 100644 index 0000000..7d48498 --- /dev/null +++ b/i18n/sv.json @@ -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" +} diff --git a/i18n/sw.json b/i18n/sw.json new file mode 100644 index 0000000..3244759 --- /dev/null +++ b/i18n/sw.json @@ -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" +} diff --git a/i18n/ta.json b/i18n/ta.json new file mode 100644 index 0000000..bf04567 --- /dev/null +++ b/i18n/ta.json @@ -0,0 +1,9 @@ +{ + "@metadata": { + "authors": [ + "Shanmugamp7" + ] + }, + "pdfbook-action": "PDF ஆக அச்சிடு", + "pdfbook-log": "$1 PDF புத்தகமாக ஏற்றுமதி செய்யப்பட்டது" +} diff --git a/i18n/te.json b/i18n/te.json new file mode 100644 index 0000000..4b70f5d --- /dev/null +++ b/i18n/te.json @@ -0,0 +1,9 @@ +{ + "@metadata": { + "authors": [ + "రహ్మానుద్దీన్" + ] + }, + "pdfbook-action": "PDF గా ప్రచురించు", + "pdfbook-log": "$1 PDF పుస్తకంగా ఎగుమతి చేయబడింది" +} diff --git a/i18n/tl.json b/i18n/tl.json new file mode 100644 index 0000000..9db9968 --- /dev/null +++ b/i18n/tl.json @@ -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" +} diff --git a/i18n/tt-cyrl.json b/i18n/tt-cyrl.json new file mode 100644 index 0000000..8ec619d --- /dev/null +++ b/i18n/tt-cyrl.json @@ -0,0 +1,10 @@ +{ + "@metadata": { + "authors": [ + "Ильнар" + ] + }, + "pdfbook-action": "PDF иттереп бастыру", + "pdfbook-log": "$1 PDF китап кебек чыгарылган", + "pdfbook-desc": "Китапны төркем битләреннән ясый һәм PDF форматында чыгара" +} diff --git a/i18n/uk.json b/i18n/uk.json new file mode 100644 index 0000000..4ccc2d3 --- /dev/null +++ b/i18n/uk.json @@ -0,0 +1,10 @@ +{ + "@metadata": { + "authors": [ + "Andriykopanytsia" + ] + }, + "pdfbook-action": "Друк у PDF", + "pdfbook-log": "$1 експортовано як книгу PDF", + "pdfbook-desc": "Створює книгу зі сторінок у категорії і експортує як книгу PDF" +} diff --git a/i18n/zh-hans.json b/i18n/zh-hans.json new file mode 100644 index 0000000..36f523a --- /dev/null +++ b/i18n/zh-hans.json @@ -0,0 +1,10 @@ +{ + "@metadata": { + "authors": [ + "Yfdyh000" + ] + }, + "pdfbook-action": "打印为PDF", + "pdfbook-log": "$1导出了一个PDF", + "pdfbook-desc": "从分类中的页面编写一本书并导出为PDF。" +}