mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-03 20:24:26 +00:00
Text Changes: Unify permission error messages.
The new format looks like "Sorry, you are not allowed to <action>.". This provides a consistent experience for all error messages related to missing permissions. It also reduces the number of similar strings and allows translators to provide a consistent style in their language. Props ramiy, Presskopp. Fixes #34521. git-svn-id: https://develop.svn.wordpress.org/trunk@37914 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -124,7 +124,7 @@ function wp_default_scripts( &$scripts ) {
|
||||
|
||||
$scripts->add( 'wp-ajax-response', "/wp-includes/js/wp-ajax-response$suffix.js", array('jquery'), false, 1 );
|
||||
did_action( 'init' ) && $scripts->localize( 'wp-ajax-response', 'wpAjax', array(
|
||||
'noPerm' => __('You do not have permission to do that.'),
|
||||
'noPerm' => __('Sorry, you are not allowed to do that.'),
|
||||
'broken' => __('An unidentified error has occurred.')
|
||||
) );
|
||||
|
||||
@@ -445,7 +445,7 @@ function wp_default_scripts( &$scripts ) {
|
||||
'cancel' => __( 'Cancel' ),
|
||||
'close' => __( 'Close' ),
|
||||
'cheatin' => __( 'Cheatin’ uh?' ),
|
||||
'notAllowed' => __( 'You are not allowed to customize this site.' ),
|
||||
'notAllowed' => __( 'Sorry, you are not allowed to customize this site.' ),
|
||||
'previewIframeTitle' => __( 'Site Preview' ),
|
||||
'loginIframeTitle' => __( 'Session expired' ),
|
||||
'collapseSidebar' => __( 'Collapse Sidebar' ),
|
||||
@@ -485,7 +485,7 @@ function wp_default_scripts( &$scripts ) {
|
||||
if ( is_admin() ) {
|
||||
$scripts->add( 'admin-tags', "/wp-admin/js/tags$suffix.js", array( 'jquery', 'wp-ajax-response' ), false, 1 );
|
||||
did_action( 'init' ) && $scripts->localize( 'admin-tags', 'tagsl10n', array(
|
||||
'noPerm' => __('You do not have permission to do that.'),
|
||||
'noPerm' => __('Sorry, you are not allowed to do that.'),
|
||||
'broken' => __('An unidentified error has occurred.')
|
||||
));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user