I do not seem to be able to properly display translated text when the call to translate, using either __() or $this->_(), is put into an include. In my template file I have this statement:
<?php include("inc/bku-block-footer.php"); ?>
No matter what I do, the untranslated text is displayed in the frontend. I have tried several things already:
Fiddled with $config->templateCompile = false in config.php as described here. Gave me additional options in the backend. None of these options seems to have any effect on the frontend.
Fiddled with textdomains like described here. To no avail.
Fiddled with template compilation in general, tried all options. No effects.
Tried adding the ProcessWire namespace to my template file. Again, no effect on translations.
It doesn't seem to matter, any call to the translation functions returns the untranslated, original value unless I place the call inside the template file. I must be missing something very obvious, anyone got an idea?