Skip to content

Commit

Permalink
Updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Zemistr committed Apr 26, 2015
1 parent 63c24c1 commit 5d1a9dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
```

Expand Down

0 comments on commit 5d1a9dc

Please sign in to comment.