mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 12:58:25 +01:00
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:
parent
b732afec11
commit
43aed27058
@ -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 );
|
||||
};
|
||||
|
@ -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' ),
|
||||
|
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user