WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/13/2016 05:31:15 PM (3 years ago)
Author:
ocean90
Message:

Update/Install: Give context to some install/update strings to allow for differentiation between theme and plugin translations.

Props swissspidy, SergeyBiryukov.
Fixes #37290.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/theme.php

    r38025 r38057  
    636636                <div class="theme-actions">
    637637                    <div class="inactive-theme">
    638                         <a href="<?php echo $preview_url; ?>" target="_top" class="button button-primary"><?php _e( 'Live Preview' ); ?></a>
     638                        <?php
     639                        /* translators: %s: Theme name */
     640                        $aria_label = sprintf( __( 'Preview %s' ), '{{ data.name }}' );
     641                        ?>
     642                        <a href="<?php echo $preview_url; ?>" target="_top" class="button button-primary" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Live Preview' ); ?></a>
    639643                    </div>
    640644                </div>
Note: See TracChangeset for help on using the changeset viewer.