Changeset 45926 for trunk/src/wp-admin/includes/theme.php
- Timestamp:
- 09/01/2019 05:12:43 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/theme.php
r45583 r45926 77 77 78 78 if ( ! $deleted ) { 79 return new WP_Error( 'could_not_remove_theme', sprintf( __( 'Could not fully remove the theme %s.' ), $stylesheet ) ); 79 return new WP_Error( 80 'could_not_remove_theme', 81 /* translators: %s: Theme name */ 82 sprintf( __( 'Could not fully remove the theme %s.' ), $stylesheet ) 83 ); 80 84 } 81 85 … … 196 200 if ( ! is_multisite() ) { 197 201 if ( ! current_user_can( 'update_themes' ) ) { 198 /* translators: 1: theme name, 2: theme details URL, 3: additional link attributes, 4: version number */199 202 $html = sprintf( 203 /* translators: 1: theme name, 2: theme details URL, 3: additional link attributes, 4: version number */ 200 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>', 201 205 $theme_name, … … 209 213 ); 210 214 } elseif ( empty( $update['package'] ) ) { 211 /* translators: 1: theme name, 2: theme details URL, 3: additional link attributes, 4: version number */212 215 $html = sprintf( 216 /* translators: 1: theme name, 2: theme details URL, 3: additional link attributes, 4: version number */ 213 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>', 214 218 $theme_name, … … 222 226 ); 223 227 } else { 224 /* translators: 1: theme name, 2: theme details URL, 3: additional link attributes, 4: version number, 5: update URL, 6: additional link attributes */225 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 */ 226 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>', 227 231 $theme_name, … … 718 722 <span class="current-label"><?php _e( 'Current Theme' ); ?></span> 719 723 <# } #> 720 <h2 class="theme-name">{{{ data.name }}}<span class="theme-version"><?php printf( __( 'Version: %s' ), '{{ data.version }}' ); ?></span></h2> 721 <h3 class="theme-author"><?php printf( __( 'By %s' ), '{{{ data.authorAndUri }}}' ); ?></h3> 724 <h2 class="theme-name">{{{ data.name }}}<span class="theme-version"> 725 <?php 726 /* translators: %s: theme version */ 727 printf( __( 'Version: %s' ), '{{ data.version }}' ); 728 ?> 729 </span></h2> 730 <h3 class="theme-author"> 731 <?php 732 /* translators: %s: theme author link */ 733 printf( __( 'By %s' ), '{{{ data.authorAndUri }}}' ); 734 ?> 735 </h3> 722 736 723 737 <# if ( data.stars && 0 != data.num_ratings ) { #> … … 746 760 747 761 <# if ( data.parent ) { #> 748 <p class="parent-theme"><?php printf( __( 'This is a child theme of %s.' ), '<strong>{{{ data.parent }}}</strong>' ); ?></p> 762 <p class="parent-theme"> 763 <?php 764 printf( 765 /* translators: %s: theme name */ 766 __( 'This is a child theme of %s.' ), 767 '<strong>{{{ data.parent }}}</strong>' 768 ); 769 ?> 770 </p> 749 771 <# } #> 750 772
Note: See TracChangeset
for help on using the changeset viewer.