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' ), + ] + ); } }