Download the PHP package setono/sylius-fragment-translation-plugin without Composer
On this page you can find all versions of the php package setono/sylius-fragment-translation-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download setono/sylius-fragment-translation-plugin
More information about setono/sylius-fragment-translation-plugin
Files in setono/sylius-fragment-translation-plugin
Package sylius-fragment-translation-plugin
Short Description Will translate fragments of text automatically
License MIT
Informations about the package sylius-fragment-translation-plugin
Sylius Fragment Translation Plugin
Will translate fragments of text automatically.
Installation
Step 1: Install dependencies
This plugin uses the Doctrine ORM Batcher bundle. Install that first.
Step 2: Download the plugin
Open a command console, enter your project directory and execute the following command to download the latest stable version of this plugin:
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Step 3: Enable the plugin
Then, enable the plugin by adding it to the list of registered plugins/bundles
in config/bundles.php
file of your project before (!) SyliusGridBundle
:
Step 4: Configure plugin
First import the general configuration:
Then configure what resources you want to 'fragment translate':
Step 5: Import routing
Step 6: Update your database schema
Step 7: Using asynchronous transport (optional, but recommended)
All commands in this plugin will extend the CommandInterface. Therefore you can route all commands easily by adding this to your Messenger config:
Usage
Step 1: Create a fragment translation
Go to /admin/fragment-translations/new
and try to input:
Field | Value |
---|---|
Locale | da_DK (or any other secondary locale you have created) |
Search string | Sticker |
Replace string | Klistermærke |
Step 2: Run CLI command
If you look in your database you should now have Danish translations for the products with names containing Sticker
and the names should have been translated into Klistermærke
.
Step 3: Using asynchronous transport (recommended)
All versions of sylius-fragment-translation-plugin with dependencies
doctrine/orm Version ^2.7
doctrine/persistence Version ^1.3 || ^2.0 || ^3.0
setono/doctrine-orm-batcher Version ^0.6
setono/doctrine-orm-batcher-bundle Version ^0.3.1
sylius/resource-bundle Version ^1.6
symfony/config Version ^5.4 || ^6.4
symfony/console Version ^5.4 || ^6.4
symfony/dependency-injection Version ^5.4 || ^6.4
symfony/form Version ^5.4 || ^6.4
symfony/messenger Version ^5.4 || ^6.4
symfony/property-access Version ^5.4 || ^6.4
webmozart/assert Version ^1.9