From fef6f78c2c8b9441dfd268257d40691ec79ef9a1 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Tue, 19 Sep 2006 01:56:38 +0000 Subject: Bug 223880: "marked a duplicate" messages cannot be localized Patch By Max Kanat-Alexander r=LpSolit, a=myk --- process_bug.cgi | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'process_bug.cgi') diff --git a/process_bug.cgi b/process_bug.cgi index 4ca02b17b..1824dd7f3 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -1147,8 +1147,8 @@ SWITCH: for ($cgi->param('knob')) { ChangeStatus('RESOLVED'); ChangeResolution('DUPLICATE'); my $comment = $cgi->param('comment'); - $comment .= "\n\n*** This bug has been marked " . - "as a duplicate of bug $duplicate ***"; + $comment .= "\n\n" + . get_text('bug_duplicate_of', { dupe_of => $duplicate }); $cgi->param('comment', $comment); last SWITCH; }; @@ -2025,11 +2025,10 @@ foreach my $id (@idlist) { $dbh->do(q{INSERT INTO cc (who, bug_id) VALUES (?, ?)}, undef, $reporter, $duplicate); } - # Bug 171639 - Duplicate notifications do not need to be private. - AppendComment($duplicate, $whoid, - "*** Bug " . $cgi->param('id') . - " has been marked as a duplicate of this bug. ***", - 0, $timestamp); + my $dupe_comment = get_text('bug_has_duplicate', + { dupe => $cgi->param('id') }); + # Bug 171639 - Duplicate notifications do not need to be private. + AppendComment($duplicate, $whoid, $dupe_comment, 0, $timestamp); $dbh->do(q{INSERT INTO duplicates VALUES (?, ?)}, undef, $duplicate, $cgi->param('id')); -- cgit v1.2.3-24-g4f1b