From 28699803ee5f7f350aabaa74a10674c928237f5b Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Wed, 6 Apr 2016 12:51:57 +0000 Subject: [PATCH] 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 --- src/wp-admin/update-core.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/wp-admin/update-core.php b/src/wp-admin/update-core.php index bbed380326..38c30d4de6 100644 --- a/src/wp-admin/update-core.php +++ b/src/wp-admin/update-core.php @@ -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( '%1$s', 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( '%2$s', esc_url( $details_url ), $details_text ); - $checkbox_id = "checkbox_" . md5( $plugin_data->Name ); + $details = sprintf( + '%3$s', + 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 ); ?>