From b2173a8e4e2197cffce1086927a4dd149842f6e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 21 Jul 2011 13:01:23 +0200 Subject: [PATCH] Localize error message --- libraries/common.lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/common.lib.php b/libraries/common.lib.php index f0451b697c..aeaee02987 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -1843,7 +1843,6 @@ function PMA_flipstring($string, $Separator = "
\n") * Not sure we could use a strMissingParameter message here, * would have to check if the error message file is always available * - * @todo localize error message * @todo use PMA_fatalError() if $die === true? * @param array $params The names of the parameters needed by the calling script. * @param bool $die Stop the execution? @@ -1874,7 +1873,8 @@ function PMA_checkParameters($params, $die = true, $request = true) if (! isset($GLOBALS[$param])) { $error_message .= $reported_script_name - . ': Missing parameter: ' . $param + . ': ' . __('Missing parameter:') . ' ' + . $param . PMA_showDocu('faqmissingparameters') . '
'; $found_error = true;