From 609f04c4b9b5747ea41482a6a608e0dc729eee85 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 20 Mar 2008 23:39:39 +0000 Subject: [PATCH] Make b0rked message slightly more informative. git-svn-id: http://svn.automattic.com/wordpress/trunk@7432 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/js/wp-ajax-response.js | 2 +- wp-includes/script-loader.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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' );