r3h6 / form-translator
Provides a backend module and cli for translating forms.
Installs: 2 131
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 3
Open Issues: 1
Type:typo3-cms-extension
Requires
- php: >= 7.4, < 8.3
- softcreatr/jsonpath: ^0.7.5 || ^0.8.2
- typo3/cms-core: ^11.5 || ^12.4
- typo3/cms-form: ^11.5 || ^12.4
Requires (Dev)
- clue/phar-composer: ^1.3
- dealerdirect/phpcodesniffer-composer-installer: ^1.0
- friendsofphp/php-cs-fixer: ^3.3
- helmich/typo3-typoscript-lint: ^3.1
- michielroos/typo3scan: ^1.7
- phpcompatibility/php-compatibility: ^9.3
- phpmd/phpmd: @stable
- saschaegerer/phpstan-typo3: ^1.0
- sbuerk/typo3-cmscomposerinstallers-testingframework-bridge: ^0.1.3
- ssch/typo3-rector: ^1.2
- typo3/coding-standards: ^0.5.0
- typo3/testing-framework: ^6.16 || ^7.0@dev
Replaces
- typo3-ter/form-translator: 2.0.1
README
form_translator
This extension provides a backend module for translating TYPO3 form framework forms and a cli for creating a source xliff file for a given form.
Installation
Either from TYPO3 TER or through composer $ composer req r3h6/form-translator
.
Integration
If you like use machine translation by LibreTranslate you must only configure an api host in the extension configuration. See available mirrors.
How it works
The extensions adds a translation file path to the *.form.yaml file when localize through the backend module.
# example.form.yaml renderingOptions: translation: translationFiles: 99: fileadmin/form_definitions/l10n/example.xlf
Known issues
- Localization of error messages is not possible
Develpment/Contribution
Pull request are welcome!
Please note: I will not include other translation api's than LibreTranslate in this extension.
If you need an other service, you can create your own by implementing TranslationServiceInterface
.