first commit

This commit is contained in:
2023-09-12 21:41:04 +02:00
commit 3361a7f053
13284 changed files with 2116755 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
<?php
class WPML_TM_ATE_API_Error {
public function log( $message ) {
$wpml_admin_notices = wpml_get_admin_notices();
$notice = new WPML_Notice(
WPML_TM_ATE_Jobs_Actions::RESPONSE_ATE_ERROR_NOTICE_ID,
sprintf(
__( 'There was a problem communicating with ATE: %s ', 'wpml-translation-management' ),
'(<i>' . $message . '</i>)'
),
WPML_TM_ATE_Jobs_Actions::RESPONSE_ATE_ERROR_NOTICE_GROUP
);
$notice->set_css_class_types( array( 'warning' ) );
$notice->add_capability_check( array( 'manage_options', 'wpml_manage_translation_management' ) );
$notice->set_flash();
$wpml_admin_notices->add_notice( $notice );
}
}