I18N: Mark the strings with plugin and theme names in email notifications for translation.

Follow-up to [48517].

See #50350.
Built from https://develop.svn.wordpress.org/trunk@48519


git-svn-id: http://core.svn.wordpress.org/trunk@48281 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-07-20 21:25:06 +00:00
parent c2639c74ff
commit 82ce41ff51
2 changed files with 25 additions and 5 deletions

View File

@ -1045,7 +1045,12 @@ class WP_Automatic_Updater {
$body[] = __( 'These plugins failed to update:' );
foreach ( $failed_updates['plugin'] as $item ) {
$body[] = "- {$item->name} version {$item->item->new_version}";
$body[] = sprintf(
/* translators: 1: Plugin name, 2: Version number. */
__( '- %1$s version %2$s' ),
$item->name,
$item->item->new_version
);
$past_failure_emails[ $item->item->plugin ] = $item->item->new_version;
}
@ -1058,7 +1063,12 @@ class WP_Automatic_Updater {
$body[] = __( 'These themes failed to update:' );
foreach ( $failed_updates['theme'] as $item ) {
$body[] = "- {$item->name} version {$item->item->new_version}";
$body[] = sprintf(
/* translators: 1: Theme name, 2: Version number. */
__( '- %1$s version %2$s' ),
$item->name,
$item->item->new_version
);
$past_failure_emails[ $item->item->theme ] = $item->item->new_version;
}
@ -1076,7 +1086,12 @@ class WP_Automatic_Updater {
$body[] = __( 'These plugins are now up to date:' );
foreach ( $successful_updates['plugin'] as $item ) {
$body[] = "- {$item->name} version {$item->item->new_version}";
$body[] = sprintf(
/* translators: 1: Plugin name, 2: Version number. */
__( '- %1$s version %2$s' ),
$item->name,
$item->item->new_version
);
unset( $past_failure_emails[ $item->item->plugin ] );
}
@ -1089,7 +1104,12 @@ class WP_Automatic_Updater {
$body[] = __( 'These themes are now up to date:' );
foreach ( $successful_updates['theme'] as $item ) {
$body[] = "- {$item->name} version {$item->item->new_version}";
$body[] = sprintf(
/* translators: 1: Theme name, 2: Version number. */
__( '- %1$s version %2$s' ),
$item->name,
$item->item->new_version
);
unset( $past_failure_emails[ $item->item->theme ] );
}

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.5-beta2-48518';
$wp_version = '5.5-beta2-48519';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.