public function beforeAction($action) { Languages::init(); if (!parent::beforeAction($action)) { return false; } return true; }