public function indexAction() { $this->view->config = Zend_Registry::get("config"); if ($this->view->config->ldap == null) { $this->view->config->ldap = array(); } if ($this->view->config->ldap->options == null) { $this->view->config->ldap->options = array(); } $this->view->locale = new Zend_Locale(USVN_Translation::getLanguage()); $this->render("index"); }
public function test_getLanguage() { USVN_Translation::initTranslation('fr_FR', 'app/locale'); $this->assertEquals('fr_FR', USVN_Translation::getLanguage()); }