function activate_xliff() { $message = __('XLIFF is now included in WPML\'s Translation Management. Please deactivate and uninstall XLIFF Plugin, in order to use the new xliff features.', 'wpml-translation-management'); $args = array('id' => 'wpml_xliff_legacy', 'group' => 'translation_management_modules_check', 'msg' => $message, 'type' => 'error', 'admin_notice' => true, 'hide' => false); if (defined("WPML_XLIFF_VERSION") && WPML_XLIFF_VERSION < '0.9.8') { if (is_admin()) { ICL_AdminNotifier::add_message($args); } } else { if ($this->is_module_valid("WPML_Translation_Management_XLIFF", $args)) { if (is_admin()) { $this->remove_message_by_id("wpml_xliff_legacy"); } WPML_Translation_Management_XLIFF::get_instance(); } } }