A plugin I maintain uses Twig templates to produce HTML (and some other outputs). I've tried using
__() within these (first adding the i18n functions with
$twig->addFunction()) but it doesn't work. The strings are output correctly, but not picked up for inclusion in the
For example the following in
base.twig should be translatable:
I'm obviously off on the wrong track here. Anyone got any pointers for doing this?