I18N: Add context to some theme strings for consistency.

Props ramiy, ocean90.
Fixes #50709.

git-svn-id: https://develop.svn.wordpress.org/trunk@48545 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-07-21 16:31:06 +00:00
parent 0da858ffae
commit e10083b7de
3 changed files with 3 additions and 3 deletions

View File

@ -134,7 +134,7 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
esc_url( $activate_link ),
__( 'Activate' ),
/* translators: %s: Theme name. */
sprintf( __( 'Activate “%s”' ), $name )
sprintf( _x( 'Activate “%s”', 'theme' ), $name )
);
if ( is_network_admin() && current_user_can( 'manage_network_themes' ) ) {

View File

@ -94,7 +94,7 @@ class Theme_Upgrader_Skin extends WP_Upgrader_Skin {
esc_url( $activate_link ),
__( 'Activate' ),
/* translators: %s: Theme name. */
sprintf( __( 'Activate “%s”' ), $name )
sprintf( _x( 'Activate “%s”', 'theme' ), $name )
);
}

View File

@ -212,7 +212,7 @@ class WP_Themes_List_Table extends WP_List_Table {
'<a href="%s" class="activatelink" title="%s">%s</a>',
$activate_link,
/* translators: %s: Theme name. */
esc_attr( sprintf( __( 'Activate &#8220;%s&#8221;' ), $title ) ),
esc_attr( sprintf( _x( 'Activate &#8220;%s&#8221;', 'theme' ), $title ) ),
__( 'Activate' )
);