aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xinc/poche/Poche.class.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php
index c99bfcba..c59973f3 100755
--- a/inc/poche/Poche.class.php
+++ b/inc/poche/Poche.class.php
@@ -1189,10 +1189,10 @@ class Poche
1189 $log->logLine("getCurrentServerURL: " . $book->getCurrentServerURL()); 1189 $log->logLine("getCurrentServerURL: " . $book->getCurrentServerURL());
1190 $log->logLine("getCurrentPageURL..: " . $book->getCurrentPageURL()); 1190 $log->logLine("getCurrentPageURL..: " . $book->getCurrentPageURL());
1191 1191
1192 $book->setTitle("wallabag's articles"); 1192 $book->setTitle(_('wallabag\'s articles'));
1193 $book->setIdentifier("http://$_SERVER[HTTP_HOST]", EPub::IDENTIFIER_URI); // Could also be the ISBN number, prefered for published books, or a UUID. 1193 $book->setIdentifier("http://$_SERVER[HTTP_HOST]", EPub::IDENTIFIER_URI); // Could also be the ISBN number, prefered for published books, or a UUID.
1194 //$book->setLanguage("en"); // Not needed, but included for the example, Language is mandatory, but EPub defaults to "en". Use RFC3066 Language codes, such as "en", "da", "fr" etc. 1194 //$book->setLanguage("en"); // Not needed, but included for the example, Language is mandatory, but EPub defaults to "en". Use RFC3066 Language codes, such as "en", "da", "fr" etc.
1195 $book->setDescription("Some articles saved on my wallabag"); 1195 $book->setDescription(_("Some articles saved on my wallabag"));
1196 $book->setAuthor("wallabag","wallabag"); 1196 $book->setAuthor("wallabag","wallabag");
1197 $book->setPublisher("wallabag","wallabag"); // I hope this is a non existant address :) 1197 $book->setPublisher("wallabag","wallabag"); // I hope this is a non existant address :)
1198 $book->setDate(time()); // Strictly not needed as the book date defaults to time(). 1198 $book->setDate(time()); // Strictly not needed as the book date defaults to time().
@@ -1206,16 +1206,16 @@ class Poche
1206 1206
1207 $log->logLine("Add Cover"); 1207 $log->logLine("Add Cover");
1208 if (count($entries)>1){ 1208 if (count($entries)>1){
1209 $cover = "<h1>" . $entries[0]['title'] . " and " . count($entries) . " other articles</h1>"; 1209 $cover = sprintf(_('<h1>%s and %s other articles</h1>'), $entries[0]['title'], count($entries));
1210 } else { 1210 } else {
1211 $cover = "<h1>" . $entries[0]['title'] . "</h1>"; 1211 $cover = sprintf(_('<h1>%s</h1>'), $entries[0]['title']);
1212 } 1212 }
1213 $book->setCover("Cover.png", file_get_contents("themes/baggy/img/apple-touch-icon-152.png"), "image/png", $cover); 1213 $book->setCover("Cover.png", file_get_contents("themes/baggy/img/apple-touch-icon-152.png"), "image/png", $cover);
1214 1214
1215 1215
1216 $book->setCover($cover); 1216 $book->setCover($cover);
1217 //$book->addChapter("Notices", "Cover.html", $cover); 1217 //$book->addChapter("Notices", "Cover.html", $cover);
1218 $book->buildTOC(NULL, "toc", "Table of Contents", TRUE, TRUE); 1218 $book->buildTOC(NULL, "toc", _('Table of Contents'), TRUE, TRUE);
1219 $subject = ""; 1219 $subject = "";
1220 1220
1221 foreach ($entries as $entry) { 1221 foreach ($entries as $entry) {
@@ -1239,6 +1239,6 @@ class Poche
1239 //$book->addChapter("ePubLog", "ePubLog.html", $content_start . $epuplog . "\n</pre>" . $bookEnd); 1239 //$book->addChapter("ePubLog", "ePubLog.html", $content_start . $epuplog . "\n</pre>" . $bookEnd);
1240 } 1240 }
1241 $book->finalize(); 1241 $book->finalize();
1242 $zipData = $book->sendBook("wallabag's articles"); 1242 $zipData = $book->sendBook(_('wallabag\'s articles'));
1243 } 1243 }
1244} 1244}