Merge pull request #5647 from wallabag/fix/epub-language

This commit is contained in:
Jérémy Benoist
2022-03-21 22:40:01 +01:00
committed by GitHub
3 changed files with 10 additions and 10 deletions

View File

@ -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);