Download the PHP package decline/transformat-bundle without Composer
On this page you can find all versions of the php package decline/transformat-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download decline/transformat-bundle
More information about decline/transformat-bundle
Files in decline/transformat-bundle
Package transformat-bundle
Short Description Symfony Bundle to format and sort translation files
License MIT
Informations about the package transformat-bundle
transformat-bundle
Symfony Bundle to format and sort translation files
Have you ever been fed up about keeping the content of your Symfony translation files organized, well structured and sorted? Yeah, me too. That's why I developed this little bundle to make things easier.
What it does:
- structures your translation files by a given template (which you can override of course)
- alphabetically sorts your entries by the source key
- checks for duplicate trans-unit id's in your xlf files
- optionally validates your xlf files against a xsd schema
Limitations:
- only works for xlf/xliff files at the moment
Get the bundle using composer
To install the bundle, require it using composer by running the following command at the root of your application:
Enable the bundle
Register the bundle in your application's kernel class:
Configure the bundle
This could be a possible configuration for the bundle:
Usage
Format all files in the directory which was configured in the settings:
Format a single file in the directory which was configured in the settings:
Override template
If you wish to override the twig template which is used for generating the formatted xlf-files, no problem! Just copy the twig template from
to this location (for example) in your application
and make your desired adjustments.
All versions of transformat-bundle with dependencies
symfony/symfony Version ^3.0
sensio/framework-extra-bundle Version ^3.0