Closed xenolOnline closed 9 years ago
Hey! You should add the table to the extension configuration as seen in this example in the readme file:
'tables' => [ // Properties of individual tables
[
'connection' => 'db', // connection identifier
'table' => '{{%language}}', // table name
'columns' => ['name', 'name_ascii'] //names of multilingual fields
],
]
This way the extension will scan your columns for language elements, and it won't delete them (because the extension will find the original data in your table, and it knows that you still use them). The scanner will find new elements as well, so you can remove the manual message save in the beforeInsert() method (but you need to manually run the scan to find new elements if you do this).
Yes, You are right, Sorry for my inattention
Thanks for the quick reply!
Hello, I use your awesome extension. I translate db message like this:
But when I click on Scan link all database records will be found, and if I click on Optimize link (accidentally) script will remove my translations. But these mesages are still in use