studiomitte / csv2xlf
Convert CSV to XLF
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:typo3-cms-extension
Requires
- league/csv: ^9.16
- typo3/cms-core: ^12 || ^13
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3
- kubawerlos/php-cs-fixer-custom-fixers: ^3.21
- phpunit/phpunit: ^9
- typo3/cms-composer-installers: ^3.1.3 || 4.0.0-RC1 || ^5.0
- typo3/cms-form: ^11.5.30 || ^12.4.5
- typo3/coding-standards: ^0.5.3
- typo3/testing-framework: ^7.0.1
- webmozart/assert: ^1.11.0
README
This extension provides a command to generate a XLF file and its translations from a CSV file.
The typical use case is to provide an online Excel/Google Docs for clients to provide translations which then are converted to XLF files.
Installation
composer require studiomitte/csv2xlf
Usage
CSV to XLF
CSV looks like this
"key","en","de"
"example","This is an example NEW","Das ist ein Beispiel","Ceci est un exemple"
"example2","<![CDATA[<h3>Datenschutzhinweis (bs)</h3>","Das ist ein Beispiel"
With the following requirements:
- The first row is the header
- The header starts with
key
, followed byen
and afterward the language codes - Default is always
en
./bin/typo3 csv2xlf:csv2xlf packages/csv2xlf/Resources/Private/Examples/csv2xlf/in.csv packages/csv2xlf/Resources/Private/Examples/csv2xlf/out.xlf
XLF to CSV
./bin/typo3 csv2xlf:xlf2csv packages/csv2xlf/Resources/Private/Examples/xlf2csv/in.xlf packages/csv2xlf/Resources/Private/Examples/xlf2csv/out.csv de,fr,es
Credits
This extension was created by Studio Mitte with ♥.
Find more TYPO3 extensions we have developed that provide additional features for TYPO3 sites.