diff --git a/README.md b/README.md index 3db61c1..e29e958 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,10 @@ protected $translator; public function injectTranslator(\l10nNetteTranslator\Translator $translator) { $this->translator = $translator; - $this->template->setTranslator($translator); +} + +protected function beforeRender() { + $this->template->setTranslator($this->translator); } ```