コード例 #1
0
ファイル: ConfigadminController.php プロジェクト: phpscr/usvn
 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");
 }
コード例 #2
0
ファイル: TranslationTest.php プロジェクト: phpscr/usvn
 public function test_getLanguage()
 {
     USVN_Translation::initTranslation('fr_FR', 'app/locale');
     $this->assertEquals('fr_FR', USVN_Translation::getLanguage());
 }