From 13ed00f2d48bcf0eff494c3dae65e01a74a3e5bd Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Thu, 2 Dec 2010 21:45:47 +0000 Subject: [PATCH] Standardize around "Update" instead of "Upgrade." props RanYanivHartstein. props latz. fixes #14107 git-svn-id: https://develop.svn.wordpress.org/trunk@16696 602fd350-edb4-49c9-b593-d223f7449a82 --- .../class-wp-ms-themes-list-table.php | 2 +- .../includes/class-wp-plugins-list-table.php | 2 +- wp-admin/includes/class-wp-upgrader.php | 18 +++++++-------- wp-admin/includes/theme.php | 6 ++--- wp-admin/includes/update.php | 8 +++---- wp-admin/includes/upgrade.php | 2 +- wp-admin/network/upgrade.php | 2 +- wp-admin/plugins.php | 2 +- wp-admin/update-core.php | 4 ++-- wp-admin/upgrade.php | 22 +++++++++---------- wp-includes/functions.php | 2 +- 11 files changed, 35 insertions(+), 35 deletions(-) diff --git a/wp-admin/includes/class-wp-ms-themes-list-table.php b/wp-admin/includes/class-wp-ms-themes-list-table.php index 13c7356b3e..e66da6aff5 100644 --- a/wp-admin/includes/class-wp-ms-themes-list-table.php +++ b/wp-admin/includes/class-wp-ms-themes-list-table.php @@ -205,7 +205,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table { $text = _n( 'Disabled (%s)', 'Disabled (%s)', $count ); break; case 'upgrade': - $text = _n( 'Upgrade Available (%s)', 'Upgrade Available (%s)', $count ); + $text = _n( 'Update Available (%s)', 'Update Available (%s)', $count ); break; case 'search': $text = _n( 'Search Results (%s)', 'Search Results (%s)', $count ); diff --git a/wp-admin/includes/class-wp-plugins-list-table.php b/wp-admin/includes/class-wp-plugins-list-table.php index e102263de4..7dff3beb21 100644 --- a/wp-admin/includes/class-wp-plugins-list-table.php +++ b/wp-admin/includes/class-wp-plugins-list-table.php @@ -233,7 +233,7 @@ class WP_Plugins_List_Table extends WP_List_Table { $text = _n( 'Drop-ins (%s)', 'Drop-ins (%s)', $count ); break; case 'upgrade': - $text = _n( 'Upgrade Available (%s)', 'Upgrade Available (%s)', $count ); + $text = _n( 'Update Available (%s)', 'Update Available (%s)', $count ); break; case 'search': $text = _n( 'Search Results (%s)', 'Search Results (%s)', $count ); diff --git a/wp-admin/includes/class-wp-upgrader.php b/wp-admin/includes/class-wp-upgrader.php index 8a0024fe7d..8b5cf4cc69 100644 --- a/wp-admin/includes/class-wp-upgrader.php +++ b/wp-admin/includes/class-wp-upgrader.php @@ -368,14 +368,14 @@ class Plugin_Upgrader extends WP_Upgrader { function upgrade_strings() { $this->strings['up_to_date'] = __('The plugin is at the latest version.'); - $this->strings['no_package'] = __('Upgrade package not available.'); + $this->strings['no_package'] = __('Update package not available.'); $this->strings['downloading_package'] = __('Downloading update from %s…'); $this->strings['unpack_package'] = __('Unpacking the update…'); $this->strings['deactivate_plugin'] = __('Deactivating the plugin…'); $this->strings['remove_old'] = __('Removing the old version of the plugin…'); $this->strings['remove_old_failed'] = __('Could not remove the old plugin.'); - $this->strings['process_failed'] = __('Plugin upgrade failed.'); - $this->strings['process_success'] = __('Plugin upgraded successfully.'); + $this->strings['process_failed'] = __('Plugin update failed.'); + $this->strings['process_success'] = __('Plugin updated successfully.'); } function install_strings() { @@ -608,13 +608,13 @@ class Theme_Upgrader extends WP_Upgrader { function upgrade_strings() { $this->strings['up_to_date'] = __('The theme is at the latest version.'); - $this->strings['no_package'] = __('Upgrade package not available.'); + $this->strings['no_package'] = __('Update package not available.'); $this->strings['downloading_package'] = __('Downloading update from %s…'); $this->strings['unpack_package'] = __('Unpacking the update…'); $this->strings['remove_old'] = __('Removing the old version of the theme…'); $this->strings['remove_old_failed'] = __('Could not remove the old theme.'); - $this->strings['process_failed'] = __('Theme upgrade failed.'); - $this->strings['process_success'] = __('Theme upgraded successfully.'); + $this->strings['process_failed'] = __('Theme update failed.'); + $this->strings['process_success'] = __('Theme updated successfully.'); } function install_strings() { @@ -861,7 +861,7 @@ class Core_Upgrader extends WP_Upgrader { function upgrade_strings() { $this->strings['up_to_date'] = __('WordPress is at the latest version.'); - $this->strings['no_package'] = __('Upgrade package not available.'); + $this->strings['no_package'] = __('Update package not available.'); $this->strings['downloading_package'] = __('Downloading update from %s…'); $this->strings['unpack_package'] = __('Unpacking the update…'); $this->strings['copy_failed'] = __('Could not copy files.'); @@ -1017,7 +1017,7 @@ class Plugin_Upgrader_Skin extends WP_Upgrader_Skin { } function __construct($args = array()) { - $defaults = array( 'url' => '', 'plugin' => '', 'nonce' => '', 'title' => __('Upgrade Plugin') ); + $defaults = array( 'url' => '', 'plugin' => '', 'nonce' => '', 'title' => __('Update Plugin') ); $args = wp_parse_args($args, $defaults); $this->plugin = $args['plugin']; @@ -1388,7 +1388,7 @@ class Theme_Upgrader_Skin extends WP_Upgrader_Skin { } function __construct($args = array()) { - $defaults = array( 'url' => '', 'theme' => '', 'nonce' => '', 'title' => __('Upgrade Theme') ); + $defaults = array( 'url' => '', 'theme' => '', 'nonce' => '', 'title' => __('Update Theme') ); $args = wp_parse_args($args, $defaults); $this->theme = $args['theme']; diff --git a/wp-admin/includes/theme.php b/wp-admin/includes/theme.php index 47617911ad..dd33604b49 100644 --- a/wp-admin/includes/theme.php +++ b/wp-admin/includes/theme.php @@ -239,15 +239,15 @@ function theme_update_available( $theme ) { $theme_name = is_object($theme) ? $theme->name : (is_array($theme) ? $theme['Name'] : ''); $details_url = add_query_arg(array('TB_iframe' => 'true', 'width' => 1024, 'height' => 800), $update['url']); //Theme browser inside WP? replace this, Also, theme preview JS will override this on the available list. $update_url = wp_nonce_url('update.php?action=upgrade-theme&theme=' . urlencode($stylesheet), 'upgrade-theme_' . $stylesheet); - $update_onclick = 'onclick="if ( confirm(\'' . esc_js( __("Upgrading this theme will lose any customizations you have made. 'Cancel' to stop, 'OK' to upgrade.") ) . '\') ) {return true;}return false;"'; + $update_onclick = 'onclick="if ( confirm(\'' . esc_js( __("Updating this theme will lose any customizations you have made. 'Cancel' to stop, 'OK' to upgrade.") ) . '\') ) {return true;}return false;"'; if ( !is_multisite() ) { if ( ! current_user_can('update_themes') ) printf( '

' . __('There is a new version of %1$s available. View version %3$s details.') . '

', $theme_name, $details_url, $update['new_version']); else if ( empty($update['package']) ) - printf( '

' . __('There is a new version of %1$s available. View version %3$s details. Automatic upgrade is unavailable for this theme.') . '

', $theme_name, $details_url, $update['new_version']); + printf( '

' . __('There is a new version of %1$s available. View version %3$s details. Automatic update is unavailable for this theme.') . '

', $theme_name, $details_url, $update['new_version']); else - printf( '

' . __('There is a new version of %1$s available. View version %3$s details or upgrade automatically.') . '

', $theme_name, $details_url, $update['new_version'], $update_url, $update_onclick ); + printf( '

' . __('There is a new version of %1$s available. View version %3$s details or update automatically.') . '

', $theme_name, $details_url, $update['new_version'], $update_url, $update_onclick ); } } } diff --git a/wp-admin/includes/update.php b/wp-admin/includes/update.php index 3204dd58be..7a6c01b9f9 100644 --- a/wp-admin/includes/update.php +++ b/wp-admin/includes/update.php @@ -199,9 +199,9 @@ function wp_plugin_update_row( $file, $plugin_data ) { if ( ! current_user_can('update_plugins') ) printf( __('There is a new version of %1$s available. View version %4$s details.'), $plugin_name, esc_url($details_url), esc_attr($plugin_name), $r->new_version ); else if ( empty($r->package) ) - printf( __('There is a new version of %1$s available. View version %4$s details. Automatic upgrade is unavailable for this plugin.'), $plugin_name, esc_url($details_url), esc_attr($plugin_name), $r->new_version ); + printf( __('There is a new version of %1$s available. View version %4$s details. Automatic update is unavailable for this plugin.'), $plugin_name, esc_url($details_url), esc_attr($plugin_name), $r->new_version ); else - printf( __('There is a new version of %1$s available. View version %4$s details or upgrade automatically.'), $plugin_name, esc_url($details_url), esc_attr($plugin_name), $r->new_version, wp_nonce_url( self_admin_url('update.php?action=upgrade-plugin&plugin=') . $file, 'upgrade-plugin_' . $file) ); + printf( __('There is a new version of %1$s available. View version %4$s details or update automatically.'), $plugin_name, esc_url($details_url), esc_attr($plugin_name), $r->new_version, wp_nonce_url( self_admin_url('update.php?action=upgrade-plugin&plugin=') . $file, 'upgrade-plugin_' . $file) ); } do_action( "in_plugin_update_message-$file", $plugin_data, $r ); @@ -274,9 +274,9 @@ function wp_theme_update_row( $theme_key, $theme ) { if ( ! current_user_can('update_themes') ) printf( __('There is a new version of %1$s available. View version %4$s details.'), $theme['Name'], esc_url($details_url), esc_attr($theme['Name']), $r->new_version ); else if ( empty( $r['package'] ) ) - printf( __('There is a new version of %1$s available. View version %4$s details. Automatic upgrade is unavailable for this plugin.'), $theme['Name'], esc_url($details_url), esc_attr($theme['Name']), $r['new_version'] ); + printf( __('There is a new version of %1$s available. View version %4$s details. Automatic update is unavailable for this plugin.'), $theme['Name'], esc_url($details_url), esc_attr($theme['Name']), $r['new_version'] ); else - printf( __('There is a new version of %1$s available. View version %4$s details or upgrade automatically.'), $theme['Name'], esc_url($details_url), esc_attr($theme['Name']), $r['new_version'], wp_nonce_url( self_admin_url('update.php?action=upgrade-theme&theme=') . $theme_key, 'upgrade-theme_' . $theme_key) ); + printf( __('There is a new version of %1$s available. View version %4$s details or update automatically.'), $theme['Name'], esc_url($details_url), esc_attr($theme['Name']), $r['new_version'], wp_nonce_url( self_admin_url('update.php?action=upgrade-theme&theme=') . $theme_key, 'upgrade-theme_' . $theme_key) ); do_action( "in_theme_update_message-$theme_key", $theme, $r ); diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php index a022af63c9..77c5185587 100644 --- a/wp-admin/includes/upgrade.php +++ b/wp-admin/includes/upgrade.php @@ -1656,7 +1656,7 @@ function make_site_theme_from_oldschool($theme_name, $template) { } // Add a theme header. - $header = "/*\nTheme Name: $theme_name\nTheme URI: " . __get_option('siteurl') . "\nDescription: A theme automatically created by the upgrade.\nVersion: 1.0\nAuthor: Moi\n*/\n"; + $header = "/*\nTheme Name: $theme_name\nTheme URI: " . __get_option('siteurl') . "\nDescription: A theme automatically created by the update.\nVersion: 1.0\nAuthor: Moi\n*/\n"; $stylelines = file_get_contents("$site_dir/style.css"); if ($stylelines) { diff --git a/wp-admin/network/upgrade.php b/wp-admin/network/upgrade.php index 255c3001a1..3384a500b9 100644 --- a/wp-admin/network/upgrade.php +++ b/wp-admin/network/upgrade.php @@ -19,7 +19,7 @@ $title = __( 'Update Network' ); $parent_file = 'upgrade.php'; add_contextual_help($current_screen, - '

' . __('Only use this screen once you have updated to a new version of WordPress through Dashboard > Updates. Clicking the Update Network button will step through each site in the network, five at a time, and make sure any database upgrades are applied.') . '

' . + '

' . __('Only use this screen once you have updated to a new version of WordPress through Dashboard > Updates. Clicking the Update Network button will step through each site in the network, five at a time, and make sure any database updates are applied.') . '

' . '

' . __('If a version update to core has not happened, clicking this button won’t affect anything.') . '

' . '

' . __('If this process fails for any reason, users logging in to their sites will force the same update.') . '

' . '

' . __('For more information:') . '

' . diff --git a/wp-admin/plugins.php b/wp-admin/plugins.php index 14318074cf..56ba2ce479 100644 --- a/wp-admin/plugins.php +++ b/wp-admin/plugins.php @@ -98,7 +98,7 @@ if ( $action ) { else $plugins = array(); - $title = __( 'Upgrade Plugins' ); + $title = __( 'Update Plugins' ); $parent_file = 'plugins.php'; require_once(ABSPATH . 'wp-admin/admin-header.php'); diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php index e901d0d0b2..6874c75e31 100644 --- a/wp-admin/update-core.php +++ b/wp-admin/update-core.php @@ -70,7 +70,7 @@ function list_core_update( $update ) { if ( 'en_US' != $update->locale && ( !isset($wp_local_package) || $wp_local_package != $update->locale ) ) echo '

'.__('This localized version contains both the translation and various other localization fixes. You can skip upgrading if you want to keep your current translation.').'

'; else if ( 'en_US' == $update->locale && get_locale() != 'en_US' ) { - echo '

'.sprintf( __('You are about to install WordPress %s in English (US). There is a chance this upgrade will break your translation. You may prefer to wait for the localized version to be released.'), $update->current ).'

'; + echo '

'.sprintf( __('You are about to install WordPress %s in English (US). There is a chance this update will break your translation. You may prefer to wait for the localized version to be released.'), $update->current ).'

'; } echo ''; @@ -392,7 +392,7 @@ $parent_file = 'tools.php'; add_contextual_help($current_screen, '

' . __('This screen lets you update to the latest version of WordPress as well as update your themes and plugins from the WordPress.org repository. When updates are available, the number of available updates will appear in a bubble on the left hand menu as a notification. It is very important to keep your WordPress installation up to date for security reasons, so when you see a number appear, make sure you take the time to update, which is an easy process.') . '

' . '

' . __('Updating your WordPress installation is a simple one-click procedure; just click on the Update button when it says a new version is available.') . '

' . - '

' . __('To upgrade themes or plugins from this screen, use the checkboxes to make your selection and click on the appropriate Update button. Check the box at the top of the Themes or Plugins section to select all and update them all at once.') . '

' . + '

' . __('To update themes or plugins from this screen, use the checkboxes to make your selection and click on the appropriate Update button. Check the box at the top of the Themes or Plugins section to select all and update them all at once.') . '

' . '

' . __('For more information:') . '

' . '

' . __('Documentation on Updating WordPress') . '

' . '

' . __('Support Forums') . '

' diff --git a/wp-admin/upgrade.php b/wp-admin/upgrade.php index 4b87bdfd3c..69a19979fc 100644 --- a/wp-admin/upgrade.php +++ b/wp-admin/upgrade.php @@ -46,7 +46,7 @@ $mysql_compat = version_compare( $mysql_version, $required_mysql_version, '>=' > - <?php _e( 'WordPress › Upgrade' ); ?> + <?php _e( 'WordPress › Update' ); ?> =' -

+

WordPress %1$s requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ); + printf( __('You cannot update because WordPress %1$s requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ); elseif ( !$php_compat ) - printf( __('You cannot upgrade because WordPress %1$s requires PHP version %2$s or higher. You are running version %3$s.'), $wp_version, $required_php_version, $php_version ); + printf( __('You cannot udate because WordPress %1$s requires PHP version %2$s or higher. You are running version %3$s.'), $wp_version, $required_php_version, $php_version ); elseif ( !$mysql_compat ) - printf( __('You cannot upgrade because WordPress %1$s requires MySQL version %2$s or higher. You are running version %3$s.'), $wp_version, $required_mysql_version, $mysql_version ); + printf( __('You cannot update because WordPress %1$s requires MySQL version %2$s or higher. You are running version %3$s.'), $wp_version, $required_mysql_version, $mysql_version ); ?> -

-

-

-

+

+

+

+

-

-

+

+