2349 | | /* translators: %s singular/plural form of 'plugin', 'theme', or, 'translation' */ |
2350 | | $body[] = sprintf( __( 'The following %ss were successfully updated:' ), $type ); |
| 2349 | $messages = array( |
| 2350 | 'plugin' => __( 'The following plugins were successfully updated:' ), |
| 2351 | 'theme' => __( 'The following themes were successfully updated:' ), |
| 2352 | 'translation' => __( 'The following translations were successfully updated:' ), |
| 2353 | ); |
| 2354 | |
| 2355 | $body[] = $messages[ $type ]; |
2357 | | /* translators: %s generic singular/plural form of 'plugin', 'theme', or, 'translation' */ |
2358 | | $body[] = sprintf( __( 'The following %ss failed to update:' ), $type ); |
| 2362 | $messages = array( |
| 2363 | 'plugin' => __( 'The following plugins failed to update:' ), |
| 2364 | 'theme' => __( 'The following themes failed to update:' ), |
| 2365 | 'translation' => __( 'The following translations failed to update:' ), |
| 2366 | ); |
| 2367 | |
| 2368 | $body[] = $messages[ $type ]; |