This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
I'm trying to implement rainlab.translate to localize my plugin I built with the builder. Damn the builder is a wonderful piece of software!
I can't get my form fields to show the language picker, I did everything the github docs said but no luck. I guess there's some more backend work to do but nothing is stated in the docs. (Is there any more tables to create to contain the localizations?)
For the sake of documenting the process we really should get a tl;dr summary for newcomers. I have good Laravel 4/5 experience and I'm having trouble getting the translate plugin to work with my builder-built plugin.
I'd really love to learn how to do it the right way if anyone can help. Once I got it done, I guarantee I'll make a blog post about it so people can find it off Google and get to work.
Thanks!
My implement / translatable arrays were in the wrong file. Now everything works! I'll write that damn blog post right away!
Thanx, I have the same problem here and I don't find any instruction about this anywhere or I don't understand it and do not succeed. Where is you post please?
Ok, I understood it now, as documented in the Translate Doc: (Plugin Translate needs to be installed)
add
public $implement = ['RainLab.Translate.Behaviors.TranslatableModel']; public $translatable = ['name','text'];
into /models/YourClassName.php
and define as above with name and text the fields that have to be translated.
Last updated
1-4 of 4