コード例 #1
0
 protected function Form_Create()
 {
     // let's change translation class
     require_once 'sample_translator.class.php';
     QI18n::$DefaultTranslationClass = 'QSampleTranslation';
     // Set default language to French
     QApplication::$LanguageCode = 'fr';
     QApplication::$CountryCode = null;
     QI18n::Initialize();
 }
コード例 #2
0
ファイル: QI18nTests.php プロジェクト: tomVertuoz/framework
 public function tearDown()
 {
     // let's restore translation class, so that other tests use the default one
     QI18n::$DefaultTranslationClass = 'QTranslationPoParser';
 }