Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Falaleev Maxim committed Nov 10, 2014
1 parent 4a8ef7d commit a21e02b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/Mindy/Application/BaseApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ public function __construct($config = null)
$this->registerCoreComponents();

$this->configure($config);
$this->initTranslate();
$this->attachBehaviors($this->behaviors);
$this->preloadComponents();

Expand Down Expand Up @@ -711,11 +712,19 @@ public function setHomeUrl($value)
/**
* @return object
*/
public function getTranslate()
protected function initTranslate()
{
return Translate::getInstance($this->locale);
}

/**
* @return object
*/
public function getTranslate()
{
return Translate::getInstance();
}

/**
* Returns a global value.
*
Expand Down

0 comments on commit a21e02b

Please sign in to comment.