diff --git a/includes/admin/meta-boxes/views/html-order-refund.php b/includes/admin/meta-boxes/views/html-order-refund.php
index 21f5ec59c90..a6ebca280b4 100644
--- a/includes/admin/meta-boxes/views/html-order-refund.php
+++ b/includes/admin/meta-boxes/views/html-order-refund.php
@@ -13,11 +13,25 @@ $who_refunded = new WP_User( $refund->get_refunded_by() );
get_id(), wc_format_datetime( $refund->get_date_created(), get_option( 'date_format' ) . ', ' . get_option( 'time_format' ) ) );
-
if ( $who_refunded->exists() ) {
- echo ' ' . esc_attr_x( 'by', 'Ex: Refund - $date >by< $username', 'woocommerce' ) . ' ' . '' . esc_attr( $who_refunded->display_name ) . '' ;
+ printf(
+ /* translators: 1: refund id 2: refund date 3: username */
+ __( 'Refund #%1$s - %2$s by %3$s', 'woocommerce' ),
+ $refund->get_id(),
+ wc_format_datetime( $refund->get_date_created(), get_option( 'date_format' ) . ', ' . get_option( 'time_format' ) ),
+ sprintf(
+ '%2$s',
+ sprintf( esc_attr__( 'ID: %d', 'woocommerce' ), absint( $who_refunded->ID ) ),
+ esc_html( $who_refunded->display_name )
+ )
+ );
+ } else {
+ printf(
+ /* translators: 1: refund id 2: refund date */
+ __( 'Refund #%1$s - %2$s', 'woocommerce' ),
+ $refund->get_id(),
+ wc_format_datetime( $refund->get_date_created(), get_option( 'date_format' ) . ', ' . get_option( 'time_format' ) )
+ );
}
?>
get_reason() ) : ?>
|