- Timestamp:
- 09/03/2019 12:39:13 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-automatic-updater.php
r45926 r45932 316 316 switch ( $type ) { 317 317 case 'core': 318 /* translators: %s: WordPress version */318 /* translators: %s: WordPress version. */ 319 319 $skin->feedback( __( 'Updating to WordPress %s' ), $item->version ); 320 /* translators: %s: WordPress version */320 /* translators: %s: WordPress version. */ 321 321 $item_name = sprintf( __( 'WordPress %s' ), $item->version ); 322 322 break; … … 325 325 $theme = wp_get_theme( $upgrader_item ); 326 326 $item_name = $theme->Get( 'Name' ); 327 /* translators: %s: Theme name */327 /* translators: %s: Theme name. */ 328 328 $skin->feedback( __( 'Updating theme: %s' ), $item_name ); 329 329 break; … … 332 332 $plugin_data = get_plugin_data( $context . '/' . $upgrader_item ); 333 333 $item_name = $plugin_data['Name']; 334 /* translators: %s: Plugin name */334 /* translators: %s: Plugin name. */ 335 335 $skin->feedback( __( 'Updating plugin: %s' ), $item_name ); 336 336 break; 337 337 case 'translation': 338 338 $language_item_name = $upgrader->get_name_for_update( $item ); 339 /* translators: %s: Project name (plugin, theme, or WordPress) */339 /* translators: %s: Project name (plugin, theme, or WordPress). */ 340 340 $item_name = sprintf( __( 'Translations for %s' ), $language_item_name ); 341 /* translators: 1: Project name (plugin, theme, or WordPress), 2: Language */341 /* translators: 1: Project name (plugin, theme, or WordPress), 2: Language. */ 342 342 $skin->feedback( sprintf( __( 'Updating translations for %1$s (%2$s)…' ), $language_item_name, $item->language ) ); 343 343 break; … … 678 678 case 'success': 679 679 $body .= sprintf( 680 /* translators: 1: Home URL, 2: WordPress version */680 /* translators: 1: Home URL, 2: WordPress version. */ 681 681 __( 'Howdy! Your site at %1$s has been updated automatically to WordPress %2$s.' ), 682 682 home_url(), … … 690 690 // Can only reference the About screen if their update was successful. 691 691 list( $about_version ) = explode( '-', $core_update->current, 2 ); 692 /* translators: %s: WordPress version */692 /* translators: %s: WordPress version. */ 693 693 $body .= sprintf( __( 'For more on version %s, see the About WordPress screen:' ), $about_version ); 694 694 $body .= "\n" . admin_url( 'about.php' ); 695 695 696 696 if ( $newer_version_available ) { 697 /* translators: %s: WordPress latest version */697 /* translators: %s: WordPress latest version. */ 698 698 $body .= "\n\n" . sprintf( __( 'WordPress %s is also now available.' ), $next_user_core_update->current ) . ' '; 699 699 $body .= __( 'Updating is easy and only takes a few moments:' ); … … 706 706 case 'manual': 707 707 $body .= sprintf( 708 /* translators: 1: Home URL, 2: WordPress version */708 /* translators: 1: Home URL, 2: WordPress version. */ 709 709 __( 'Please update your site at %1$s to WordPress %2$s.' ), 710 710 home_url(), … … 727 727 if ( $newer_version_available ) { 728 728 $body .= sprintf( 729 /* translators: 1: Home URL, 2: WordPress version */729 /* translators: 1: Home URL, 2: WordPress version. */ 730 730 __( 'Your site at %1$s experienced a critical failure while trying to update WordPress to version %2$s.' ), 731 731 home_url(), … … 734 734 } else { 735 735 $body .= sprintf( 736 /* translators: 1: Home URL, 2: WordPress latest version */736 /* translators: 1: Home URL, 2: WordPress latest version. */ 737 737 __( 'Your site at %1$s experienced a critical failure while trying to update to the latest version of WordPress, %2$s.' ), 738 738 home_url(), … … 752 752 // Support offer if available. 753 753 $body .= "\n\n" . sprintf( 754 /* translators: %s: Support email address */754 /* translators: %s: Support email address. */ 755 755 __( 'The WordPress team is willing to help you. Forward this email to %s and the team will work with you to make sure your site is working.' ), 756 756 $core_update->support_email … … 781 781 if ( 'critical' == $type && is_wp_error( $result ) ) { 782 782 $body .= "\n***\n\n"; 783 /* translators: %s: WordPress version */783 /* translators: %s: WordPress version. */ 784 784 $body .= sprintf( __( 'Your site was running version %s.' ), get_bloginfo( 'version' ) ); 785 785 $body .= ' ' . __( 'We have some data that describes the error your site encountered.' ); … … 799 799 } 800 800 $error_code = $error->get_error_code(); 801 /* translators: %s: Error code */801 /* translators: %s: Error code. */ 802 802 $body .= "\n\n" . sprintf( __( 'Error code: %s' ), $error_code ); 803 803 if ( 'rollback_was_required' == $error_code ) { … … 858 858 $failures = 0; 859 859 860 /* translators: %s: Network home URL */860 /* translators: %s: Network home URL. */ 861 861 $body[] = sprintf( __( 'WordPress site: %s' ), network_home_url( '/' ) ); 862 862 … … 865 865 $result = $this->update_results['core'][0]; 866 866 if ( $result->result && ! is_wp_error( $result->result ) ) { 867 /* translators: %s: WordPress version */867 /* translators: %s: WordPress version. */ 868 868 $body[] = sprintf( __( 'SUCCESS: WordPress was successfully updated to %s' ), $result->name ); 869 869 } else { 870 /* translators: %s: WordPress version */870 /* translators: %s: WordPress version. */ 871 871 $body[] = sprintf( __( 'FAILED: WordPress failed to update to %s' ), $result->name ); 872 872 $failures++; … … 890 890 $body[] = $messages[ $type ]; 891 891 foreach ( wp_list_pluck( $success_items, 'name' ) as $name ) { 892 /* translators: %s: name of plugin / theme / translation*/892 /* translators: %s: Name of plugin / theme / translation. */ 893 893 $body[] = ' * ' . sprintf( __( 'SUCCESS: %s' ), $name ); 894 894 } … … 905 905 foreach ( $this->update_results[ $type ] as $item ) { 906 906 if ( ! $item->result || is_wp_error( $item->result ) ) { 907 /* translators: %s: name of plugin / theme / translation*/907 /* translators: %s: Name of plugin / theme / translation. */ 908 908 $body[] = ' * ' . sprintf( __( 'FAILED: %s' ), $item->name ); 909 909 $failures++; … … 932 932 $body[] = ''; 933 933 934 /* translators: Background update failed notification email subject. %s: Site title */934 /* translators: Background update failed notification email subject. %s: Site title. */ 935 935 $subject = sprintf( __( '[%s] Background Update Failed' ), $site_title ); 936 936 } else { 937 /* translators: Background update finished notification email subject. %s: Site title */937 /* translators: Background update finished notification email subject. %s: Site title. */ 938 938 $subject = sprintf( __( '[%s] Background Update Finished' ), $site_title ); 939 939 }
Note: See TracChangeset
for help on using the changeset viewer.