Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added configuration option to disable source position in xliff dump #442

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public function getConfigTreeBuilder()
->children()
->booleanNode('add_date')->defaultTrue()->end()
->booleanNode('add_references')->defaultTrue()->end()
->booleanNode('add_reference_position')->defaultTrue()->end()
->end()
->end()
->scalarNode('source_language')->defaultValue('en')->end()
Expand Down
6 changes: 6 additions & 0 deletions Resources/config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@
<call method="setAddReference">
<argument>%jms_translation.dumper.add_references%</argument>
</call>
<call method="setAddReferencePosition">
<argument>%jms_translation.dumper.add_reference_position%</argument>
</call>
<tag name="jms_translation.dumper" format="xliff" />
</service>
<service id="jms_translation.dumper.xlf_dumper" class="%jms_translation.dumper.xliff_dumper.class%" public="false">
Expand All @@ -82,6 +85,9 @@
<call method="setAddReference">
<argument>%jms_translation.dumper.add_references%</argument>
</call>
<call method="setAddReferencePosition">
<argument>%jms_translation.dumper.add_reference_position%</argument>
</call>
<tag name="jms_translation.dumper" format="xlf" />
</service>
<service id="jms_translation.dumper.yaml_dumper" class="%jms_translation.dumper.yaml_dumper.class%" public="false">
Expand Down