public function indexAction()
 {
     $this->view->languages = $this->repository->getLanguages();
     $this->view->actions = array(array('label' => getGS('Add new Language'), 'module' => 'admin', 'controller' => 'languages', 'action' => 'add', 'resource' => 'language', 'privilege' => 'manage'));
 }
 public function indexAction()
 {
     $translator = \Zend_Registry::get('container')->getService('translator');
     $this->view->languages = $this->repository->getLanguages();
     $this->view->actions = array(array('label' => $translator->trans('Add new Language', array(), 'languages'), 'module' => 'admin', 'controller' => 'languages', 'action' => 'add', 'resource' => 'language', 'privilege' => 'manage'));
 }