This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
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?
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.
I've encountered this problem too. It's preventing me from properly translating everything :/
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.
1-6 of 6