rainlab / translate-plugin

Enables multi-lingual sites
Other
125 stars 88 forks source link

Secondary languages translations overrides primary translations of Settings-Model fields #711

Closed jannikholsten closed 1 year ago

jannikholsten commented 1 year ago

Hi, I'm struggeling with translation in Settings-Model. I've got three different languages for my page, german, english and spanish. German is my default language, which means, it's my primary site. The issue now is, everytime I edit the translation for english or spanish, it overrides the german translation to the language I just edited. Is that probably a bug in the translate-plugin or did I miss some important code in my settings model? Thanks for any help.

public $implement = [\System\Behaviors\SettingsModel::class, \RainLab\Translate\Behaviors\TranslatableModel::class]; public $translatable = ['linktext', 'map_hint_text', 'map_hint_btn_text', 'map_hint_cookie_text'];

daftspunk commented 1 year ago

This is definitely a bug coming from the core. It has been fixed in the next patch release of October CMS (v3.2.8). It should be released early next week.

Thanks

idOn-studio commented 1 year ago

I still have this problem, latest version of october and latest version of the plugin installed directly from the marketplace. In addition, the drop-down to select the language next to the field is not displayed at all

Screenshot 2023-03-20 alle 14 59 30
jannikholsten commented 1 year ago

For me, everything works as expected now since the latest updates

In addition, the drop-down to select the language next to the field is not displayed at all

There won't be a dropdown next to the field. You have to switch the language on the top right corner where you also switch the current site. Schnappschuss_032023_034945_PM

idOn-studio commented 1 year ago

I just discovered that to work properly within the blueprint you need to include the "multisite" option. This way it works correctly