https://github.com/koala-framework/component-content-import-export
Koala Framework Component Content Import and Export commands
https://github.com/koala-framework/component-content-import-export
Last synced: 11 months ago
JSON representation
Koala Framework Component Content Import and Export commands
- Host: GitHub
- URL: https://github.com/koala-framework/component-content-import-export
- Owner: koala-framework
- Created: 2017-06-08T13:59:07.000Z (about 9 years ago)
- Default Branch: 1.0
- Last Pushed: 2023-08-31T11:45:37.000Z (almost 3 years ago)
- Last Synced: 2025-06-24T13:17:21.613Z (12 months ago)
- Language: PHP
- Size: 39.1 KB
- Stars: 0
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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