Merge branch 'master' into rte
This commit is contained in:
commit
67c5b63a4a
@ -187,7 +187,7 @@ if (! empty($_REQUEST['execute_routine']) && ! empty($_REQUEST['routine_name']))
|
||||
}
|
||||
} else {
|
||||
$output = '';
|
||||
$message = PMA_message::error(sprintf(__('Query "%s" failed'), $query) . '<br /><br />'
|
||||
$message = PMA_message::error(sprintf(__('The following query has failed: "%s"'), $query) . '<br /><br />'
|
||||
. __('MySQL said: ') . PMA_DBI_getError(null));
|
||||
}
|
||||
// Print/send output
|
||||
@ -206,7 +206,7 @@ if (! empty($_REQUEST['execute_routine']) && ! empty($_REQUEST['routine_name']))
|
||||
}
|
||||
} else {
|
||||
$message = __('Error in processing request') . ' : '
|
||||
. sprintf(__('No routine with name %s found in database %s'),
|
||||
. sprintf(__('No routine with name %1$s found in database %2$s'),
|
||||
htmlspecialchars(PMA_backquote($_REQUEST['routine_name'])),
|
||||
htmlspecialchars(PMA_backquote($db)));
|
||||
$message = PMA_message::error($message);
|
||||
@ -237,7 +237,12 @@ if (! empty($_REQUEST['execute_routine']) && ! empty($_REQUEST['routine_name']))
|
||||
// exit;
|
||||
}
|
||||
} else if (($GLOBALS['is_ajax_request'] == true)) {
|
||||
PMA_ajaxResponse(PMA_message::error(), false);
|
||||
$message = __('Error in processing request') . ' : '
|
||||
. sprintf(__('No routine with name %1$s found in database %2$s'),
|
||||
htmlspecialchars(PMA_backquote($_REQUEST['routine_name'])),
|
||||
htmlspecialchars(PMA_backquote($db)));
|
||||
$message = PMA_message::error($message);
|
||||
PMA_ajaxResponse($message, false);
|
||||
}
|
||||
} else if (! empty($_GET['exportroutine']) && ! empty($_GET['routine_name'])) {
|
||||
/**
|
||||
@ -261,7 +266,7 @@ if (! empty($_REQUEST['execute_routine']) && ! empty($_REQUEST['routine_name']))
|
||||
}
|
||||
} else {
|
||||
$response = __('Error in processing request') . ' : '
|
||||
. sprintf(__('No routine with name %s found in database %s'),
|
||||
. sprintf(__('No routine with name %1$s found in database %2$s'),
|
||||
$routine_name, htmlspecialchars(PMA_backquote($db)));
|
||||
$response = PMA_message::error($response);
|
||||
if ($GLOBALS['is_ajax_request']) {
|
||||
@ -287,12 +292,12 @@ if (! empty($_REQUEST['execute_routine']) && ! empty($_REQUEST['routine_name']))
|
||||
$drop_routine = "DROP {$_REQUEST['routine_original_type']} " . PMA_backquote($_REQUEST['routine_original_name']) . ";\n";
|
||||
$result = PMA_DBI_try_query($drop_routine);
|
||||
if (! $result) {
|
||||
$routine_errors[] = sprintf(__('Query "%s" failed'), $drop_routine) . '<br />'
|
||||
$routine_errors[] = sprintf(__('The following query has failed: "%s"'), $drop_routine) . '<br />'
|
||||
. __('MySQL said: ') . PMA_DBI_getError(null);
|
||||
} else {
|
||||
$result = PMA_DBI_try_query($routine_query);
|
||||
if (! $result) {
|
||||
$routine_errors[] = sprintf(__('Query "%s" failed'), $routine_query) . '<br />'
|
||||
$routine_errors[] = sprintf(__('The following query has failed: "%s"'), $routine_query) . '<br />'
|
||||
. __('MySQL said: ') . PMA_DBI_getError(null);
|
||||
// We dropped the old routine, but were unable to create the new one
|
||||
// Try to restore the backup query
|
||||
@ -316,7 +321,7 @@ if (! empty($_REQUEST['execute_routine']) && ! empty($_REQUEST['routine_name']))
|
||||
// 'Add a new routine' mode
|
||||
$result = PMA_DBI_try_query($routine_query);
|
||||
if (! $result) {
|
||||
$routine_errors[] = sprintf(__('Query "%s" failed'), $routine_query) . '<br /><br />'
|
||||
$routine_errors[] = sprintf(__('The following query has failed: "%s"'), $routine_query) . '<br /><br />'
|
||||
. __('MySQL said: ') . PMA_DBI_getError(null);
|
||||
} else {
|
||||
$message = PMA_Message::success(__('Routine %1$s has been created.'));
|
||||
@ -400,7 +405,7 @@ if (count($routine_errors) || ( empty($_REQUEST['routine_process_addroutine']) &
|
||||
// exit;
|
||||
} else {
|
||||
$message = __('Error in processing request') . ' : '
|
||||
. sprintf(__('No routine with name %s found in database %s'),
|
||||
. sprintf(__('No routine with name %1$s found in database %2$s'),
|
||||
htmlspecialchars(PMA_backquote($_REQUEST['routine_name'])),
|
||||
htmlspecialchars(PMA_backquote($db)));
|
||||
$message = PMA_message::error($message);
|
||||
|
||||
@ -58,11 +58,11 @@ class PMA_StorageEngine
|
||||
{
|
||||
static $storage_engines = null;
|
||||
|
||||
if (null !== $storage_engines) {
|
||||
return $storage_engines;
|
||||
if (null == $storage_engines) {
|
||||
$storage_engines = PMA_DBI_fetch_result('SHOW STORAGE ENGINES', 'Engine');
|
||||
}
|
||||
|
||||
return PMA_DBI_fetch_result('SHOW STORAGE ENGINES', 'Engine');
|
||||
return $storage_engines;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -88,7 +88,8 @@ class PMA_StorageEngine
|
||||
|
||||
foreach (PMA_StorageEngine::getStorageEngines() as $key => $details) {
|
||||
if (!$offerUnavailableEngines
|
||||
&& ($details['Support'] == 'NO' || $details['Support'] == 'DISABLED')) {
|
||||
&& ($details['Support'] == 'NO' || $details['Support'] == 'DISABLED'
|
||||
|| $details['Engine'] == 'PERFORMANCE_SCHEMA')) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
@ -585,8 +585,8 @@ require './libraries/select_lang.lib.php';
|
||||
* this check is done here after loading language files to present errors in locale
|
||||
*/
|
||||
if ($GLOBALS['PMA_Config']->error_config_file) {
|
||||
$error = '<h1>' . __('Failed to to read configuration file') . '</h1>'
|
||||
. _('This usually means there is a syntax error in it, please check any errors shown bellow.')
|
||||
$error = '<h1>' . __('Failed to read configuration file') . '</h1>'
|
||||
. _('This usually means there is a syntax error in it, please check any errors shown below.')
|
||||
. '<br />'
|
||||
. '<br />'
|
||||
. '<iframe src="show_config_errors.php" />';
|
||||
|
||||
1022
po/be@latin.po
1022
po/be@latin.po
File diff suppressed because it is too large
Load Diff
1257
po/en_GB.po
1257
po/en_GB.po
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
994
po/pt_BR.po
994
po/pt_BR.po
File diff suppressed because it is too large
Load Diff
1010
po/sr@latin.po
1010
po/sr@latin.po
File diff suppressed because it is too large
Load Diff
1044
po/uz@latin.po
1044
po/uz@latin.po
File diff suppressed because it is too large
Load Diff
970
po/zh_CN.po
970
po/zh_CN.po
File diff suppressed because it is too large
Load Diff
950
po/zh_TW.po
950
po/zh_TW.po
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user