OC v3 Compatible?
Opened this issue · 3 comments
chrisvidal commented
OC v3 Compatible?
gergo85 commented
I haven't tested it yet, but it probably works.
chrisvidal commented
i have tested and it is not working.
The plugin Rainlab/Translate
removed the model Locale
and it is used in the component Post
line 91 foreach (\RainLab\Translate\Models\Locale::listEnabled() as $code => $locale) {
so it breaks.
I guess now we need to use the new model Site introduced in v3
chrisvidal commented
replacing the line 91 in the component Post.php
should do th trick for v3
foreach (\RainLab\Translate\Classes\Locale::listEnabled() as $code => $locale) {
but it would required to test first if we are on v3 or not maybe.
You can refer to this code which tackles the same issue.