Enable translation of auth plugin description

Signed-off-by: Marc Delisle <marc@infomarc.info>
This commit is contained in:
Marc Delisle 2015-10-13 11:14:57 -04:00
parent 17c4bb184c
commit b884ccd753

View File

@ -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 .= '<option value="' . $plugin['PLUGIN_NAME'] . '"'
. ($orig_auth_plugin == $plugin['PLUGIN_NAME'] ? 'selected ' : '')
. '>' . __($plugin['PLUGIN_DESCRIPTION']) . '</option>';
. '>' . $description . '</option>';
}
$html_output .= '</select>';
} else {