From b884ccd7537032782359e0bb5fceae969b16c307 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 13 Oct 2015 11:14:57 -0400 Subject: [PATCH] Enable translation of auth plugin description Signed-off-by: Marc Delisle --- libraries/server_privileges.lib.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/libraries/server_privileges.lib.php b/libraries/server_privileges.lib.php index e2da8c5380..d0cab4e047 100644 --- a/libraries/server_privileges.lib.php +++ b/libraries/server_privileges.lib.php @@ -1442,9 +1442,20 @@ function PMA_getHtmlForAuthPluginsDropdown( if ($plugin['PLUGIN_NAME'] == 'mysql_old_password') { continue; } + // if description is known, enable its translation + if ('Native MySQL authentication' == $plugin['PLUGIN_DESCRIPTION']) { + $description = __('Native MySQL authentication'); + } elseif ('SHA256 password authentication' == $plugin['PLUGIN_DESCRIPTION']) { + $description = __('SHA256 password authentication'); + } else { + // but there can be other auth plugins, see + // https://github.com/phpmyadmin/phpmyadmin/issues/11561 + $description = $plugin['PLUGIN_DESCRIPTION']; + } + $html_output .= ''; + . '>' . $description . ''; } $html_output .= ''; } else {