aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/Wallabag/CoreBundle/Helper/EntriesExport.php9
-rw-r--r--src/Wallabag/CoreBundle/Resources/config/services.yml1
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.da.yml3
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.de.yml3
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.en.yml3
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.es.yml3
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml3
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml3
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.it.yml3
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml3
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml3
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.pt.yml3
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml3
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml3
14 files changed, 44 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Helper/EntriesExport.php b/src/Wallabag/CoreBundle/Helper/EntriesExport.php
index 838b9734..3e1cd522 100644
--- a/src/Wallabag/CoreBundle/Helper/EntriesExport.php
+++ b/src/Wallabag/CoreBundle/Helper/EntriesExport.php
@@ -8,6 +8,7 @@ use JMS\Serializer\SerializerBuilder;
8use PHPePub\Core\EPub; 8use PHPePub\Core\EPub;
9use PHPePub\Core\Structure\OPF\DublinCore; 9use PHPePub\Core\Structure\OPF\DublinCore;
10use Symfony\Component\HttpFoundation\Response; 10use Symfony\Component\HttpFoundation\Response;
11use Symfony\Component\Translation\TranslatorInterface;
11use Wallabag\CoreBundle\Entity\Entry; 12use Wallabag\CoreBundle\Entity\Entry;
12 13
13/** 14/**
@@ -17,6 +18,7 @@ class EntriesExport
17{ 18{
18 private $wallabagUrl; 19 private $wallabagUrl;
19 private $logoPath; 20 private $logoPath;
21 private $translator;
20 private $title = ''; 22 private $title = '';
21 private $entries = []; 23 private $entries = [];
22 private $author = 'wallabag'; 24 private $author = 'wallabag';
@@ -30,10 +32,11 @@ class EntriesExport
30 * @param string $wallabagUrl Wallabag instance url 32 * @param string $wallabagUrl Wallabag instance url
31 * @param string $logoPath Path to the logo FROM THE BUNDLE SCOPE 33 * @param string $logoPath Path to the logo FROM THE BUNDLE SCOPE
32 */ 34 */
33 public function __construct($wallabagUrl, $logoPath) 35 public function __construct($wallabagUrl, $logoPath, TranslatorInterface $translator)
34 { 36 {
35 $this->wallabagUrl = $wallabagUrl; 37 $this->wallabagUrl = $wallabagUrl;
36 $this->logoPath = $logoPath; 38 $this->logoPath = $logoPath;
39 $this->translator = $translator;
37 } 40 }
38 41
39 /** 42 /**
@@ -451,7 +454,9 @@ class EntriesExport
451 */ 454 */
452 private function getExportInformation($type) 455 private function getExportInformation($type)
453 { 456 {
454 $info = str_replace('%EXPORT_METHOD%', $type, $this->footerTemplate); 457 $info = $this->translator->trans('export.footer_template', [
458 '%method%' => $type,
459 ]);
455 460
456 if ('tcpdf' === $type) { 461 if ('tcpdf' === $type) {
457 return str_replace('%IMAGE%', '<img src="' . $this->logoPath . '" />', $info); 462 return str_replace('%IMAGE%', '<img src="' . $this->logoPath . '" />', $info);
diff --git a/src/Wallabag/CoreBundle/Resources/config/services.yml b/src/Wallabag/CoreBundle/Resources/config/services.yml
index e09b0f18..6f8c47e1 100644
--- a/src/Wallabag/CoreBundle/Resources/config/services.yml
+++ b/src/Wallabag/CoreBundle/Resources/config/services.yml
@@ -134,6 +134,7 @@ services:
134 arguments: 134 arguments:
135 - '%domain_name%' 135 - '%domain_name%'
136 - src/Wallabag/CoreBundle/Resources/public/themes/_global/img/appicon/apple-touch-icon-152.png 136 - src/Wallabag/CoreBundle/Resources/public/themes/_global/img/appicon/apple-touch-icon-152.png
137 - "@translator"
137 138
138 wallabag.operator.array.matches: 139 wallabag.operator.array.matches:
139 class: Wallabag\CoreBundle\Operator\PHP\Matches 140 class: Wallabag\CoreBundle\Operator\PHP\Matches
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml
index 5e5bbde2..d0a38f7e 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml
@@ -397,6 +397,9 @@ tag:
397 # add: 'Add' 397 # add: 'Add'
398 # placeholder: 'You can add several tags, separated by a comma.' 398 # placeholder: 'You can add several tags, separated by a comma.'
399 399
400# export:
401# footer_template: '<div style="text-align:center;"><p>Produced by wallabag with %method%</p><p>Please open <a href="https://github.com/wallabag/wallabag/issues">an issue</a> if you have trouble with the display of this E-Book on your device.</p></div>'
402
400import: 403import:
401 # page_title: 'Import' 404 # page_title: 'Import'
402 # page_description: 'Welcome to wallabag importer. Please select your previous service that you want to migrate.' 405 # page_description: 'Welcome to wallabag importer. Please select your previous service that you want to migrate.'
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml
index 360bf571..158762a9 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml
@@ -397,6 +397,9 @@ tag:
397 add: 'Hinzufügen' 397 add: 'Hinzufügen'
398 placeholder: 'Du kannst verschiedene Tags, getrennt von einem Komma, hinzufügen.' 398 placeholder: 'Du kannst verschiedene Tags, getrennt von einem Komma, hinzufügen.'
399 399
400export:
401 footer_template: '<div style="text-align:center;"><p>Generiert von wallabag mit Hilfe von %method%</p><p>Bitte öffne <a href="https://github.com/wallabag/wallabag/issues">ein Ticket</a> wenn du ein Problem mit der Darstellung von diesem E-Book auf deinem Gerät hast.</p></div>'
402
400import: 403import:
401 page_title: 'Importieren' 404 page_title: 'Importieren'
402 page_description: 'Willkommen beim wallabag-Importer. Wähle deinen vorherigen Service aus, von dem du die Daten migrieren willst.' 405 page_description: 'Willkommen beim wallabag-Importer. Wähle deinen vorherigen Service aus, von dem du die Daten migrieren willst.'
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml
index f41a7c85..de3e11fe 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml
@@ -397,6 +397,9 @@ tag:
397 add: 'Add' 397 add: 'Add'
398 placeholder: 'You can add several tags, separated by a comma.' 398 placeholder: 'You can add several tags, separated by a comma.'
399 399
400export:
401 footer_template: '<div style="text-align:center;"><p>Produced by wallabag with %method%</p><p>Please open <a href="https://github.com/wallabag/wallabag/issues">an issue</a> if you have trouble with the display of this E-Book on your device.</p></div>'
402
400import: 403import:
401 page_title: 'Import' 404 page_title: 'Import'
402 page_description: 'Welcome to wallabag importer. Please select your previous service from which you want to migrate.' 405 page_description: 'Welcome to wallabag importer. Please select your previous service from which you want to migrate.'
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.es.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.es.yml
index ea4d84ba..6dfc1525 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.es.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.es.yml
@@ -397,6 +397,9 @@ tag:
397 add: 'Añadir' 397 add: 'Añadir'
398 placeholder: 'Puedes añadir varias etiquetas, separadas por una coma.' 398 placeholder: 'Puedes añadir varias etiquetas, separadas por una coma.'
399 399
400# export:
401# footer_template: '<div style="text-align:center;"><p>Produced by wallabag with %method%</p><p>Please open <a href="https://github.com/wallabag/wallabag/issues">an issue</a> if you have trouble with the display of this E-Book on your device.</p></div>'
402
400import: 403import:
401 page_title: 'Importar' 404 page_title: 'Importar'
402 page_description: 'Bienvenido a la herramienta de importación de wallabag. Seleccione el servicio desde el que desea migrar.' 405 page_description: 'Bienvenido a la herramienta de importación de wallabag. Seleccione el servicio desde el que desea migrar.'
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml
index 11047e83..ffc48933 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml
@@ -397,6 +397,9 @@ tag:
397 # add: 'Add' 397 # add: 'Add'
398 # placeholder: 'You can add several tags, separated by a comma.' 398 # placeholder: 'You can add several tags, separated by a comma.'
399 399
400# export:
401# footer_template: '<div style="text-align:center;"><p>Produced by wallabag with %method%</p><p>Please open <a href="https://github.com/wallabag/wallabag/issues">an issue</a> if you have trouble with the display of this E-Book on your device.</p></div>'
402
400import: 403import:
401 page_title: 'درون‌ریزی' 404 page_title: 'درون‌ریزی'
402 page_description: 'به درون‌ریز wallabag خوش آمدید. لطفاً سرویس قبلی خود را که می‌خواهید از آن مهاجرت کنید انتخاب کنید.' 405 page_description: 'به درون‌ریز wallabag خوش آمدید. لطفاً سرویس قبلی خود را که می‌خواهید از آن مهاجرت کنید انتخاب کنید.'
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml
index 246add86..c9d95e2b 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml
@@ -397,6 +397,9 @@ tag:
397 add: "Ajouter" 397 add: "Ajouter"
398 placeholder: "Vous pouvez ajouter plusieurs tags, séparés par une virgule." 398 placeholder: "Vous pouvez ajouter plusieurs tags, séparés par une virgule."
399 399
400export:
401 footer_template: '<div style="text-align:center;"><p>Généré par wallabag with %method%</p><p>Merci d''ouvrir <a href="https://github.com/wallabag/wallabag/issues">un ticket</a> si vous rencontrez des soucis d''affichage avec ce document sur votre support.</p></div>'
402
400import: 403import:
401 page_title: "Importer" 404 page_title: "Importer"
402 page_description: "Bienvenue dans l’outil de migration de wallabag. Choisissez ci-dessous le service depuis lequel vous souhaitez migrer." 405 page_description: "Bienvenue dans l’outil de migration de wallabag. Choisissez ci-dessous le service depuis lequel vous souhaitez migrer."
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml
index 0de8bed7..c53266ca 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml
@@ -397,6 +397,9 @@ tag:
397 add: 'Aggiungi' 397 add: 'Aggiungi'
398 placeholder: 'Puoi aggiungere varie etichette, separate da una virgola.' 398 placeholder: 'Puoi aggiungere varie etichette, separate da una virgola.'
399 399
400# export:
401# footer_template: '<div style="text-align:center;"><p>Produced by wallabag with %method%</p><p>Please open <a href="https://github.com/wallabag/wallabag/issues">an issue</a> if you have trouble with the display of this E-Book on your device.</p></div>'
402
400import: 403import:
401 page_title: 'Importa' 404 page_title: 'Importa'
402 page_description: "Benvenuto nell'importatore di wallabag. Seleziona il servizio da cui vuoi trasferire i contenuti." 405 page_description: "Benvenuto nell'importatore di wallabag. Seleziona il servizio da cui vuoi trasferire i contenuti."
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml
index 455d47d1..3ae64c49 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml
@@ -397,6 +397,9 @@ tag:
397 add: 'Ajustar' 397 add: 'Ajustar'
398 placeholder: "Podètz ajustar mai qu'una etiqueta, separadas per de virgula." 398 placeholder: "Podètz ajustar mai qu'una etiqueta, separadas per de virgula."
399 399
400# export:
401# footer_template: '<div style="text-align:center;"><p>Produced by wallabag with %method%</p><p>Please open <a href="https://github.com/wallabag/wallabag/issues">an issue</a> if you have trouble with the display of this E-Book on your device.</p></div>'
402
400import: 403import:
401 page_title: 'Importar' 404 page_title: 'Importar'
402 page_description: "Benvenguda sus l'aisina de migracion de wallabag. Causissètz çai-jos lo servici dempuèi lo qual volètz migrar." 405 page_description: "Benvenguda sus l'aisina de migracion de wallabag. Causissètz çai-jos lo servici dempuèi lo qual volètz migrar."
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml
index c8e6cf6c..70e15c70 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml
@@ -397,6 +397,9 @@ tag:
397 add: 'Dodaj' 397 add: 'Dodaj'
398 placeholder: 'Możesz dodać kilka tagów, oddzielając je przecinkami.' 398 placeholder: 'Możesz dodać kilka tagów, oddzielając je przecinkami.'
399 399
400# export:
401# footer_template: '<div style="text-align:center;"><p>Produced by wallabag with %method%</p><p>Please open <a href="https://github.com/wallabag/wallabag/issues">an issue</a> if you have trouble with the display of this E-Book on your device.</p></div>'
402
400import: 403import:
401 page_title: 'Import' 404 page_title: 'Import'
402 page_description: 'Witaj w importerze Wallabag. Wybierz swoją poprzednią usługę, z której chcesz migrować.' 405 page_description: 'Witaj w importerze Wallabag. Wybierz swoją poprzednią usługę, z której chcesz migrować.'
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.pt.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.pt.yml
index 5c1ae058..9b3fea6b 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.pt.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.pt.yml
@@ -397,6 +397,9 @@ tag:
397 # add: 'Add' 397 # add: 'Add'
398 # placeholder: 'You can add several tags, separated by a comma.' 398 # placeholder: 'You can add several tags, separated by a comma.'
399 399
400# export:
401# footer_template: '<div style="text-align:center;"><p>Produced by wallabag with %method%</p><p>Please open <a href="https://github.com/wallabag/wallabag/issues">an issue</a> if you have trouble with the display of this E-Book on your device.</p></div>'
402
400import: 403import:
401 page_title: 'Importar' 404 page_title: 'Importar'
402 page_description: 'Bem-vindo ao importador do wallabag. Por favo selecione o serviço do qual deseja migrar.' 405 page_description: 'Bem-vindo ao importador do wallabag. Por favo selecione o serviço do qual deseja migrar.'
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml
index 0d6f5f8e..673ca183 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml
@@ -397,6 +397,9 @@ tag:
397 # add: 'Add' 397 # add: 'Add'
398 # placeholder: 'You can add several tags, separated by a comma.' 398 # placeholder: 'You can add several tags, separated by a comma.'
399 399
400# export:
401# footer_template: '<div style="text-align:center;"><p>Produced by wallabag with %method%</p><p>Please open <a href="https://github.com/wallabag/wallabag/issues">an issue</a> if you have trouble with the display of this E-Book on your device.</p></div>'
402
400import: 403import:
401 # page_title: 'Import' 404 # page_title: 'Import'
402 # page_description: 'Welcome to wallabag importer. Please select your previous service that you want to migrate.' 405 # page_description: 'Welcome to wallabag importer. Please select your previous service that you want to migrate.'
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml
index 87b5e200..563bc50b 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml
@@ -395,6 +395,9 @@ tag:
395 # add: 'Add' 395 # add: 'Add'
396 # placeholder: 'You can add several tags, separated by a comma.' 396 # placeholder: 'You can add several tags, separated by a comma.'
397 397
398# export:
399# footer_template: '<div style="text-align:center;"><p>Produced by wallabag with %method%</p><p>Please open <a href="https://github.com/wallabag/wallabag/issues">an issue</a> if you have trouble with the display of this E-Book on your device.</p></div>'
400
398import: 401import:
399 page_title: 'İçe Aktar' 402 page_title: 'İçe Aktar'
400 page_description: 'wallabag içe aktarma aracına hoşgeldiniz. Lütfen içe aktarmak istediğiiz önceki servisinizi seçin.' 403 page_description: 'wallabag içe aktarma aracına hoşgeldiniz. Lütfen içe aktarmak istediğiiz önceki servisinizi seçin.'