Download the PHP package sitegeist/lostintranslation-csvpo without Composer
On this page you can find all versions of the php package sitegeist/lostintranslation-csvpo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package lostintranslation-csvpo
Sitegeist.LostInTranslation.CsvPO
Fill gaps in CsvPO translations by using the Deepl Service from Sitegeist.LostInTranslation.
Authors & Sponsors
- Martin Ficzel - [email protected]
The development and the public-releases of this package is generously sponsored by our employer http://www.sitegeist.de.
Installation
Sitegeist.LostInTranslation is available via packagist. Run composer require sitegeist/lostintranslation-csvpo
.
We use semantic-versioning so every breaking change will increase the major-version number.
Usage
The package finds missing translations, translates them via DeepL API and creates translation overrides in the database. Those can then be tested and later be baked back to the csv files via commands of the CsvPO package.
General workflow
- Use the command
./flow csvpo:translateAll
or./flow csvpo:translate
to create new translation definitions. This will create translation overrides that are stored in the database. - Test the new translations !!!
- Write the translations to the csv files
./flow csvpo:bakeAll
or./flow csvpo:bake
to update the translation csv files. - Reset then translation overrides
./flow csvpo:resetAll
or./flow csvpo:reset
Examples of translation commands
-
Add missing french translations to all sources from german.
-
Add missing danisch translations to all sources from german but specify deeply locale.
- Calculate all french translations from german again regardless wether they already exist.
Commands
-
CsvPO:TranslateAll: Add missing translations for all translation sources
- CsvPO:Translate: Add missing translations for the given translation source
Workflow
Contribution
We will gladly accept contributions. Please send us pull requests.