famelo / translation-helper
Package to automatically add missing labels to xlf files
Installs: 72
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Type:typo3-flow-package
Requires
This package is auto-updated.
Last update: 2024-10-05 18:58:37 UTC
README
This package helps you to translate your Flow projects by automatically creating the needed xlf files and trans-items when you use the translate viewHelper or the translate method of the \TYPO3\Flow\I18n\Translator.
Requirements
This package currently depends on 2 pending changes that improve the Translator and TranslationViewHelper to combine the "translateByOriginalLabel" and "translateById" methods into one "translate" method that can easily be catched through AOP.
-
[WIP][FEATURE] Refactor TranslateViewHelper to use new translate method (https://review.typo3.org/#/c/28899/)
-
[WIP][FEATURE] Improve Translator API (https://review.typo3.org/#/c/28897/)
Settings
In order to enable the automatic generation you need to add configuration like this to your Settings.yaml
Famelo:
TranslationHelper:
autoCreateTranslations: true
autoCreationWhitelist:
- My.Package
Logging
The extension will write to a seperate Translatio.log which label will be added were, so you can keep a bit track of it.