From 6408d013e29988b6e833857538f72be684b8e934 Mon Sep 17 00:00:00 2001 From: Erick Hitter <ehitter@gmail.com> Date: Thu, 5 Dec 2013 17:32:25 -0500 Subject: [PATCH] Translation cleanup for the 1.2 release. --- js/post.js | 2 +- wp-revisions-control.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/js/post.js b/js/post.js index a3f7128..3de4d34 100644 --- a/js/post.js +++ b/js/post.js @@ -40,7 +40,7 @@ /** * User feedback when Ajax request succeeds - * Does not indicate that purge request successeded + * Does not indicate that purge request succeeded */ function ajax_purge_request_success( response ) { if ( response.error ) { diff --git a/wp-revisions-control.php b/wp-revisions-control.php index f0a313f..a9e1636 100644 --- a/wp-revisions-control.php +++ b/wp-revisions-control.php @@ -152,7 +152,7 @@ class WP_Revisions_Control { // Display a note if the plugin priority is other than the default. // Will be useful when debugging issues later. if ( $this->plugin_priority() !== $this->priority_default ) : ?> - <p><?php _e( "A local change is causing this plugin's functionality to run at a priority other than the default. If you experience difficulties with the plugin, please unhook any functions from the <code>wp_revisions_control_priority</code> filter.", 'wp_revisions_control' ); ?></p> + <p><?php printf( __( "A local change is causing this plugin's functionality to run at a priority other than the default. If you experience difficulties with the plugin, please unhook any functions from the %s filter.", 'wp_revisions_control' ), '<code>wp_revisions_control_priority</code>' ); ?></p> <?php endif; } @@ -275,14 +275,14 @@ class WP_Revisions_Control { // A bit of JS for us $handle = 'wp-revisions-control-post'; - wp_enqueue_script( $handle, plugins_url( 'js/post.js', __FILE__ ), array( 'jquery' ), '20130706', true ); + wp_enqueue_script( $handle, plugins_url( 'js/post.js', __FILE__ ), array( 'jquery' ), '20131205', true ); wp_localize_script( $handle, $this->settings_section, array( 'namespace' => $this->settings_section, 'action_base' => $this->settings_section, 'processing_text' => __( 'Processing…', 'wp_revisions_control' ), - 'ays' => __( 'Are you sure?', 'wp_revisions_control' ), + 'ays' => __( 'Are you sure you want to remove revisions from this post?', 'wp_revisions_control' ), 'autosave' => __( 'Autosave' ), - 'nothing_text' => __( wpautop( 'There are no revisions to remove.' ), 'wp_revisions_control' ), + 'nothing_text' => wpautop( __( 'There are no revisions to remove.', 'wp_revisions_control' ) ), 'error' => __( 'An error occurred. Please refresh the page and try again.', 'wp_revisions_control' ) ) ); -- GitLab