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