]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Added publication date on epub export 4315/head
authorNicolas Lœuillet <nicolas@loeuillet.org>
Mon, 6 Apr 2020 13:34:32 +0000 (15:34 +0200)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Mon, 6 Apr 2020 14:14:36 +0000 (16:14 +0200)
17 files changed:
src/Wallabag/CoreBundle/Helper/EntriesExport.php
src/Wallabag/CoreBundle/Resources/translations/messages.da.yml
src/Wallabag/CoreBundle/Resources/translations/messages.de.yml
src/Wallabag/CoreBundle/Resources/translations/messages.en.yml
src/Wallabag/CoreBundle/Resources/translations/messages.es.yml
src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml
src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml
src/Wallabag/CoreBundle/Resources/translations/messages.it.yml
src/Wallabag/CoreBundle/Resources/translations/messages.ja.yml
src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml
src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml
src/Wallabag/CoreBundle/Resources/translations/messages.pt.yml
src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml
src/Wallabag/CoreBundle/Resources/translations/messages.ru.yml
src/Wallabag/CoreBundle/Resources/translations/messages.th.yml
src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml
src/Wallabag/CoreBundle/Resources/translations/messages.zh.yml

index f981ee50e61b8a323ae091f97f1139b82896de17..1318602e2723ff0df40288ebedb51f1acedb3119 100644 (file)
@@ -196,10 +196,17 @@ class EntriesExport
                 $authors = implode(',', $publishedBy);
             }
 
+            $publishedAt = $entry->getPublishedAt();
+            $publishedDate = $this->translator->trans('export.unknown');
+            if (!empty($publishedAt)) {
+                $publishedDate = $entry->getPublishedAt()->format('Y-m-d');
+            }
+
             $titlepage = $content_start .
                 '<h1>' . $entry->getTitle() . '</h1>' .
                 '<dl>' .
                 '<dt>' . $this->translator->trans('entry.view.published_by') . '</dt><dd>' . $authors . '</dd>' .
+                '<dt>' . $this->translator->trans('entry.metadata.published_on') . '</dt><dd>' . $publishedDate . '</dd>' .
                 '<dt>' . $this->translator->trans('entry.metadata.reading_time') . '</dt><dd>' . $this->translator->trans('entry.metadata.reading_time_minutes_short', ['%readingTime%' => $entry->getReadingTime()]) . '</dd>' .
                 '<dt>' . $this->translator->trans('entry.metadata.added_on') . '</dt><dd>' . $entry->getCreatedAt()->format('Y-m-d') . '</dd>' .
                 '<dt>' . $this->translator->trans('entry.metadata.address') . '</dt><dd><a href="' . $entry->getUrl() . '">' . $entry->getUrl() . '</a></dd>' .
index 47de066f9a00c86792d92c43434d493b27657d93..53b60c729469a8a4f4a8376246eabe8b2259c9cb 100644 (file)
@@ -285,6 +285,7 @@ entry:
         # reading_time_minutes_short: "%readingTime% min"
         # address: "Address"
         # added_on: "Added on"
+        # published_on: "Published on"
 
 about:
     page_title: 'Om'
index 50e67d47bc019231b3d85688f0bd27b4b4abbd27..b9694be84c8a656b7c568e6f3e3dd61d4a8bec0a 100644 (file)
@@ -285,6 +285,7 @@ entry:
         # reading_time_minutes_short: "%readingTime% min"
         # address: "Address"
         # added_on: "Added on"
+        # published_on: "Published on"
 
 about:
     page_title: 'Über'
index 27585f775295ad69cb8dc781241dea9c2d7e6435..e8b1ea1542d25f6659af50f38ecf2ae2fab304c7 100644 (file)
@@ -285,6 +285,7 @@ entry:
         reading_time_minutes_short: "%readingTime% min"
         address: "Address"
         added_on: "Added on"
+        published_on: "Published on"
 
 about:
     page_title: 'About'
index 2cf67176b11cd4841bcfa3bb55f9fda6e3d6de69..6fd44f8e37070e4d5938451cc5e5876e540a5566 100644 (file)
@@ -285,6 +285,7 @@ entry:
         reading_time_minutes_short: "%readingTime% min"
         address: "Dirección"
         added_on: "Añadido el"
+        # published_on: "Published on"
 
 about:
     page_title: 'Acerca de'
index c1fb74d37d73e3f7ab09eb63e3c5d05787f0850f..627923b074894385d45abbbf8048154d526e8043 100644 (file)
@@ -285,6 +285,7 @@ entry:
         # reading_time_minutes_short: "%readingTime% min"
         # address: "Address"
         # added_on: "Added on"
+        # published_on: "Published on"
 
 about:
     page_title: 'درباره'
index 2b8bb0922c9aeca90068cea736aaf362708f8753..542dc25cc5381ddc65070bef88c25d2a3cb8d087 100644 (file)
@@ -285,6 +285,7 @@ entry:
         reading_time_minutes_short: "%readingTime% min"
         address: "Adresse"
         added_on: "Ajouté le"
+        published_on: "Publié le"
 
 about:
     page_title: "À propos"
index 8cee3e5228d00af42806fb35558cf6fa5bd12909..5d017a4014bae5b96524af8a3ad70b699bf4d771 100644 (file)
@@ -285,6 +285,7 @@ entry:
         # reading_time_minutes_short: "%readingTime% min"
         # address: "Address"
         # added_on: "Added on"
+        # published_on: "Published on"
 
 about:
     page_title: 'A proposito'
index 9125a5d1c32492f5d0f4460a835478b5ad1def45..9de8c571668005df00c863f0d1ea961d9800df01 100644 (file)
@@ -285,6 +285,7 @@ entry:
         reading_time_minutes_short: "%readingTime% 分"
         address: "アドレス"
         added_on: "追加日"
+        # published_on: "Published on"
 
 about:
     page_title: 'アプリについて'
index 052582ab8cc66b13f5be714d4f5c113321157a9b..e0fb1933cd6e61e17bb4407ca439cd93e1a464c4 100644 (file)
@@ -285,6 +285,7 @@ entry:
         reading_time_minutes_short: "%readingTime% min"
         address: "Adreça"
         added_on: "Ajustat a"
+        # published_on: "Published on"
 
 about:
     page_title: 'A prepaus'
index 93e8f8526af84435e06d86bd64bc4c4283e098df..dfaf9e892278bfce6230cf122237e56e940a4704 100644 (file)
@@ -285,6 +285,7 @@ entry:
         # reading_time_minutes_short: "%readingTime% min"
         # address: "Address"
         # added_on: "Added on"
+        # published_on: "Published on"
 
 about:
     page_title: 'O nas'
index 7159569e6fb6712d9fa88d956d0ce80d404adc01..8908c0cc8a351a0593be8bc6af5c6c2155c07092 100644 (file)
@@ -285,6 +285,7 @@ entry:
         reading_time_minutes_short: "%readingTime% min"
         address: "Endereço"
         added_on: "Adicionado o"
+        # published_on: "Published on"
 
 about:
     page_title: 'Sobre'
index f671da8d38587850f6564a3641c015b3682e89af..b269578a0085eb8c2db4380b167a1e711c724fa5 100644 (file)
@@ -285,6 +285,7 @@ entry:
         # reading_time_minutes_short: "%readingTime% min"
         # address: "Address"
         # added_on: "Added on"
+        # published_on: "Published on"
 
 about:
     page_title: 'Despre'
index 7d45df1cb2662c96b9de31f30cc9d12f82a5f8bc..648bbc80c71195103a00fbac340f799a8a919353 100644 (file)
@@ -285,6 +285,7 @@ entry:
         # reading_time_minutes_short: "%readingTime% min"
         # address: "Address"
         # added_on: "Added on"
+        # published_on: "Published on"
 
 about:
     page_title: 'О'
index 03f8fa9a9432ba29f252f5fd8bd70bc246a68431..4de87adc7a1c7742178f621daa69593370367185 100644 (file)
@@ -285,6 +285,7 @@ entry:
         # reading_time_minutes_short: "%readingTime% min"
         # address: "Address"
         # added_on: "Added on"
+        # published_on: "Published on"
 
 about:
     page_title: 'เกี่ยวกับ'
index 05cfbbfc932ecc938b603803abb7da7fa6cfb031..9afa648cda92cf6bb327ce4ae1fa70e69b326796 100644 (file)
@@ -285,6 +285,7 @@ entry:
         # reading_time_minutes_short: "%readingTime% min"
         # address: "Address"
         # added_on: "Added on"
+        # published_on: "Published on"
 
 about:
     page_title: 'Hakkımızda'
index 21f2f9a72c68dda3a02472b9562ec92735c61ac9..a34e38520032abc3f4d57e034e1c81639fb587b2 100644 (file)
@@ -285,6 +285,7 @@ entry:
         reading_time_minutes_short: "%readingTime% 分钟"
         address: "地址"
         added_on: "添加于"
+        # published_on: "Published on"
 
 about:
     page_title: '关于'