This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

fobus
fobus

We are developing a custom plugin and we have problems on relation tables.

We have Countries table and offices table. Countries has many offices related to country_id on offices table. We have defined all relations in models and in yaml files.

Every thing works fine on CRUD.

We are implemented translation plugin in to our pluing, Countires tables works great with translation table, but offices table saves blank fields for second language.

When I check the "rainlab_translate_attributes" table I can see recods for "Countries" model but there is no record for Offices Model.

The same thing occurs on "Menu Lists Plugin" here is the thread : https://octobercms.com/forum/post/menu-items-translation-doesnt-work-2

So, are there a fix for this problem?

fobus
fobus

I think that October CMS is really a great project, but without support no body want to use and develop it.

I have wasted my 3 days for this bug, I have reported it on github and october cms forum, but still there is no response. Many people has smilar bug reports but they didn't get any response too.

Cpt.Meatball
Cpt.Meatball

I've encountered this problem too. It's preventing me from properly translating everything :/

fgomezserna5031
fgomezserna5031

Hi,

the solution is in this commit:

https://github.com/ariponce/translate-plugin/commit/ce343ef63df67c08214107ae4a64fccbb23f3d79

You have to remplace two files:

behaviors/TranslatableModel.php

and

traits/MLControl.php

Great work of ariponce.

I hope that this will be your solution.

Cpt.Meatball
Cpt.Meatball

Has this ever been pulled by rainlab?

janis.taranda18381
janis.taranda18381

Is this still an issue?

1-6 of 6

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.