diff --git a/src/Kunstmaan/TranslatorBundle/Resources/config/services.yml b/src/Kunstmaan/TranslatorBundle/Resources/config/services.yml index 2b2c1edea0..ec3de4c8c4 100644 --- a/src/Kunstmaan/TranslatorBundle/Resources/config/services.yml +++ b/src/Kunstmaan/TranslatorBundle/Resources/config/services.yml @@ -59,7 +59,7 @@ services: kunstmaan_translator.service.translator.loader: class: Kunstmaan\TranslatorBundle\Service\Translator\Loader tags: - - { name: 'translation.loader', alias: 'yml' } + - { name: 'translation.loader', alias: 'database' } calls: - [setTranslationRepository, ['@kunstmaan_translator.repository.translation']] diff --git a/src/Kunstmaan/TranslatorBundle/Tests/Service/Importer/ImporterTest.php b/src/Kunstmaan/TranslatorBundle/Tests/Service/Importer/ImporterTest.php index 2adfa27a16..5a1f500999 100644 --- a/src/Kunstmaan/TranslatorBundle/Tests/Service/Importer/ImporterTest.php +++ b/src/Kunstmaan/TranslatorBundle/Tests/Service/Importer/ImporterTest.php @@ -40,7 +40,7 @@ public function testImportExistingDomainFileNonForced() } $translation = $this->translationRepository->findOneBy(array('keyword' => 'headers.frontpage', 'locale' => 'en')); - $this->assertEquals('FrontPage', $translation->getText()); + $this->assertEquals('a not yet updated frontpage header', $translation->getText()); } /** @@ -53,7 +53,7 @@ public function testImportExistingDomainFileForced() } $translation = $this->translationRepository->findOneBy(array('keyword' => 'headers.frontpage', 'locale' => 'en')); - $this->assertEquals('a not yet updated frontpage header', $translation->getText()); + $this->assertEquals('FrontPage', $translation->getText()); } public function getNewDomainTestFinder() diff --git a/src/Kunstmaan/TranslatorBundle/Tests/app/config/config.yml b/src/Kunstmaan/TranslatorBundle/Tests/app/config/config.yml index 4ff8b9f0fb..cb744747c1 100644 --- a/src/Kunstmaan/TranslatorBundle/Tests/app/config/config.yml +++ b/src/Kunstmaan/TranslatorBundle/Tests/app/config/config.yml @@ -13,6 +13,12 @@ framework: session: ~ fragments: ~ +services: + translation.loader.yml: + class: Symfony\Component\Translation\Loader\YamlFileLoader + tags: + - { name: translation.loader, alias: yml } + kunstmaan_translator: managed_locales: ['nl','en','de'] cache_dir: "%kernel.cache_dir%/translations"