Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1.45 KB

File metadata and controls

49 lines (32 loc) · 1.45 KB

Migrating from tailrdigital/sulu-translations-bundle to phpro/sulu-translations-bundle

This guide helps you migrate from the old tailrdigital/sulu-translations-bundle to the new phpro/sulu-translations-bundle.

1. Remove the old package

First, remove the old package from your project:

composer remove tailrdigital/sulu-translations-bundle

2. Install the new package

Next, install the new package:

composer require phpro/sulu-translations-bundle

3. Find / Replace references

You need to replace all references from tailr or tailrdigital to phpro. You can do this with a simple find/replace (with preserve case) in your IDE.

4. Rename translations table

The new package uses a different table name for storing translations. You need to rename the existing table tailr_translations to phpro_translations. You can do this with the following SQL command:

ALTER TABLE tailr_translations RENAME TO phpro_translations;

5. Rebuild admin

Make sure that the package.json and lock file contains links to phpro instead of tailrdigital. Rebuild the Sulu admin to ensure all changes are applied:

bin/console sulu:admin:build

6. Reactivate permissions

Make sure you've set the correct permissions in the Sulu admin for this package. Go to Settings > User Roles and enable the permissions (phpro_translations) you need. Afterwards you could find the translations view/panel via Settings > Manage translations.