From dea1cd19f09e54fc1d3e1476f22ab8176bc89e92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 30 Mar 2010 14:47:36 +0200 Subject: [PATCH] Avoid duplicating the text. --- libraries/import.lib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/import.lib.php b/libraries/import.lib.php index 8d6eb2c9e..9d2ccd2cc 100644 --- a/libraries/import.lib.php +++ b/libraries/import.lib.php @@ -144,7 +144,8 @@ function PMA_importRunQuery($sql = '', $full = '', $controluser = false) if ($a_num_rows > 0) { $msg .= $GLOBALS['strRows'] . ': ' . $a_num_rows; } elseif ($a_aff_rows > 0) { - $msg .= sprintf(_ngettext('%1$d row affected.', '%1$d rows affected.', $a_aff_rows), $a_aff_rows); + $message = PMA_Message::affected_rows($a_aff_rows); + $msg .= $message->getMessage(); } else { $msg .= $GLOBALS['strEmptyResultSet']; }