PDF generator doesn't know translate filter

kleinpetr
Backer | 475
+
0
-

Hi

I'm using Joseki/PdfResponse but if i try $this->sendResponse($pdf) throw me: Exception in Nette\Bridges\ApplicationLatte\Template::__toString(): Filter 'translate' is not defined. in /Users/kleinpetr/Projects/www/lesenisoft/vendor/latte/latte/src/Latte/Engine.php:291

What's the problem? Thanks for help.

Last edited by kleinpetr (2015-09-02 15:21)

David Matějka
Moderator | 5701
+
+1
-

You have to set translator using $template->setTranslator($translator).

Comments

kleinpetr:

Sorry for stupid question ! Thanks for help.

3 years ago
Pavel Kravčík
Member | 944
+
0
-

Filter 'translate' is not defined – https://latte.nette.org/en/#…

Probably you need register some filter.

Comments

kleinpetr:

Thanks for answer, where i find declaration of translate filter ?

3 years ago