Exemplo n.º 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();
 }
Exemplo n.º 2
0
 public function tearDown()
 {
     // let's restore translation class, so that other tests use the default one
     QI18n::$DefaultTranslationClass = 'QTranslationPoParser';
 }