From e12912a8c07bc15bff6d6b33d78b0ad5472059e4 Mon Sep 17 00:00:00 2001 From: soup-bowl Date: Sun, 12 Dec 2021 23:30:04 +0000 Subject: [PATCH] Added missing CLI table i18n codes. --- src/cli/class-emaillog.php | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/src/cli/class-emaillog.php b/src/cli/class-emaillog.php index eac6578..d85661d 100644 --- a/src/cli/class-emaillog.php +++ b/src/cli/class-emaillog.php @@ -89,13 +89,22 @@ public function list( $entries ) { $list_format = []; foreach ( $entries as $entry ) { $list_format[] = [ - 'ID' => $entry->get_id(), - 'Subject' => $entry->get_subject(), - 'Date' => $entry->get_timestamp(), - 'Response' => $entry->get_error(), + __( 'Mail ID', 'simple-smtp' ) => $entry->get_id(), + __( 'Subject', 'simple-smtp' ) => $entry->get_subject(), + __( 'Date', 'simple-smtp' ) => $entry->get_timestamp(), + __( 'Error', 'simple-smtp' ) => $entry->get_error(), ]; } - Utils\format_items( 'table', $list_format, [ 'ID', 'Subject', 'Date', 'Response' ] ); + Utils\format_items( + 'table', + $list_format, + [ + __( 'Mail ID', 'simple-smtp' ), + __( 'Subject', 'simple-smtp' ), + __( 'Date', 'simple-smtp' ), + __( 'Error', 'simple-smtp' ), + ] + ); } }