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. git-svn-id: https://develop.svn.wordpress.org/trunk@37162 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2b5f172b57
commit
28699803ee
@ -281,11 +281,16 @@ function list_plugin_updates() {
|
||||
}
|
||||
|
||||
$details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '§ion=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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user