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

Props swissspidy.
See #39747. See #37290.

git-svn-id: https://develop.svn.wordpress.org/trunk@40035 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2017-01-31 09:58:49 +00:00
parent b732afec11
commit 43aed27058
3 changed files with 6 additions and 4 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 );
};

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

@ -42,7 +42,8 @@ window._wpUpdatesSettings = {
'aysBulkDeleteThemes': 'Caution: These themes may be active on other sites in the network. Are you sure you want to proceed?',
'deleting': 'Deleting...',
'deleteFailed': 'Deletion failed: %s',
'deleted': 'Deleted!',
'pluginDeleted': 'Deleted!',
'themeDeleted': 'Deleted!',
'livePreview': 'Live Preview',
'activatePlugin': 'Activate',
'activateTheme': 'Activate',