mirror of
https://github.com/wallabag/wallabag.git
synced 2025-01-22 22:58:08 +00:00
Fix epub language
Ensure language has `_` instead of `-` And update wallabag/phpepub
This commit is contained in:
parent
5e377b8925
commit
2c870423c4
3 changed files with 10 additions and 10 deletions
|
@ -95,7 +95,7 @@
|
|||
"tecnickcom/tcpdf": "^6.3.0",
|
||||
"twig/extensions": "^1.5",
|
||||
"wallabag/php-mobi": "~1.0",
|
||||
"wallabag/phpepub": "^4.0.7.2",
|
||||
"wallabag/phpepub": "^4.0.10",
|
||||
"willdurand/hateoas-bundle": "~2.1"
|
||||
},
|
||||
"require-dev": {
|
||||
|
|
14
composer.lock
generated
14
composer.lock
generated
|
@ -4,7 +4,7 @@
|
|||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "7b402fa1eb644c821ddc5ed4097caafa",
|
||||
"content-hash": "2a0e9af279e198c254d9a8e8b53044f0",
|
||||
"packages": [
|
||||
{
|
||||
"name": "babdev/pagerfanta-bundle",
|
||||
|
@ -11364,16 +11364,16 @@
|
|||
},
|
||||
{
|
||||
"name": "wallabag/phpepub",
|
||||
"version": "4.0.9",
|
||||
"version": "4.0.10",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/wallabag/PHPePub.git",
|
||||
"reference": "cf94d02dce43b470752ef9e6dd0a1c8484af1f8f"
|
||||
"reference": "1f74a5c113ffbea199cfca34e6521a08e6f67445"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/wallabag/PHPePub/zipball/cf94d02dce43b470752ef9e6dd0a1c8484af1f8f",
|
||||
"reference": "cf94d02dce43b470752ef9e6dd0a1c8484af1f8f",
|
||||
"url": "https://api.github.com/repos/wallabag/PHPePub/zipball/1f74a5c113ffbea199cfca34e6521a08e6f67445",
|
||||
"reference": "1f74a5c113ffbea199cfca34e6521a08e6f67445",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -11428,9 +11428,9 @@
|
|||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/wallabag/PHPePub/issues",
|
||||
"source": "https://github.com/wallabag/PHPePub/tree/4.0.9"
|
||||
"source": "https://github.com/wallabag/PHPePub/tree/4.0.10"
|
||||
},
|
||||
"time": "2021-03-08T08:31:34+00:00"
|
||||
"time": "2022-03-21T19:27:18+00:00"
|
||||
},
|
||||
{
|
||||
"name": "willdurand/hateoas",
|
||||
|
|
|
@ -161,8 +161,8 @@ class EntriesExport
|
|||
*/
|
||||
|
||||
$book->setTitle($this->title);
|
||||
// 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.
|
||||
$book->setLanguage($this->language);
|
||||
// EPub specification requires BCP47-compliant languages, thus we replace _ with -
|
||||
$book->setLanguage(str_replace('_', '-', $this->language));
|
||||
$book->setDescription('Some articles saved on my wallabag');
|
||||
|
||||
$book->setAuthor($this->author, $this->author);
|
||||
|
|
Loading…
Reference in a new issue