Download the PHP package c975l/xliff-bundle without Composer
On this page you can find all versions of the php package c975l/xliff-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download c975l/xliff-bundle
More information about c975l/xliff-bundle
Files in c975l/xliff-bundle
Package xliff-bundle
Short Description This bundle exports the content of a database table in xlf files
License MIT
Homepage https://github.com/975L/XliffBundle
Informations about the package xliff-bundle
XliffBundle
XliffBundle does the following:
- exports xlf files from a database, where columns are languages, to be used as translation files in Symfony (or other).
XliffBundle dedicated web page.
XliffBundle API documentation.
Bundle installation
Step 1: Download the Bundle
Use Composer to install the library
We strongly recommend to use this only on the dev part
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php
file of your project:
Step 3: Enable the Routes
Then, enable the routes by adding them to the app/config/routing_dev.yml
file of your project:
Step 5: Create MySql table
You can use php bin/console make:migration
to create the migration file as documented in Symfony's Doctrine docs OR use /Resources/sql/translations.sql
to create the table translations
. The DROP TABLE
is commented to avoid dropping by mistake.
Step 4: Define languages to be exported
v2.0+ of c975LXliffBundle uses c975L/ConfigBundle to manage configuration parameters. Use the Route "/xliff/config" with the proper user role to modify them.
Upgrading from v1.x? Check UPGRADE.md.
How to use
Call your localhost with /xliff/create
, this will run the bundle and create the xlf files.
Please note that the missing translations in a language will be replaced by the source language between brackets. This will break the ability to see from Symfony's toolbar the missing translations, but as we rely on the database, we'll still be able to know what are the missing texts.
If this project help you to reduce time to develop, you can sponsor me via the "Sponsor" button at the top :)
All versions of xliff-bundle with dependencies
c975l/config-bundle Version ^2
c975l/services-bundle Version ^1
c975l/toolbar-bundle Version ^1
doctrine/doctrine-bundle Version *
doctrine/orm Version *
sensio/framework-extra-bundle Version *
symfony/framework-bundle Version *
twig/twig Version *