Download the PHP package adbros/translation-extra without Composer
On this page you can find all versions of the php package adbros/translation-extra. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download adbros/translation-extra
More information about adbros/translation-extra
Files in adbros/translation-extra
Package translation-extra
Short Description Extracting translation contents and updating catalogues automatically for Nette FW.
License MIT
Informations about the package translation-extra
adbros/translation-extra
Extracting translation contents and updating catalogues automatically for Nette FW.
Inspired by kdyby/translation package.
Requirements
Requires symfony/console, you may use contributte/console.
Instalation
Register extension
Default configuration
Usage
Latte templates
LatteExtractor walks the whole template and collects every {_'message'} (and any print with the translate filter) whose message is a string literal, including HTML attribute values, n: attributes, all {if}/{elseif}/{else} branches, loops and nested blocks. Dynamic messages like {_$message} are skipped.
A template that cannot be parsed does not stop the extraction. It is skipped and reported as a warning, so its messages are missing from the extracted catalogue. When any template is skipped, --clean is not applied: the extracted messages are only merged into the translation files and a warning says that cleaning was skipped, so no existing messages are removed. Fix the reported templates and run the command again to clean the files.
All versions of translation-extra with dependencies
latte/latte Version ^3.0.23
nette/neon Version ^2.4 || ^3.0
symfony/console Version ^5.0 || ^6.0
symfony/finder Version ^5.0 || ^6.0
symfony/translation Version ^5.0 || ^6.0