From 5d1a9dc883ec879e22e8da2051a877f683961f85 Mon Sep 17 00:00:00 2001 From: Martin Zeman Date: Sun, 26 Apr 2015 18:51:21 +0200 Subject: [PATCH] Updated README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } ```