|
169 | 169 | <span class="mskd-status mskd-status-<?php echo esc_attr( $campaign->status ); ?>"> |
170 | 170 | <?php |
171 | 171 | $statuses = array( |
172 | | - 'pending' => __( 'Pending', 'mail-system' ), |
173 | | - 'processing' => __( 'Processing', 'mail-system' ), |
174 | | - 'completed' => __( 'Completed', 'mail-system' ), |
175 | | - 'cancelled' => __( 'Cancelled', 'mail-system' ), |
| 172 | + 'pending' => _x( 'Pending', 'campaign status', 'mail-system' ), |
| 173 | + 'processing' => _x( 'Processing', 'campaign status', 'mail-system' ), |
| 174 | + 'completed' => _x( 'Completed', 'campaign status', 'mail-system' ), |
| 175 | + 'cancelled' => _x( 'Cancelled', 'campaign status', 'mail-system' ), |
176 | 176 | ); |
177 | 177 | echo esc_html( $statuses[ $campaign->status ] ?? $campaign->status ); |
178 | 178 | ?> |
179 | 179 | </span> |
180 | 180 | <?php if ( $campaign->type === 'one_time' ) : ?> |
181 | | - <span class="mskd-badge mskd-badge-onetime"><?php _e( 'One-time', 'mail-system' ); ?></span> |
| 181 | + <span class="mskd-badge mskd-badge-onetime"><?php echo esc_html( _x( 'One-time', 'campaign type', 'mail-system' ) ); ?></span> |
182 | 182 | <?php else : ?> |
183 | 183 | <span class="mskd-badge mskd-badge-campaign"><?php _e( 'Campaign', 'mail-system' ); ?></span> |
184 | 184 | <?php endif; ?> |
@@ -413,8 +413,8 @@ class="<?php echo $status_filter === 'cancelled' ? 'current' : ''; ?>"> |
413 | 413 | <th scope="col"><?php _e( 'Recipient', 'mail-system' ); ?></th> |
414 | 414 | <th scope="col" style="width: 100px;"><?php _e( 'Status', 'mail-system' ); ?></th> |
415 | 415 | <th scope="col" style="width: 80px;"><?php _e( 'Attempts', 'mail-system' ); ?></th> |
416 | | - <th scope="col" style="width: 140px;"><?php _e( 'Sent', 'mail-system' ); ?></th> |
417 | | - <th scope="col" style="width: 160px;"><?php _e( 'Opened', 'mail-system' ); ?></th> |
| 416 | + <th scope="col" style="width: 140px;"><?php echo esc_html( _x( 'Sent', 'table column header', 'mail-system' ) ); ?></th> |
| 417 | + <th scope="col" style="width: 160px;"><?php echo esc_html( _x( 'Opened', 'table column header', 'mail-system' ) ); ?></th> |
418 | 418 | <th scope="col" style="width: 180px;"><?php _e( 'Clicks', 'mail-system' ); ?></th> |
419 | 419 | <th scope="col"><?php _e( 'Error', 'mail-system' ); ?></th> |
420 | 420 | <th scope="col" style="width: 80px;"><?php _e( 'Actions', 'mail-system' ); ?></th> |
@@ -456,11 +456,11 @@ class="<?php echo $status_filter === 'cancelled' ? 'current' : ''; ?>"> |
456 | 456 | <span class="mskd-status mskd-status-<?php echo esc_attr( $item->status ); ?>"> |
457 | 457 | <?php |
458 | 458 | $item_statuses = array( |
459 | | - 'pending' => __( 'Pending', 'mail-system' ), |
460 | | - 'processing' => __( 'Processing', 'mail-system' ), |
461 | | - 'sent' => __( 'Sent', 'mail-system' ), |
462 | | - 'failed' => __( 'Failed', 'mail-system' ), |
463 | | - 'cancelled' => __( 'Cancelled', 'mail-system' ), |
| 459 | + 'pending' => _x( 'Pending', 'email status', 'mail-system' ), |
| 460 | + 'processing' => _x( 'Processing', 'email status', 'mail-system' ), |
| 461 | + 'sent' => _x( 'Sent', 'email status', 'mail-system' ), |
| 462 | + 'failed' => _x( 'Failed', 'email status', 'mail-system' ), |
| 463 | + 'cancelled' => _x( 'Cancelled', 'email status', 'mail-system' ), |
464 | 464 | ); |
465 | 465 | echo esc_html( $item_statuses[ $item->status ] ?? $item->status ); |
466 | 466 | ?> |
|
0 commit comments