You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for reaching out! If I understand correctly, you'd like to extend the translation class for your model class to work with other (non-Mobility) plugins?
If your model name is Post, it defines a constant Post::Translation which you can simply modify:
classPost::Translation# .. your custom stuffend
It's a bit more tricky if you want to modify the translation class for all models. Mobility has a class, Mobility::ActiveRecord::ModelTranslation which it subclasses, so if you wanted to change the translation class for all models you could modify that one:
classMobility::ActiveRecord::ModelTranslation# ... your custom stuffend
I want to extend the translation class to work with some other plugins. Where can I find a HowTo or can someone help me to start?
I use the table backend and I need to include some things.
The text was updated successfully, but these errors were encountered: