Update/Install: Give context to "Deleted! string to allow for differentiation between theme and plugin translations.

Props swissspidy.
See #39747. See #37290.
Built from https://develop.svn.wordpress.org/trunk@40035


git-svn-id: http://core.svn.wordpress.org/trunk@39972 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2017-01-31 09:59:40 +00:00
parent 9264813949
commit 222ee437fe
4 changed files with 7 additions and 6 deletions

View File

@ -841,7 +841,7 @@
}
} );
wp.a11y.speak( wp.updates.l10n.deleted, 'polite' );
wp.a11y.speak( wp.updates.l10n.pluginDeleted, 'polite' );
$document.trigger( 'wp-plugin-delete-success', response );
};
@ -1273,7 +1273,7 @@
} );
}
wp.a11y.speak( wp.updates.l10n.deleted, 'polite' );
wp.a11y.speak( wp.updates.l10n.themeDeleted, 'polite' );
$document.trigger( 'wp-theme-delete-success', response );
};

File diff suppressed because one or more lines are too long

View File

@ -693,7 +693,8 @@ function wp_default_scripts( &$scripts ) {
'deleting' => __( 'Deleting...' ),
/* translators: %s: Error string for a failed deletion */
'deleteFailed' => __( 'Deletion failed: %s' ),
'deleted' => __( 'Deleted!' ),
'pluginDeleted' => _x( 'Deleted!', 'plugin' ),
'themeDeleted' => _x( 'Deleted!', 'theme' ),
'livePreview' => __( 'Live Preview' ),
'activatePlugin' => is_network_admin() ? __( 'Network Activate' ) : __( 'Activate' ),
'activateTheme' => is_network_admin() ? __( 'Network Enable' ) : __( 'Activate' ),

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.8-alpha-40034';
$wp_version = '4.8-alpha-40035';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.