Skip to content

Commit

Permalink
Added missing CLI table i18n codes.
Browse files Browse the repository at this point in the history
  • Loading branch information
soup-bowl committed Dec 12, 2021
1 parent 2a62e72 commit e12912a
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions src/cli/class-emaillog.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ),
]
);
}
}

0 comments on commit e12912a

Please sign in to comment.