예제 #1
0
파일: I18nTest.php 프로젝트: Kervinou/OBM
 public function setup()
 {
     SI18n::add_data_path(dirname(__FILE__).'/data/simple');
     SI18n::set_locale('fr');
 }
예제 #2
0
파일: of_i18n.php 프로젝트: Kervinou/OBM
<?php

require_once(dirname(__FILE__).'/../lib/Stato/i18n/i18n.php');
if($GLOBALS['module']) {
  SI18n::add_data_path(dirname(__FILE__).'/../../conf/locale/'.$GLOBALS['module']);
  SI18n::add_data_path(dirname(__FILE__).'/../../locale/'.$GLOBALS['module']);
}
SI18n::add_data_path(dirname(__FILE__).'/../../locale');
SI18n::add_data_path(dirname(__FILE__).'/../../conf/locale');