Changeset 45932 for trunk/src/wp-admin/update-core.php
- Timestamp:
- 09/03/2019 12:39:13 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/update-core.php
r45926 r45932 62 62 } else { 63 63 if ( $current ) { 64 /* translators: %s: WordPress version */64 /* translators: %s: WordPress version. */ 65 65 $message = sprintf( __( 'If you need to re-install version %s, you can do so here:' ), $version_string ); 66 66 $submit = __( 'Re-install Now' ); … … 75 75 76 76 $version_url = sprintf( 77 /* translators: %s: WordPress version */77 /* translators: %s: WordPress version. */ 78 78 esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ), 79 79 sanitize_title( $update->current ) … … 81 81 82 82 $php_update_message = '</p><p>' . sprintf( 83 /* translators: %s: U pdate PHP page URL*/83 /* translators: %s: URL to Update PHP page. */ 84 84 __( '<a href="%s">Learn more about updating PHP</a>.' ), 85 85 esc_url( wp_get_update_php_url() ) … … 93 93 if ( ! $mysql_compat && ! $php_compat ) { 94 94 $message = sprintf( 95 /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required PHP version number, 4: Minimum required MySQL version number, 5: Current PHP version number, 6: Current MySQL version number */95 /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required PHP version number, 4: Minimum required MySQL version number, 5: Current PHP version number, 6: Current MySQL version number. */ 96 96 __( 'You cannot update because <a href="%1$s">WordPress %2$s</a> requires PHP version %3$s or higher and MySQL version %4$s or higher. You are running PHP version %5$s and MySQL version %6$s.' ), 97 97 $version_url, … … 104 104 } elseif ( ! $php_compat ) { 105 105 $message = sprintf( 106 /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required PHP version number, 4: Current PHP version number */106 /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required PHP version number, 4: Current PHP version number. */ 107 107 __( 'You cannot update because <a href="%1$s">WordPress %2$s</a> requires PHP version %3$s or higher. You are running version %4$s.' ), 108 108 $version_url, … … 113 113 } elseif ( ! $mysql_compat ) { 114 114 $message = sprintf( 115 /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required MySQL version number, 4: Current MySQL version number */115 /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required MySQL version number, 4: Current MySQL version number. */ 116 116 __( 'You cannot update because <a href="%1$s">WordPress %2$s</a> requires MySQL version %3$s or higher. You are running version %4$s.' ), 117 117 $version_url, … … 122 122 } else { 123 123 $message = sprintf( 124 /* translators: 1: URL to WordPress release notes, 2: WordPress version number including locale if necessary */124 /* translators: 1: URL to WordPress release notes, 2: WordPress version number including locale if necessary. */ 125 125 __( 'You can update to <a href="%1$s">WordPress %2$s</a> automatically:' ), 126 126 $version_url, … … 163 163 // Partial builds don't need language-specific warnings. 164 164 echo '<p class="hint">' . sprintf( 165 /* translators: %s: WordPress version */165 /* translators: %s: WordPress version. */ 166 166 __( '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.' ), 167 167 $update->response != 'development' ? $update->current : '' … … 274 274 list( $normalized_version ) = explode( '-', $wp_version ); 275 275 echo '<p>' . sprintf( 276 /* translators: 1: URL to About screen, 2: WordPress version */276 /* translators: 1: URL to About screen, 2: WordPress version. */ 277 277 __( '<a href="%1$s">Learn more about WordPress %2$s</a>.' ), 278 278 esc_url( self_admin_url( 'about.php' ) ), … … 337 337 // Get plugin compat for running version of WordPress. 338 338 if ( isset( $plugin_data->update->tested ) && version_compare( $plugin_data->update->tested, $cur_wp_version, '>=' ) ) { 339 /* translators: %s: WordPress version */339 /* translators: %s: WordPress version. */ 340 340 $compat = '<br />' . sprintf( __( 'Compatibility with WordPress %s: 100%% (according to its author)' ), $cur_wp_version ); 341 341 } else { 342 /* translators: %s: WordPress version */342 /* translators: %s: WordPress version. */ 343 343 $compat = '<br />' . sprintf( __( 'Compatibility with WordPress %s: Unknown' ), $cur_wp_version ); 344 344 } … … 346 346 if ( $core_update_version ) { 347 347 if ( isset( $plugin_data->update->tested ) && version_compare( $plugin_data->update->tested, $core_update_version, '>=' ) ) { 348 /* translators: %s: WordPress version */348 /* translators: %s: WordPress version. */ 349 349 $compat .= '<br />' . sprintf( __( 'Compatibility with WordPress %s: 100%% (according to its author)' ), $core_update_version ); 350 350 } else { 351 /* translators: %s: WordPress version */351 /* translators: %s: WordPress version. */ 352 352 $compat .= '<br />' . sprintf( __( 'Compatibility with WordPress %s: Unknown' ), $core_update_version ); 353 353 } … … 360 360 $compat .= '<br>' . __( 'This update doesn’t work with your version of PHP.' ) . ' '; 361 361 $compat .= sprintf( 362 /* translators: %s: U pdate PHP page URL*/362 /* translators: %s: URL to Update PHP page. */ 363 363 __( '<a href="%s">Learn more about updating PHP</a>.' ), 364 364 esc_url( wp_get_update_php_url() ) … … 383 383 '<a href="%1$s" class="thickbox open-plugin-details-modal" aria-label="%2$s">%3$s</a>', 384 384 esc_url( $details_url ), 385 /* translators: 1: plugin name, 2: version number*/385 /* translators: 1: Plugin name, 2: Version number. */ 386 386 esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $plugin_data->Name, $plugin_data->update->new_version ) ), 387 /* translators: %s: plugin version*/387 /* translators: %s: Plugin version. */ 388 388 sprintf( __( 'View version %s details.' ), $plugin_data->update->new_version ) 389 389 ); … … 397 397 <label for="<?php echo $checkbox_id; ?>" class="screen-reader-text"> 398 398 <?php 399 /* translators: %s: plugin name*/399 /* translators: %s: Plugin name. */ 400 400 printf( __( 'Select %s' ), $plugin_data->Name ); 401 401 ?> … … 408 408 <?php 409 409 printf( 410 /* translators: 1: plugin version, 2: new version*/410 /* translators: 1: Plugin version, 2: New version. */ 411 411 __( 'You have version %1$s installed. Update to %2$s.' ), 412 412 $plugin_data->Version, … … 452 452 <?php 453 453 printf( 454 /* translators: %s: link to documentation on child themes*/454 /* translators: %s: Link to documentation on child themes. */ 455 455 __( '<strong>Please Note:</strong> Any customizations you have made to theme files will be lost. Please consider using <a href="%s">child themes</a> for modifications.' ), 456 456 __( 'https://developer.wordpress.org/themes/advanced-topics/child-themes/' ) … … 479 479 <label for="<?php echo $checkbox_id; ?>" class="screen-reader-text"> 480 480 <?php 481 /* translators: %s: theme name*/481 /* translators: %s: Theme name. */ 482 482 printf( __( 'Select %s' ), $theme->display( 'Name' ) ); 483 483 ?> … … 489 489 <?php 490 490 printf( 491 /* translators: 1: theme version, 2: new version*/491 /* translators: 1: Theme version, 2: New version. */ 492 492 __( 'You have version %1$s installed. Update to %2$s.' ), 493 493 $theme->display( 'Version' ), … … 622 622 show_message( 623 623 '<span class="hide-if-no-js">' . sprintf( 624 /* translators: 1: WordPress version, 2: URL to About screen */624 /* translators: 1: WordPress version, 2: URL to About screen. */ 625 625 __( 'Welcome to WordPress %1$s. You will be redirected to the About WordPress screen. If not, click <a href="%2$s">here</a>.' ), 626 626 $result, … … 630 630 show_message( 631 631 '<span class="hide-if-js">' . sprintf( 632 /* translators: 1: WordPress version, 2: URL to About screen */632 /* translators: 1: WordPress version, 2: URL to About screen. */ 633 633 __( 'Welcome to WordPress %1$s. <a href="%2$s">Learn more</a>.' ), 634 634 $result, … … 746 746 747 747 echo '<p>'; 748 /* translators: 1: date, 2: time*/748 /* translators: 1: Date, 2: Time. */ 749 749 printf( __( 'Last checked on %1$s at %2$s.' ), date_i18n( __( 'F j, Y' ), $last_update_check ), date_i18n( __( 'g:i a' ), $last_update_check ) ); 750 750 echo ' <a class="button" href="' . esc_url( self_admin_url( 'update-core.php?force-check=1' ) ) . '">' . __( 'Check Again' ) . '</a>';
Note: See TracChangeset
for help on using the changeset viewer.