|
422 | 422 | <a class="button load-customize" href="{{ data.customize_url }}"><?php _e( 'Customize' ); ?></a> |
423 | 423 | <# } #> |
424 | 424 | <# } else { #> |
425 | | - <button class="button preview install-theme-preview"><?php _e( 'Preview' ); ?></button> |
| 425 | + <button class="button preview install-theme-preview"><?php echo esc_html_x( 'Preview', 'verb, theme install action button' ); ?></button> |
426 | 426 | <# } #> |
427 | 427 | <# } else { #> |
428 | 428 | <?php |
|
435 | 435 | <# if ( data.customize_url ) { #> |
436 | 436 | <a class="button disabled"><?php _e( 'Live Preview' ); ?></a> |
437 | 437 | <# } else { #> |
438 | | - <button class="button disabled"><?php _e( 'Preview' ); ?></button> |
| 438 | + <button class="button disabled"><?php echo esc_html_x( 'Preview', 'verb, theme install action button' ); ?></button> |
439 | 439 | <# } #> |
440 | 440 | <# } #> |
441 | 441 | <# } else { #> |
|
445 | 445 | $aria_label = sprintf( _x( 'Install %s', 'theme' ), '{{ data.name }}' ); |
446 | 446 | ?> |
447 | 447 | <a class="button button-primary theme-install" data-name="{{ data.name }}" data-slug="{{ data.id }}" href="{{ data.install_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Install' ); ?></a> |
448 | | - <button class="button preview install-theme-preview"><?php _e( 'Preview' ); ?></button> |
| 448 | + <button class="button preview install-theme-preview"><?php echo esc_html_x( 'Preview', 'verb, theme install action button' ); ?></button> |
449 | 449 | <# } else { #> |
450 | 450 | <?php |
451 | 451 | /* translators: %s: Theme name. */ |
452 | 452 | $aria_label = sprintf( _x( 'Cannot Install %s', 'theme' ), '{{ data.name }}' ); |
453 | 453 | ?> |
454 | 454 | <a class="button button-primary disabled" data-name="{{ data.name }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _ex( 'Cannot Install', 'theme' ); ?></a> |
455 | | - <button class="button disabled"><?php _e( 'Preview' ); ?></button> |
| 455 | + <button class="button disabled"><?php echo esc_html_x( 'Preview', 'verb, theme install action button' ); ?></button> |
456 | 456 | <# } #> |
457 | 457 | <# } #> |
458 | 458 | </div> |
|
605 | 605 | </div> |
606 | 606 | </div> |
607 | 607 | <div class="wp-full-overlay-main"> |
608 | | - <iframe src="{{ data.preview_url }}" title="<?php esc_attr_e( 'Preview' ); ?>"></iframe> |
| 608 | + <iframe src="{{ data.preview_url }}" title="<?php echo esc_attr_x( 'Preview', 'noun, iframe title for the theme preview pane' ); ?>"></iframe> |
609 | 609 | </div> |
610 | 610 | </script> |
611 | 611 |
|
|
0 commit comments