';
$message .= sprintf( __( "This version of WPML allows the use of taxonomy terms with the same name across multiple languages. Your site currently has %d taxonomy terms that require an update, so they will not be displayed with language suffixes.", "sitepress" ), $suffix_count );
$message .= '
';
}
ICL_AdminNotifier::addMessage( "termssuffixnotice", $message, 'error', true, false, false, 'terms-suffix', true );
}
$sitepress->set_setting( 'taxonomy_names_checked', true, true );
}
//TODO: [WPML 3.3] the ICL_AdminNotifier class got improved and we should not call \ICL_AdminNotifier::displayMessages to display an admin notice
ICL_AdminNotifier::displayMessages( 'terms-suffix' );
}
/**
* Returns the HTML for the display of all terms with a language suffix in the troubleshooting menu.
* @return string
*/
public static function display_terms_with_suffix() {
$terms_to_display = WPML_Terms_Translations::get_all_terms_with_language_suffix();
$output = '';
if ( ! empty( $terms_to_display ) ) {
$output = '
';
$output .= '
';
$output .= '';
$output .= '
' . __( "Remove language suffixes from taxonomy names.", 'sitepress' ) . '