Changeset 16696
- Timestamp:
- 12/02/2010 09:45:47 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-ms-themes-list-table.php
r16629 r16696 206 206 break; 207 207 case 'upgrade': 208 $text = _n( 'Up grade Available <span class="count">(%s)</span>', 'Upgrade Available <span class="count">(%s)</span>', $count );208 $text = _n( 'Update Available <span class="count">(%s)</span>', 'Update Available <span class="count">(%s)</span>', $count ); 209 209 break; 210 210 case 'search': -
trunk/wp-admin/includes/class-wp-plugins-list-table.php
r16498 r16696 234 234 break; 235 235 case 'upgrade': 236 $text = _n( 'Up grade Available <span class="count">(%s)</span>', 'Upgrade Available <span class="count">(%s)</span>', $count );236 $text = _n( 'Update Available <span class="count">(%s)</span>', 'Update Available <span class="count">(%s)</span>', $count ); 237 237 break; 238 238 case 'search': -
trunk/wp-admin/includes/class-wp-upgrader.php
r15978 r16696 369 369 function upgrade_strings() { 370 370 $this->strings['up_to_date'] = __('The plugin is at the latest version.'); 371 $this->strings['no_package'] = __('Up grade package not available.');371 $this->strings['no_package'] = __('Update package not available.'); 372 372 $this->strings['downloading_package'] = __('Downloading update from <span class="code">%s</span>…'); 373 373 $this->strings['unpack_package'] = __('Unpacking the update…'); … … 375 375 $this->strings['remove_old'] = __('Removing the old version of the plugin…'); 376 376 $this->strings['remove_old_failed'] = __('Could not remove the old plugin.'); 377 $this->strings['process_failed'] = __('Plugin up grade failed.');378 $this->strings['process_success'] = __('Plugin up graded successfully.');377 $this->strings['process_failed'] = __('Plugin update failed.'); 378 $this->strings['process_success'] = __('Plugin updated successfully.'); 379 379 } 380 380 … … 609 609 function upgrade_strings() { 610 610 $this->strings['up_to_date'] = __('The theme is at the latest version.'); 611 $this->strings['no_package'] = __('Up grade package not available.');611 $this->strings['no_package'] = __('Update package not available.'); 612 612 $this->strings['downloading_package'] = __('Downloading update from <span class="code">%s</span>…'); 613 613 $this->strings['unpack_package'] = __('Unpacking the update…'); 614 614 $this->strings['remove_old'] = __('Removing the old version of the theme…'); 615 615 $this->strings['remove_old_failed'] = __('Could not remove the old theme.'); 616 $this->strings['process_failed'] = __('Theme up grade failed.');617 $this->strings['process_success'] = __('Theme up graded successfully.');616 $this->strings['process_failed'] = __('Theme update failed.'); 617 $this->strings['process_success'] = __('Theme updated successfully.'); 618 618 } 619 619 … … 862 862 function upgrade_strings() { 863 863 $this->strings['up_to_date'] = __('WordPress is at the latest version.'); 864 $this->strings['no_package'] = __('Up grade package not available.');864 $this->strings['no_package'] = __('Update package not available.'); 865 865 $this->strings['downloading_package'] = __('Downloading update from <span class="code">%s</span>…'); 866 866 $this->strings['unpack_package'] = __('Unpacking the update…'); … … 1018 1018 1019 1019 function __construct($args = array()) { 1020 $defaults = array( 'url' => '', 'plugin' => '', 'nonce' => '', 'title' => __('Up grade Plugin') );1020 $defaults = array( 'url' => '', 'plugin' => '', 'nonce' => '', 'title' => __('Update Plugin') ); 1021 1021 $args = wp_parse_args($args, $defaults); 1022 1022 … … 1389 1389 1390 1390 function __construct($args = array()) { 1391 $defaults = array( 'url' => '', 'theme' => '', 'nonce' => '', 'title' => __('Up grade Theme') );1391 $defaults = array( 'url' => '', 'theme' => '', 'nonce' => '', 'title' => __('Update Theme') ); 1392 1392 $args = wp_parse_args($args, $defaults); 1393 1393 -
trunk/wp-admin/includes/theme.php
r16660 r16696 240 240 $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. 241 241 $update_url = wp_nonce_url('update.php?action=upgrade-theme&theme=' . urlencode($stylesheet), 'upgrade-theme_' . $stylesheet); 242 $update_onclick = 'onclick="if ( confirm(\'' . esc_js( __("Up grading this theme will lose any customizations you have made. 'Cancel' to stop, 'OK' to upgrade.") ) . '\') ) {return true;}return false;"';242 $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;"'; 243 243 244 244 if ( !is_multisite() ) { … … 246 246 printf( '<p><strong>' . __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%1$s">View version %3$s details</a>.') . '</strong></p>', $theme_name, $details_url, $update['new_version']); 247 247 else if ( empty($update['package']) ) 248 printf( '<p><strong>' . __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%1$s">View version %3$s details</a>. <em>Automatic up grade is unavailable for this theme.</em>') . '</strong></p>', $theme_name, $details_url, $update['new_version']);248 printf( '<p><strong>' . __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%1$s">View version %3$s details</a>. <em>Automatic update is unavailable for this theme.</em>') . '</strong></p>', $theme_name, $details_url, $update['new_version']); 249 249 else 250 printf( '<p><strong>' . __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%1$s">View version %3$s details</a> or <a href="%4$s" %5$s>up grade automatically</a>.') . '</strong></p>', $theme_name, $details_url, $update['new_version'], $update_url, $update_onclick );250 printf( '<p><strong>' . __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%1$s">View version %3$s details</a> or <a href="%4$s" %5$s>update automatically</a>.') . '</strong></p>', $theme_name, $details_url, $update['new_version'], $update_url, $update_onclick ); 251 251 } 252 252 } -
trunk/wp-admin/includes/update.php
r16368 r16696 200 200 printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a>.'), $plugin_name, esc_url($details_url), esc_attr($plugin_name), $r->new_version ); 201 201 else if ( empty($r->package) ) 202 printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a>. <em>Automatic up grade is unavailable for this plugin.</em>'), $plugin_name, esc_url($details_url), esc_attr($plugin_name), $r->new_version );202 printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a>. <em>Automatic update is unavailable for this plugin.</em>'), $plugin_name, esc_url($details_url), esc_attr($plugin_name), $r->new_version ); 203 203 else 204 printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a> or <a href="%5$s">up grade automatically</a>.'), $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) );204 printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a> or <a href="%5$s">update automatically</a>.'), $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) ); 205 205 } 206 206 … … 275 275 printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a>.'), $theme['Name'], esc_url($details_url), esc_attr($theme['Name']), $r->new_version ); 276 276 else if ( empty( $r['package'] ) ) 277 printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a>. <em>Automatic up grade is unavailable for this plugin.</em>'), $theme['Name'], esc_url($details_url), esc_attr($theme['Name']), $r['new_version'] );277 printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a>. <em>Automatic update is unavailable for this plugin.</em>'), $theme['Name'], esc_url($details_url), esc_attr($theme['Name']), $r['new_version'] ); 278 278 else 279 printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a> or <a href="%5$s">up grade automatically</a>.'), $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) );279 printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a> or <a href="%5$s">update automatically</a>.'), $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) ); 280 280 281 281 do_action( "in_theme_update_message-$theme_key", $theme, $r ); -
trunk/wp-admin/includes/upgrade.php
r16660 r16696 1657 1657 1658 1658 // Add a theme header. 1659 $header = "/*\nTheme Name: $theme_name\nTheme URI: " . __get_option('siteurl') . "\nDescription: A theme automatically created by the up grade.\nVersion: 1.0\nAuthor: Moi\n*/\n";1659 $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"; 1660 1660 1661 1661 $stylelines = file_get_contents("$site_dir/style.css"); -
trunk/wp-admin/network/upgrade.php
r16272 r16696 20 20 21 21 add_contextual_help($current_screen, 22 '<p>' . __('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 up grades are applied.') . '</p>' .22 '<p>' . __('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.') . '</p>' . 23 23 '<p>' . __('If a version update to core has not happened, clicking this button won’t affect anything.') . '</p>' . 24 24 '<p>' . __('If this process fails for any reason, users logging in to their sites will force the same update.') . '</p>' . -
trunk/wp-admin/plugins.php
r16312 r16696 99 99 $plugins = array(); 100 100 101 $title = __( 'Up grade Plugins' );101 $title = __( 'Update Plugins' ); 102 102 $parent_file = 'plugins.php'; 103 103 -
trunk/wp-admin/update-core.php
r16663 r16696 71 71 echo '<p class="hint">'.__('This localized version contains both the translation and various other localization fixes. You can skip upgrading if you want to keep your current translation.').'</p>'; 72 72 else if ( 'en_US' == $update->locale && get_locale() != 'en_US' ) { 73 echo '<p class="hint">'.sprintf( __('You are about to install WordPress %s <strong>in English (US).</strong> There is a chance this up grade will break your translation. You may prefer to wait for the localized version to be released.'), $update->current ).'</p>';73 echo '<p class="hint">'.sprintf( __('You are about to install WordPress %s <strong>in English (US).</strong> There is a chance this update will break your translation. You may prefer to wait for the localized version to be released.'), $update->current ).'</p>'; 74 74 } 75 75 echo '</form>'; … … 393 393 '<p>' . __('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.') . '</p>' . 394 394 '<p>' . __('Updating your WordPress installation is a simple one-click procedure; just click on the Update button when it says a new version is available.') . '</p>' . 395 '<p>' . __('To up grade 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.') . '</p>' .395 '<p>' . __('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.') . '</p>' . 396 396 '<p><strong>' . __('For more information:') . '</strong></p>' . 397 397 '<p>' . __('<a href="http://codex.wordpress.org/Dashboard_Updates_SubPanel" target="_blank">Documentation on Updating WordPress</a>') . '</p>' . -
trunk/wp-admin/upgrade.php
r16660 r16696 47 47 <head> 48 48 <meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php echo get_option( 'blog_charset' ); ?>" /> 49 <title><?php _e( 'WordPress › Up grade' ); ?></title>49 <title><?php _e( 'WordPress › Update' ); ?></title> 50 50 <?php 51 51 wp_admin_css( 'install', true ); … … 58 58 <?php if ( get_option( 'db_version' ) == $wp_db_version || !is_blog_installed() ) : ?> 59 59 60 <h2><?php _e( 'No Up grade Required' ); ?></h2>60 <h2><?php _e( 'No Update Required' ); ?></h2> 61 61 <p><?php _e( 'Your WordPress database is already up-to-date!' ); ?></p> 62 62 <p class="step"><a class="button" href="<?php echo get_option( 'home' ); ?>/"><?php _e( 'Continue' ); ?></a></p> … … 64 64 <?php elseif ( !$php_compat || !$mysql_compat ) : 65 65 if ( !$mysql_compat && !$php_compat ) 66 printf( __('You cannot up grade because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> 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 );66 printf( __('You cannot update because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> 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 ); 67 67 elseif ( !$php_compat ) 68 printf( __('You cannot u pgrade because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.'), $wp_version, $required_php_version, $php_version );68 printf( __('You cannot udate because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.'), $wp_version, $required_php_version, $php_version ); 69 69 elseif ( !$mysql_compat ) 70 printf( __('You cannot up grade because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires MySQL version %2$s or higher. You are running version %3$s.'), $wp_version, $required_mysql_version, $mysql_version );70 printf( __('You cannot update because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires MySQL version %2$s or higher. You are running version %3$s.'), $wp_version, $required_mysql_version, $mysql_version ); 71 71 ?> 72 72 <?php else : … … 77 77 $goback = urlencode( $goback ); 78 78 ?> 79 <h2><?php _e( 'Database Up grade Required' ); ?></h2>80 <p><?php _e( 'WordPress has been updated! Before we send you on your way, we have to up grade your database to the newest version.' ); ?></p>81 <p><?php _e( 'The up grade process may take a little while, so please be patient.' ); ?></p>82 <p class="step"><a class="button" href="upgrade.php?step=1&backto=<?php echo $goback; ?>"><?php _e( 'Up grade WordPress Database' ); ?></a></p>79 <h2><?php _e( 'Database Update Required' ); ?></h2> 80 <p><?php _e( 'WordPress has been updated! Before we send you on your way, we have to update your database to the newest version.' ); ?></p> 81 <p><?php _e( 'The update process may take a little while, so please be patient.' ); ?></p> 82 <p class="step"><a class="button" href="upgrade.php?step=1&backto=<?php echo $goback; ?>"><?php _e( 'Update WordPress Database' ); ?></a></p> 83 83 <?php 84 84 break; … … 90 90 $backto = wp_validate_redirect($backto, __get_option( 'home' ) . '/'); 91 91 ?> 92 <h2><?php _e( 'Up grade Complete' ); ?></h2>93 <p><?php _e( 'Your WordPress database has been successfully up graded!' ); ?></p>92 <h2><?php _e( 'Update Complete' ); ?></h2> 93 <p><?php _e( 'Your WordPress database has been successfully updated!' ); ?></p> 94 94 <p class="step"><a class="button" href="<?php echo $backto; ?>"><?php _e( 'Continue' ); ?></a></p> 95 95 -
trunk/wp-includes/functions.php
r16660 r16696 2597 2597 $trans['activate']['plugin'] = array( __( 'Your attempt to activate this plugin: “%s” has failed.' ), 'use_id' ); 2598 2598 $trans['deactivate']['plugin'] = array( __( 'Your attempt to deactivate this plugin: “%s” has failed.' ), 'use_id' ); 2599 $trans['upgrade']['plugin'] = array( __( 'Your attempt to up grade this plugin: “%s” has failed.' ), 'use_id' );2599 $trans['upgrade']['plugin'] = array( __( 'Your attempt to update this plugin: “%s” has failed.' ), 'use_id' ); 2600 2600 2601 2601 $trans['add']['post'] = array( __( 'Your attempt to add this post has failed.' ), false );
Note: See TracChangeset
for help on using the changeset viewer.