rainlab/translate-plugin

Broken translation editing in CMS

Closed this issue · 2 comments

This commit broke translations in the CMS: f0bb2b7

It seems that everything is saved in EN regardless of the selected site.

October version 3.5.15

I investigated a bit. It seems that CMS calls App::setLocale in Backend\Models\Preference model:

image

This then triggers the 'locale.changed' event and injects CMS's locale into the Translate plugin, which is not correct. Translate plugin should use the locale from the Site context.

Thanks, this makes sense.

Rolled back in 8b68d3a