koala-framework / component-content-import-export
Installs: 3 823
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 6
Forks: 2
Open Issues: 0
Requires
- geekwright/po: ^1.0
- koala-framework/koala-framework: ~3.10 | ~4.0 | ~5.0
- symfony/console: ~2.6
This package is auto-updated.
Last update: 2024-11-30 01:41:18 UTC
README
# PO
./vendor/bin/component-content-import-export export --component-id=root | ./vendor/bin/component-content-import-export convert:to-po > out.po
./vendor/bin/component-content-import-export convert:from-po < out.po | ./vendor/bin/component-content-import-export import --subrootId=root
When converting from PO to the importable format --reference-file=fileName or -r filename can be used to provide a different file for references. When a msgid doesnt exist in the referencefile it gets skipped.
If no file is provided, input-file is used for references.
# Xliff
./vendor/bin/component-content-import-export export --component-id=root | ./vendor/bin/component-content-import-export convert:to-xliff -l de-DE > out.xlf
./vendor/bin/component-content-import-export convert:from-xliff < out.xlf | ./vendor/bin/component-content-import-export import --subrootId=root
On convert:to-xliff "-l" or "--source-lang" can be used to define the source-language attribute for the xliff-document. Without the standard "de-AT" is used.
# Translating for Trl-Components
./vendor/bin/component-content-import-export export --component-id=root-master --isTrl | ./vendor/bin/component-content-import-export convert:to-po > out.po
./vendor/bin/component-content-import-export convert:from-po < out.po | ./vendor/bin/component-content-import-export import --subrootId=root-trl --isTrl