Skip to content

Commit 34d301e

Browse files
Merge pull request #7 from ch3ric/master
Removed useless conf and fixed filename during export
2 parents f774ac2 + b7d8843 commit 34d301e

4 files changed

Lines changed: 1 addition & 14 deletions

File tree

Command/ExportCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ protected function exportTranslationFileList($bundle, $locale, ArrayCollection $
166166
$catalogue = new MessageCatalogue((string) $locale);
167167

168168
foreach ($translationList as $translation) {
169-
$catalogue->set($translation->getEntry()->getAlias(), $translation->getValue(), $translation->getEntry()->getDomain());
169+
$catalogue->set($translation->getEntry()->getAlias(), $translation->getValue(), $translation->getEntry()->getFilename());
170170
}
171171

172172
$writer->writeTranslations($catalogue, $translation->getEntry()->getFormat(), array('path' => dirname($filePath)));

DependencyInjection/Configuration.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,6 @@ public function getConfigTreeBuilder()
3535
->end()
3636
->end()
3737
->end()
38-
->arrayNode('exporter')
39-
->children()
40-
->scalarNode('type')
41-
->cannotBeOverwritten()
42-
->isRequired()
43-
->cannotBeEmpty()
44-
->end()
45-
->end()
46-
->end()
4738
->end();
4839

4940
return $treeBuilder;

DependencyInjection/ServerGroveTranslationEditorExtension.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,5 @@ public function load(array $configs, ContainerBuilder $container)
2323

2424
$container->setParameter($this->getAlias() . '.storage.type', $config['storage']['type']);
2525
$container->setParameter($this->getAlias() . '.storage.manager', $config['storage']['manager']);
26-
27-
$container->setParameter($this->getAlias() . '.exporter.type', $config['exporter']['type']);
2826
}
2927
}

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ A sample configuration (in your config_dev.yml):
6767
storage:
6868
type: server_grove_translation_editor.storage.orm
6969
manager: doctrine.orm.entity_manager
70-
exporter:
71-
type: server_grove_translation_editor.exporter.yaml
7270

7371
Add the routing configuration to app/config/routing_dev.yml
7472

0 commit comments

Comments
 (0)