I18N: On the Updates screen simplify plugin's version details link.

Replace the use of a `.screen-reader-text` element with an `aria-label` attribute to make the text easier to translate.

Props dimadin, ocean90.
See #35001.
Fixes #36410.
Built from https://develop.svn.wordpress.org/trunk@37162


git-svn-id: http://core.svn.wordpress.org/trunk@37129 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2016-04-06 12:52:30 +00:00
parent c35af62afd
commit b3b22fa1c6
2 changed files with 11 additions and 6 deletions

View File

@ -281,11 +281,16 @@ function list_plugin_updates() {
}
$details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
$details_name = sprintf( '<span class="screen-reader-text">%1$s</span>', esc_attr( $plugin_data->Name ) );
/* translators: 1: Plugin name 2: Plugin version */
$details_text = sprintf( __( 'View %1$s version %2$s details.' ), $details_name, $plugin_data->update->new_version );
$details = sprintf( '<a href="%1$s" class="thickbox open-plugin-details-modal">%2$s</a>', esc_url( $details_url ), $details_text );
$checkbox_id = "checkbox_" . md5( $plugin_data->Name );
$details = sprintf(
'<a href="%1$s" class="thickbox open-plugin-details-modal" aria-label="%2$s">%3$s</a>',
esc_url( $details_url ),
/* translators: 1: plugin name, 2: version number */
esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $plugin_data->Name, $plugin_data->update->new_version ) ),
/* translators: %s: plugin version */
sprintf( __( 'View version %s details.' ), $plugin_data->update->new_version )
);
$checkbox_id = "checkbox_" . md5( $plugin_data->Name );
?>
<tr>
<td class="check-column">

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.5-RC1-37161';
$wp_version = '4.5-RC1-37162';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.