diff --git a/wp-includes/js/wp-ajax-response.js b/wp-includes/js/wp-ajax-response.js index 292e9e950a..56f8eb2449 100644 --- a/wp-includes/js/wp-ajax-response.js +++ b/wp-includes/js/wp-ajax-response.js @@ -57,4 +57,4 @@ wpAjax = jQuery.extend( { selector = jQuery( selector ); return !wpAjax.invalidateForm( selector.find('.form-required').andSelf().filter('.form-required:has(:input[value=""]), .form-required:input[value=""]') ).size(); } -}, wpAjax || { noPerm: 'You do not have permission to do that.', broken: 'AJAX is teh b0rked.' } ); +}, wpAjax || { noPerm: 'You do not have permission to do that.', broken: 'An unidentified error has occurred.' } ); diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index 5f9a2af2cf..3bde039eb4 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -43,8 +43,8 @@ class WP_Scripts { $this->add( 'wp-ajax-response', '/wp-includes/js/wp-ajax-response.js', array('jquery'), '20080316' ); $this->localize( 'wp-ajax-response', 'wpAjax', array( - 'noPerm' => 'You do not have permission to do that.', - 'broken' => 'AJAX is teh b0rked.' + 'noPerm' => __('You do not have permission to do that.'), + 'broken' => __('An unidentified error has occurred.') ) ); $this->add( 'autosave', '/wp-includes/js/autosave.js', array('schedule', 'wp-ajax-response'), '20080317' );