| @@ -160,11 +160,17 @@ | ||
| 160 | 160 | |
| 161 | 161 | if ( $this->mailStatus !== null ) { |
| 162 | 162 | $mail = $this->mailStatus->find( $optIn->getId() ); |
| 163 | 163 | if ( $mail['status'] !== '' ) { |
| 164 | + // Same wording as the opt-in detail page, not the stored key. | |
| 165 | + $value = $mail['status'] === 'failed' | |
| 166 | + /* translators: %s: date and time of the attempt */ | |
| 167 | + ? sprintf( __( 'Could not be sent (%s)', 'double-opt-in' ), $mail['at'] ) | |
| 168 | + /* translators: %s: date and time the mail was handed over */ | |
| 169 | + : sprintf( __( 'Handed to the mail server (%s)', 'double-opt-in' ), $mail['at'] ); | |
| 164 | 170 | $data[] = array( |
| 165 | 171 | 'name' => __( 'Confirmation mail', 'double-opt-in' ), |
| 166 | - 'value' => trim( $mail['status'] . ' ' . $mail['at'] . ( $mail['error'] !== '' ? ' — ' . $mail['error'] : '' ) ), | |
| 172 | + 'value' => $value . ( $mail['error'] !== '' ? ' — ' . $mail['error'] : '' ), | |
| 167 | 173 | ); |
| 168 | 174 | } |
| 169 | 175 | } |
| 170 | 176 | |