Fix error messages to suit better localization

Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
This commit is contained in:
Deven Bansod 2016-09-08 10:39:19 +05:30
parent f8ea67f2bc
commit 815bf44584
3 changed files with 6 additions and 6 deletions

View File

@ -44,8 +44,7 @@ function PMA_RTE_handleExport($export_data)
} else {
$_db = htmlspecialchars(PMA\libraries\Util::backquote($db));
$message = __('Error in processing request:') . ' '
. sprintf(PMA_RTE_getWord('not_found'), $item_name, $_db)
. ' OR ' . PMA_RTE_getWord('no_view');
. sprintf(PMA_RTE_getWord('no_view'), $item_name, $_db);
$message = Message::error($message);
if ($GLOBALS['is_ajax_request'] == true) {

View File

@ -155,13 +155,12 @@ function PMA_RTN_handleEditor()
} else {
$message = __('Error in processing request:') . ' ';
$message .= sprintf(
PMA_RTE_getWord('not_found'),
PMA_RTE_getWord('no_edit'),
htmlspecialchars(
PMA\libraries\Util::backquote($_REQUEST['item_name'])
),
htmlspecialchars(PMA\libraries\Util::backquote($db))
);
$message .= ' OR ' . PMA_RTE_getWord('no_edit');
$message = Message::error($message);
if ($GLOBALS['is_ajax_request']) {

View File

@ -32,10 +32,12 @@ function PMA_RTE_getWord($index)
'You do not have the necessary privileges to create a routine'
),
'no_edit' => __(
'You do not have the necessary privileges to edit this routine'
'No routine with name %1$s found in database %2$s. '
. 'You might be lacking the necessary privileges to edit this routine'
),
'no_view' => __(
'You do not have the necessary privileges to view/export this routine'
'No routine with name %1$s found in database %2$s. '
. 'You might be lacking the necessary privileges to view/export this routine'
),
'not_found' => __('No routine with name %1$s found in database %2$s'),
'nothing' => __('There are no routines to display.'),