Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added translator to templates

  • Loading branch information...
commit 254f4ad3f51d17ddeadbc94865cada6bd93e16ba 1 parent 6b2d509
Tomáš Kolinger authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 Application/UI/Presenter.php
9 Application/UI/Presenter.php
View
@@ -51,6 +51,15 @@ class Presenter extends \Nette\Application\UI\Presenter
+ protected function startup()
+ {
+ parent::startup();
+
+ $this->getTemplate()->setTranslator($this->translator);
+ }
+
+
+
/**
* @return string
*/
Please sign in to comment.
Something went wrong with that request. Please try again.