diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-01-05 22:38:09 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-01-05 22:38:09 +0100 |
commit | d1af8ad4dbf7f3ce5170655c2fa8403406283039 (patch) | |
tree | c8ba1d7f6c49a764b14f250b3125665c58ff68fa /src/Wallabag/ImportBundle/Import/WallabagV1Import.php | |
parent | 8eedc8cfacc07e998f6f0bcdfe5b76496a215ea2 (diff) | |
download | wallabag-d1af8ad4dbf7f3ce5170655c2fa8403406283039.tar.gz wallabag-d1af8ad4dbf7f3ce5170655c2fa8403406283039.tar.zst wallabag-d1af8ad4dbf7f3ce5170655c2fa8403406283039.zip |
Added french translations
Diffstat (limited to 'src/Wallabag/ImportBundle/Import/WallabagV1Import.php')
-rw-r--r-- | src/Wallabag/ImportBundle/Import/WallabagV1Import.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Wallabag/ImportBundle/Import/WallabagV1Import.php b/src/Wallabag/ImportBundle/Import/WallabagV1Import.php index 0866ebe9..68f0574f 100644 --- a/src/Wallabag/ImportBundle/Import/WallabagV1Import.php +++ b/src/Wallabag/ImportBundle/Import/WallabagV1Import.php | |||
@@ -5,6 +5,7 @@ namespace Wallabag\ImportBundle\Import; | |||
5 | use Psr\Log\LoggerInterface; | 5 | use Psr\Log\LoggerInterface; |
6 | use Psr\Log\NullLogger; | 6 | use Psr\Log\NullLogger; |
7 | use Doctrine\ORM\EntityManager; | 7 | use Doctrine\ORM\EntityManager; |
8 | use Symfony\Component\Translation\TranslatorInterface; | ||
8 | use Wallabag\CoreBundle\Entity\Entry; | 9 | use Wallabag\CoreBundle\Entity\Entry; |
9 | use Wallabag\UserBundle\Entity\User; | 10 | use Wallabag\UserBundle\Entity\User; |
10 | use Wallabag\CoreBundle\Tools\Utils; | 11 | use Wallabag\CoreBundle\Tools\Utils; |
@@ -17,11 +18,13 @@ class WallabagV1Import implements ImportInterface | |||
17 | private $skippedEntries = 0; | 18 | private $skippedEntries = 0; |
18 | private $importedEntries = 0; | 19 | private $importedEntries = 0; |
19 | private $filepath; | 20 | private $filepath; |
21 | private $translator; | ||
20 | 22 | ||
21 | public function __construct(EntityManager $em) | 23 | public function __construct(EntityManager $em, TranslatorInterface $translator) |
22 | { | 24 | { |
23 | $this->em = $em; | 25 | $this->em = $em; |
24 | $this->logger = new NullLogger(); | 26 | $this->logger = new NullLogger(); |
27 | $this->translator = $translator; | ||
25 | } | 28 | } |
26 | 29 | ||
27 | public function setLogger(LoggerInterface $logger) | 30 | public function setLogger(LoggerInterface $logger) |
@@ -47,7 +50,7 @@ class WallabagV1Import implements ImportInterface | |||
47 | */ | 50 | */ |
48 | public function getName() | 51 | public function getName() |
49 | { | 52 | { |
50 | return 'Wallabag v1'; | 53 | return 'wallabag v1'; |
51 | } | 54 | } |
52 | 55 | ||
53 | /** | 56 | /** |
@@ -63,7 +66,7 @@ class WallabagV1Import implements ImportInterface | |||
63 | */ | 66 | */ |
64 | public function getDescription() | 67 | public function getDescription() |
65 | { | 68 | { |
66 | return 'This importer will import all your wallabag v1 articles. On your config page, click on "JSON export" in the "Export your wallabag data" section. You will have a "wallabag-export-1-xxxx-xx-xx.json" file.'; | 69 | return $this->translator->trans('This importer will import all your wallabag v1 articles. On your config page, click on "JSON export" in the "Export your wallabag data" section. You will have a "wallabag-export-1-xxxx-xx-xx.json" file.'); |
67 | } | 70 | } |
68 | 71 | ||
69 | /** | 72 | /** |