MutationDigitale / craft3-translate

Craft CMS plugin for static translations in CP
Other
12 stars 7 forks source link

Couple of issues when using Parse Templates utility #3

Closed chadcrowell closed 4 years ago

chadcrowell commented 4 years ago

When I click Parse Templates, I get Unknown "slugify" filter in "core.twig" at line 168. Full error: https://gist.github.com/chadcrowell/5037e8b29c48ed2e38aba018eda91f54

If I remove |slugify from my templates, I get Unknown "siteSwitcher" function in "language.twig" at line 13. Full error: https://gist.github.com/chadcrowell/e20ed3cb4e98c63385e5a43adf2992ad

Does your parse tool have trouble identifying installed plugins? Is there a way around this?

smcyr commented 4 years ago

Thanks for your report, I'll look into it.

smcyr commented 4 years ago

The problem was that the plugins registered the twig extensions for site requests only. I fixed the problem in the 2.0.3 release, could you try that please, thanks!

chadcrowell commented 4 years ago

Looks like it is parsing correctly now in 2.0.3, thanks!