mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
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:
parent
c35af62afd
commit
b3b22fa1c6
@ -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_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 ) );
|
$details = sprintf(
|
||||||
/* translators: 1: Plugin name 2: Plugin version */
|
'<a href="%1$s" class="thickbox open-plugin-details-modal" aria-label="%2$s">%3$s</a>',
|
||||||
$details_text = sprintf( __( 'View %1$s version %2$s details.' ), $details_name, $plugin_data->update->new_version );
|
esc_url( $details_url ),
|
||||||
$details = sprintf( '<a href="%1$s" class="thickbox open-plugin-details-modal">%2$s</a>', esc_url( $details_url ), $details_text );
|
/* translators: 1: plugin name, 2: version number */
|
||||||
$checkbox_id = "checkbox_" . md5( $plugin_data->Name );
|
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>
|
<tr>
|
||||||
<td class="check-column">
|
<td class="check-column">
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user