General: Further improve error messages following [42648].

Props kristastevens, melchoyce.
Fixes #38332 for trunk.



git-svn-id: https://develop.svn.wordpress.org/trunk@42719 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Wilson
2018-02-19 02:12:41 +00:00
parent b2b29b4431
commit d002fde80e
23 changed files with 51 additions and 51 deletions

View File

@@ -137,7 +137,7 @@ function wp_default_scripts( &$scripts ) {
did_action( 'init' ) && $scripts->localize(
'wp-ajax-response', 'wpAjax', array(
'noPerm' => __( 'Sorry, you are not allowed to do that.' ),
'broken' => __( 'An error has occurred.' ),
'broken' => __( 'Something went wrong.' ),
)
);
@@ -605,8 +605,8 @@ function wp_default_scripts( &$scripts ) {
'close' => __( 'Close' ),
'action' => __( 'Action' ),
'discardChanges' => __( 'Discard changes' ),
'cheatin' => __( 'An error has occurred.' ),
'notAllowedHeading' => __( 'You don’t have permission to do this.' ),
'cheatin' => __( 'Something went wrong.' ),
'notAllowedHeading' => __( 'You need a higher level of permission.' ),
'notAllowed' => __( 'Sorry, you are not allowed to customize this site.' ),
'previewIframeTitle' => __( 'Site Preview' ),
'loginIframeTitle' => __( 'Session expired' ),
@@ -689,7 +689,7 @@ function wp_default_scripts( &$scripts ) {
did_action( 'init' ) && $scripts->localize(
'admin-tags', 'tagsl10n', array(
'noPerm' => __( 'Sorry, you are not allowed to do that.' ),
'broken' => __( 'An error has occurred.' ),
'broken' => __( 'Something went wrong.' ),
)
);
@@ -918,7 +918,7 @@ function wp_default_scripts( &$scripts ) {
'activateImporter' => __( 'Run Importer' ),
/* translators: %s: Importer name */
'activateImporterLabel' => __( 'Run %s' ),
'unknownError' => __( 'An error has occurred.' ),
'unknownError' => __( 'Something went wrong.' ),
'connectionError' => __( 'Connection lost or the server is busy. Please try again later.' ),
'nonceError' => __( 'An error has occurred. Please reload the page and try again.' ),
'pluginsFound' => __( 'Number of plugins found: %d' ),