Make WordPress Core


Ignore:
Timestamp:
07/20/2020 11:12:33 PM (4 years ago)
Author:
SergeyBiryukov
Message:

I18N: Add context to some plugin and theme strings for consistency.

Props ramiy, audrasjb.
Fixes #50710.

File:
1 edited

Legend:

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

    r48111 r48520  
    324324                    <?php
    325325                    /* translators: %s: Theme name. */
    326                     $aria_label = sprintf( __( 'Install %s' ), '{{ data.name }}' );
     326                    $aria_label = sprintf( _x( 'Install %s', 'theme' ), '{{ data.name }}' );
    327327                    ?>
    328328                    <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>
     
    331331                    <?php
    332332                    /* translators: %s: Theme name. */
    333                     $aria_label = sprintf( __( 'Cannot Install %s' ), '{{ data.name }}' );
     333                    $aria_label = sprintf( _x( 'Cannot Install %s', 'theme' ), '{{ data.name }}' );
    334334                    ?>
    335335                    <a class="button button-primary disabled" data-name="{{ data.name }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _ex( 'Cannot Install', 'theme' ); ?></a>
Note: See TracChangeset for help on using the changeset viewer.