Changeset 38082
- Timestamp:
- 07/17/2016 09:02:21 PM (9 years ago)
- Location:
- trunk/src/wp-admin/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/theme.php
r38074 r38082 172 172 if ( !is_multisite() ) { 173 173 if ( ! current_user_can('update_themes') ) { 174 /* translators: 1: theme name, 2: theme details URL, 3: a ccessibility text, 4: version number */175 $html = sprintf( '<p><strong>' . __( 'There is a new version of %1$s available. <a href="%2$s" class="thickbox open-plugin-details-modal" aria-label="%3$s">View version %4$s details</a>.' ) . '</strong></p>',174 /* translators: 1: theme name, 2: theme details URL, 3: additional link attributes, 4: version number */ 175 $html = sprintf( '<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>', 176 176 $theme_name, 177 177 esc_url( $details_url ), 178 /* translators: 1: theme name, 2: version number */ 179 esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme_name, $update['new_version'] ) ), 178 sprintf( 'class="thickbox open-plugin-details-modal" aria-label="%s"', 179 /* translators: 1: theme name, 2: version number */ 180 esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme_name, $update['new_version'] ) ) 181 ), 180 182 $update['new_version'] 181 183 ); 182 184 } elseif ( empty( $update['package'] ) ) { 183 /* translators: 1: theme name, 2: theme details URL, 3: a ccessibility text, 4: version number */184 $html = sprintf( '<p><strong>' . __( 'There is a new version of %1$s available. <a href="%2$s" class="thickbox open-plugin-details-modal" aria-label="%3$s">View version %4$s details</a>. <em>Automatic update is unavailable for this theme.</em>' ) . '</strong></p>',185 /* translators: 1: theme name, 2: theme details URL, 3: additional link attributes, 4: version number */ 186 $html = sprintf( '<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>', 185 187 $theme_name, 186 188 esc_url( $details_url ), 187 /* translators: 1: theme name, 2: version number */ 188 esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme_name, $update['new_version'] ) ), 189 sprintf( 'class="thickbox open-plugin-details-modal" aria-label="%s"', 190 /* translators: 1: theme name, 2: version number */ 191 esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme_name, $update['new_version'] ) ) 192 ), 189 193 $update['new_version'] 190 194 ); 191 195 } else { 192 /* translators: 1: theme name, 2: theme details URL, 3: a ccessibility text, 4: version number, 5: update URL, 6: accessibility text*/193 $html = sprintf( '<p><strong>' . __( 'There is a new version of %1$s available. <a href="%2$s" class="thickbox open-plugin-details-modal" aria-label="%3$s">View version %4$s details</a> or <a href="%5$s" aria-label="%6$s" id="update-theme" data-slug="%7$s">update now</a>.' ) . '</strong></p>',196 /* translators: 1: theme name, 2: theme details URL, 3: additional link attributes, 4: version number, 5: update URL, 6: additional link attributes */ 197 $html = sprintf( '<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>', 194 198 $theme_name, 195 199 esc_url( $details_url ), 196 /* translators: 1: theme name, 2: version number */ 197 esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme_name, $update['new_version'] ) ), 200 sprintf( 'class="thickbox open-plugin-details-modal" aria-label="%s"', 201 /* translators: 1: theme name, 2: version number */ 202 esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme_name, $update['new_version'] ) ) 203 ), 198 204 $update['new_version'], 199 205 $update_url, 200 /* translators: %s: theme name */ 201 esc_attr( sprintf( __( 'Update %s now' ), $theme_name ) ), 202 $stylesheet 206 sprintf( 'aria-label="%s" id="update-theme" data-slug="%s"', 207 /* translators: %s: theme name */ 208 esc_attr( sprintf( __( 'Update %s now' ), $theme_name ) ), 209 $stylesheet 210 ) 203 211 ); 204 212 } -
trunk/src/wp-admin/includes/update.php
r38057 r38082 369 369 370 370 if ( ! current_user_can( 'update_plugins' ) ) { 371 /* translators: 1: plugin name, 2: details URL, 3: a ccessibility text, 4: version number */372 printf( __( 'There is a new version of %1$s available. <a href="%2$s" class="thickbox open-plugin-details-modal" aria-label="%3$s">View version %4$s details</a>.' ),371 /* translators: 1: plugin name, 2: details URL, 3: additional link attributes, 4: version number */ 372 printf( __( 'There is a new version of %1$s available. <a href="%2$s" %3$s>View version %4$s details</a>.' ), 373 373 $plugin_name, 374 374 esc_url( $details_url ), 375 /* translators: 1: plugin name, 2: version number */ 376 esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $plugin_name, $response->new_version ) ), 375 sprintf( 'class="thickbox open-plugin-details-modal" aria-label="%s"', 376 /* translators: 1: plugin name, 2: version number */ 377 esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $plugin_name, $response->new_version ) ) 378 ), 377 379 $response->new_version 378 380 ); 379 381 } elseif ( empty( $response->package ) ) { 380 /* translators: 1: plugin name, 2: details URL, 3: a ccessibility text, 4: version number */381 printf( __( 'There is a new version of %1$s available. <a href="%2$s" class="thickbox open-plugin-details-modal" aria-label="%3$s">View version %4$s details</a>. <em>Automatic update is unavailable for this plugin.</em>' ),382 /* translators: 1: plugin name, 2: details URL, 3: additional link attributes, 4: version number */ 383 printf( __( '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 plugin.</em>' ), 382 384 $plugin_name, 383 385 esc_url( $details_url ), 384 /* translators: 1: plugin name, 2: version number */ 385 esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $plugin_name, $response->new_version ) ), 386 sprintf( 'class="thickbox open-plugin-details-modal" aria-label="%s"', 387 /* translators: 1: plugin name, 2: version number */ 388 esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $plugin_name, $response->new_version ) ) 389 ), 386 390 $response->new_version 387 391 ); 388 392 } else { 389 /* translators: 1: plugin name, 2: details URL, 3: a ccessibility text, 4: version number, 5: update URL, 6: accessibility text*/390 printf( __( 'There is a new version of %1$s available. <a href="%2$s" class="thickbox open-plugin-details-modal" aria-label="%3$s">View version %4$s details</a> or <a href="%5$s" class="update-link" aria-label="%6$s">update now</a>.' ),393 /* translators: 1: plugin name, 2: details URL, 3: additional link attributes, 4: version number, 5: update URL, 6: additional link attributes */ 394 printf( __( '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>.' ), 391 395 $plugin_name, 392 396 esc_url( $details_url ), 393 /* translators: 1: plugin name, 2: version number */ 394 esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $plugin_name, $response->new_version ) ), 397 sprintf( 'class="thickbox open-plugin-details-modal" aria-label="%s"', 398 /* translators: 1: plugin name, 2: version number */ 399 esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $plugin_name, $response->new_version ) ) 400 ), 395 401 $response->new_version, 396 402 wp_nonce_url( self_admin_url( 'update.php?action=upgrade-plugin&plugin=' ) . $file, 'upgrade-plugin_' . $file ), 397 /* translators: %s: plugin name */ 398 esc_attr( sprintf( __( 'Update %s now' ), $plugin_name ) ) 403 sprintf( 'class="update-link" aria-label="%s"', 404 /* translators: %s: plugin name */ 405 esc_attr( sprintf( __( 'Update %s now' ), $plugin_name ) ) 406 ) 399 407 ); 400 408 } … … 506 514 echo '<tr class="plugin-update-tr' . $active . '" id="' . esc_attr( $theme->get_stylesheet() . '-update' ) . '" data-slug="' . esc_attr( $theme->get_stylesheet() ) . '"><td colspan="' . $wp_list_table->get_column_count() . '" class="plugin-update colspanchange"><div class="update-message notice inline notice-warning notice-alt"><p>'; 507 515 if ( ! current_user_can( 'update_themes' ) ) { 508 /* translators: 1: theme name, 2: details URL, 3: a ccessibility text, 4: version number */509 printf( __( 'There is a new version of %1$s available. <a href="%2$s" class="thickbox open-plugin-details-modal" aria-label="%3$s">View version %4$s details</a>.'),516 /* translators: 1: theme name, 2: details URL, 3: additional link attributes, 4: version number */ 517 printf( __( 'There is a new version of %1$s available. <a href="%2$s" %3$s>View version %4$s details</a>.'), 510 518 $theme['Name'], 511 519 esc_url( $details_url ), 512 /* translators: 1: theme name, 2: version number */ 513 esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme['Name'], $response['new_version'] ) ), 520 sprintf( 'class="thickbox open-plugin-details-modal" aria-label="%s"', 521 /* translators: 1: theme name, 2: version number */ 522 esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme['Name'], $response['new_version'] ) ) 523 ), 514 524 $response['new_version'] 515 525 ); 516 526 } elseif ( empty( $response['package'] ) ) { 517 /* translators: 1: theme name, 2: details URL, 3: a ccessibility text, 4: version number */518 printf( __( 'There is a new version of %1$s available. <a href="%2$s" class="thickbox open-plugin-details-modal" aria-label="%3$s">View version %4$s details</a>. <em>Automatic update is unavailable for this theme.</em>' ),527 /* translators: 1: theme name, 2: details URL, 3: additional link attributes, 4: version number */ 528 printf( __( '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>' ), 519 529 $theme['Name'], 520 530 esc_url( $details_url ), 521 /* translators: 1: theme name, 2: version number */ 522 esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme['Name'], $response['new_version'] ) ), 531 sprintf( 'class="thickbox open-plugin-details-modal" aria-label="%s"', 532 /* translators: 1: theme name, 2: version number */ 533 esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme['Name'], $response['new_version'] ) ) 534 ), 523 535 $response['new_version'] 524 536 ); 525 537 } else { 526 /* translators: 1: theme name, 2: details URL, 3: a ccessibility text, 4: version number, 5: update URL, 6: accessibility text*/527 printf( __( 'There is a new version of %1$s available. <a href="%2$s" class="thickbox open-plugin-details-modal" aria-label="%3$s">View version %4$s details</a> or <a href="%5$s" class="update-link" aria-label="%6$s">update now</a>.' ),538 /* translators: 1: theme name, 2: details URL, 3: additional link attributes, 4: version number, 5: update URL, 6: additional link attributes */ 539 printf( __( '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>.' ), 528 540 $theme['Name'], 529 541 esc_url( $details_url ), 530 /* translators: 1: theme name, 2: version number */ 531 esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme['Name'], $response['new_version'] ) ), 542 sprintf( 'class="thickbox open-plugin-details-modal" aria-label="%s"', 543 /* translators: 1: theme name, 2: version number */ 544 esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme['Name'], $response['new_version'] ) ) 545 ), 532 546 $response['new_version'], 533 547 wp_nonce_url( self_admin_url( 'update.php?action=upgrade-theme&theme=' ) . $theme_key, 'upgrade-theme_' . $theme_key ), 534 /* translators: %s: theme name */ 535 esc_attr( sprintf( __( 'Update %s now' ), $theme['Name'] ) ) 548 sprintf( 'class="update-link" aria-label="%s"', 549 /* translators: %s: theme name */ 550 esc_attr( sprintf( __( 'Update %s now' ), $theme['Name'] ) ) 551 ) 536 552 ); 537 553 }
Note: See TracChangeset
for help on using the changeset viewer.