From 8410e8e520fd660a0106e0e5f40cd1af8ca74664 Mon Sep 17 00:00:00 2001 From: Rouslan Placella Date: Fri, 17 Jun 2011 13:56:10 +0100 Subject: Fixed casing of messages in routines functionality --- db_routines.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'db_routines.php') diff --git a/db_routines.php b/db_routines.php index 3ae3cd27b3..6803534ae8 100644 --- a/db_routines.php +++ b/db_routines.php @@ -159,7 +159,7 @@ if (! empty($_REQUEST['execute_routine']) && ! empty($_REQUEST['routine_name'])) // Display results if ($result) { $output .= "
"; - $output .= sprintf(__('Execution Results of Routine %s'), + $output .= sprintf(__('Execution results of routine %s'), PMA_backquote(htmlspecialchars($routine['name']))); $output .= ""; $output .= ""; @@ -203,11 +203,11 @@ if (! empty($_REQUEST['execute_routine']) && ! empty($_REQUEST['routine_name'])) if ($GLOBALS['is_ajax_request'] == true) { $extra_data = array(); $extra_data['dialog'] = true; - $extra_data['title'] = __("Execute Routine") . " "; + $extra_data['title'] = __("Execute routine") . " "; $extra_data['title'] .= PMA_backquote(htmlentities($_GET['routine_name'], ENT_QUOTES)); PMA_ajaxResponse($form, true, $extra_data); } else { - echo "\n\n

" . __("Execute Routine") . "

\n\n"; + echo "\n\n

" . __("Execute routine") . "

\n\n"; echo $form; require './libraries/footer.inc.php'; // exit; @@ -236,7 +236,7 @@ if (! empty($_REQUEST['execute_routine']) && ! empty($_REQUEST['routine_name'])) . ''; } } else { - $response = __('Error in Processing Request') . ' : ' + $response = __('Error in processing request') . ' : ' . sprintf(__('No routine with name %s found in database %s'), $routine_name, htmlspecialchars(PMA_backquote($db))); $response = PMA_message::error($response); @@ -256,7 +256,7 @@ if (! empty($_REQUEST['execute_routine']) && ! empty($_REQUEST['routine_name'])) // Execute the created query if (! empty($_REQUEST['routine_process_editroutine'])) { if (! in_array($_REQUEST['routine_original_type'], array('PROCEDURE', 'FUNCTION'))) { - $routine_errors[] = sprintf(__('Invalid Routine Type: "%s"'), htmlspecialchars($_REQUEST['routine_original_type'])); + $routine_errors[] = sprintf(__('Invalid routine type: "%s"'), htmlspecialchars($_REQUEST['routine_original_type'])); } else { // Backup the old routine, in case something goes wrong $create_routine = PMA_DBI_get_definition($db, $_REQUEST['routine_original_type'], $_REQUEST['routine_original_name']); @@ -349,17 +349,17 @@ if (count($routine_errors) || ( empty($_REQUEST['routine_process_addroutine']) & // Get the data for the form (if any) if (! empty($_REQUEST['addroutine'])) { if ($GLOBALS['is_ajax_request'] != true) { - echo "\n\n

" . __("Create Routine") . "

\n\n"; + echo "\n\n

" . __("Create routine") . "

\n\n"; } else { - $title = __("Create Routine"); + $title = __("Create routine"); } $routine = PMA_RTN_getRoutineDataFromRequest(); $mode = 'add'; } else if (! empty($_REQUEST['editroutine'])) { if ($GLOBALS['is_ajax_request'] != true) { - echo "\n\n

" . __("Edit Routine") . "

\n\n"; + echo "\n\n

" . __("Edit routine") . "

\n\n"; } else { - $title = __("Edit Routine"); + $title = __("Edit routine"); } if (! $operation && ! empty($_REQUEST['routine_name']) && empty($_REQUEST['routine_process_editroutine'])) { $routine = PMA_RTN_getRoutineDataFromName($db, $_REQUEST['routine_name']); @@ -402,7 +402,7 @@ echo PMA_RTN_getAddRoutineLink(); if ($GLOBALS['cfg']['Server']['extension'] !== 'mysqli') { trigger_error(__('You are using PHP\'s deprecated \'mysql\' extension, ' . 'which is not capable of handling multi queries. ' - . 'The execution of some stored Routines may fail! ' + . 'The execution of some stored routines may fail! ' . 'Please use the improved \'mysqli\' extension to ' . 'avoid any problems.'), E_USER_WARNING); } -- cgit v1.2.3