| @@ -235,9 +235,10 @@ | ||
| 235 | 235 | return $active_case; |
| 236 | 236 | } |
| 237 | 237 | |
| 238 | 238 | if ( empty( $active_case ) ) { |
| 239 | - return new WP_Error( 'case_data_missing' , __( 'Case ID '.$active_case_id.' missing', 'plugin-detective' ) ); | |
| 239 | + /* translators: %s: case ID. */ | |
| 240 | + return new WP_Error( 'case_data_missing', sprintf( __( 'Case ID %s missing', 'plugin-detective' ), $active_case_id ) ); | |
| 240 | 241 | } |
| 241 | 242 | |
| 242 | 243 | return $active_case; |
| 243 | 244 | } |
| @@ -248,9 +249,10 @@ | ||
| 248 | 249 | } |
| 249 | 250 | |
| 250 | 251 | $case = get_option( 'pdt_case_' . esc_attr( $args['id'] ) ); |
| 251 | 252 | if ( empty( $case ) ) { |
| 252 | - return new WP_Error( 'case_data_missing' , __( 'Case ID '.$args['id'].' missing', 'plugin-detective' ) ); | |
| 253 | + /* translators: %s: case ID. */ | |
| 254 | + return new WP_Error( 'case_data_missing', sprintf( __( 'Case ID %s missing', 'plugin-detective' ), $args['id'] ) ); | |
| 253 | 255 | } |
| 254 | 256 | |
| 255 | 257 | return json_decode( $case, true ); |
| 256 | 258 | } |