Changeset 38082 for trunk/src/wp-admin/includes/update.php
- Timestamp:
- 07/17/2016 09:02:21 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.