I18N: Mark screen reader strings as such with translator comments.
This aims to provide better context for translators and make it easier to determine that some strings contain hidden accessibility text and are not displayed in the UI. Props kebbet, mercime, pavelevap, ocean90, swissspidy, Chouby, jipmoors, afercia, desrosj, costdev, audrasjb, SergeyBiryukov. Fixes #29748. Built from https://develop.svn.wordpress.org/trunk@55276 git-svn-id: http://core.svn.wordpress.org/trunk@54809 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -129,7 +129,7 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
|
||||
'<span aria-hidden="true">%s</span><span class="screen-reader-text">%s</span></a>',
|
||||
esc_url( $customize_url ),
|
||||
__( 'Live Preview' ),
|
||||
/* translators: %s: Theme name. */
|
||||
/* translators: Hidden accessibility text. %s: Theme name. */
|
||||
sprintf( __( 'Live Preview “%s”' ), $name )
|
||||
);
|
||||
}
|
||||
@@ -139,7 +139,7 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
|
||||
'<span aria-hidden="true">%s</span><span class="screen-reader-text">%s</span></a>',
|
||||
esc_url( $activate_link ),
|
||||
__( 'Activate' ),
|
||||
/* translators: %s: Theme name. */
|
||||
/* translators: Hidden accessibility text. %s: Theme name. */
|
||||
sprintf( _x( 'Activate “%s”', 'theme' ), $name )
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user