$locales = ['en_US', 'fr_CA', 'nl_NL'];
- $this->enableMultilingual();
- CRM_Core_I18n_Schema::addLocale('fr_CA', 'en_US');
- CRM_Core_I18n_Schema::addLocale('nl_NL', 'en_US');
-
+ $cleanup = $this->useMultilingual(['en_US' => ['fr_CA', 'nl_NL']]);
CRM_Core_I18n::singleton()->setLocale('en_US');
$event = $this->eventCreate();
// other fields
$this->compareLocalizedCopy($eventData, $eventCopy, $locParams, $identicalParams, $locSuffix);
}
-
- // reset to en_US only
- CRM_Core_I18n::singleton()->setLocale('en_US');
- CRM_Core_I18n_Schema::makeSinglelingual('en_US');
-
}
protected function compareLocalizedCopy($source, $dest, $locParams, $identicalParams, $locSuffix) {