Changeset 45932 for trunk/src/wp-admin/includes/theme.php
- Timestamp:
- 09/03/2019 12:39:13 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/theme.php
r45926 r45932 79 79 return new WP_Error( 80 80 'could_not_remove_theme', 81 /* translators: %s: Theme name */81 /* translators: %s: Theme name. */ 82 82 sprintf( __( 'Could not fully remove the theme %s.' ), $stylesheet ) 83 83 ); … … 201 201 if ( ! current_user_can( 'update_themes' ) ) { 202 202 $html = sprintf( 203 /* translators: 1: theme name, 2: theme details URL, 3: additional link attributes, 4: version number*/203 /* translators: 1: Theme name, 2: Theme details URL, 3: Additional link attributes, 4: Version number. */ 204 204 '<p><strong>' . __( 'There is a new version of %1$s available. <a href="%2$s" %3$s>View version %4$s details</a>.' ) . '</strong></p>', 205 205 $theme_name, … … 207 207 sprintf( 208 208 'class="thickbox open-plugin-details-modal" aria-label="%s"', 209 /* translators: 1: theme name, 2: version number*/209 /* translators: 1: Theme name, 2: Version number. */ 210 210 esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme_name, $update['new_version'] ) ) 211 211 ), … … 214 214 } elseif ( empty( $update['package'] ) ) { 215 215 $html = sprintf( 216 /* translators: 1: theme name, 2: theme details URL, 3: additional link attributes, 4: version number*/216 /* translators: 1: Theme name, 2: Theme details URL, 3: Additional link attributes, 4: Version number. */ 217 217 '<p><strong>' . __( 'There is a new version of %1$s available. <a href="%2$s" %3$s>View version %4$s details</a>. <em>Automatic update is unavailable for this theme.</em>' ) . '</strong></p>', 218 218 $theme_name, … … 220 220 sprintf( 221 221 'class="thickbox open-plugin-details-modal" aria-label="%s"', 222 /* translators: 1: theme name, 2: version number*/222 /* translators: 1: Theme name, 2: Version number. */ 223 223 esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme_name, $update['new_version'] ) ) 224 224 ), … … 227 227 } else { 228 228 $html = sprintf( 229 /* translators: 1: theme name, 2: theme details URL, 3: additional link attributes, 4: version number, 5: update URL, 6: additional link attributes*/229 /* translators: 1: Theme name, 2: Theme details URL, 3: Additional link attributes, 4: Version number, 5: Update URL, 6: Additional link attributes. */ 230 230 '<p><strong>' . __( 'There is a new version of %1$s available. <a href="%2$s" %3$s>View version %4$s details</a> or <a href="%5$s" %6$s>update now</a>.' ) . '</strong></p>', 231 231 $theme_name, … … 233 233 sprintf( 234 234 'class="thickbox open-plugin-details-modal" aria-label="%s"', 235 /* translators: 1: theme name, 2: version number*/235 /* translators: 1: Theme name, 2: Version number. */ 236 236 esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme_name, $update['new_version'] ) ) 237 237 ), … … 240 240 sprintf( 241 241 'aria-label="%s" id="update-theme" data-slug="%s"', 242 /* translators: %s: theme name*/242 /* translators: %s: Theme name. */ 243 243 esc_attr( sprintf( __( 'Update %s now' ), $theme_name ) ), 244 244 $stylesheet … … 510 510 trigger_error( 511 511 sprintf( 512 /* translators: %s: support forums URL*/512 /* translators: %s: Support forums URL. */ 513 513 __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ), 514 514 __( 'https://wordpress.org/support/forums/' ) … … 524 524 'themes_api_failed', 525 525 sprintf( 526 /* translators: %s: support forums URL*/526 /* translators: %s: Support forums URL. */ 527 527 __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ), 528 528 __( 'https://wordpress.org/support/forums/' ) … … 539 539 'themes_api_failed', 540 540 sprintf( 541 /* translators: %s: support forums URL*/541 /* translators: %s: Support forums URL. */ 542 542 __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ), 543 543 __( 'https://wordpress.org/support/forums/' ) … … 724 724 <h2 class="theme-name">{{{ data.name }}}<span class="theme-version"> 725 725 <?php 726 /* translators: %s: theme version*/726 /* translators: %s: Theme version. */ 727 727 printf( __( 'Version: %s' ), '{{ data.version }}' ); 728 728 ?> … … 730 730 <h3 class="theme-author"> 731 731 <?php 732 /* translators: %s: theme author link*/732 /* translators: %s: Theme author link. */ 733 733 printf( __( 'By %s' ), '{{{ data.authorAndUri }}}' ); 734 734 ?> … … 742 742 printf( 743 743 '%1$s <span class="screen-reader-text">%2$s</span>', 744 /* translators: %s: number of ratings*/744 /* translators: %s: Number of ratings. */ 745 745 sprintf( __( '(%s ratings)' ), '{{ data.num_ratings }}' ), 746 /* translators: accessibility text*/746 /* translators: Accessibility text. */ 747 747 __( '(opens in a new tab)' ) 748 748 ); … … 763 763 <?php 764 764 printf( 765 /* translators: %s: theme name*/765 /* translators: %s: Theme name. */ 766 766 __( 'This is a child theme of %s.' ), 767 767 '<strong>{{{ data.parent }}}</strong>'
Note: See TracChangeset
for help on using the changeset viewer.