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 --- Bugzilla/Template.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Bugzilla/Template.pm') diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index a60a453d6..b54c4a0f2 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -331,7 +331,8 @@ sub quoteUrls { # we have to do this in one pattern, and so this is semi-messy. # Also, we can't use $bug_re?$comment_re? because that will match the # empty string - my $bug_re = qr/bug\s*\#?\s*(\d+)/i; + my $bug_word = get_text('term', { term => 'bug' }); + my $bug_re = qr/\Q$bug_word\E\s*\#?\s*(\d+)/i; my $comment_re = qr/comment\s*\#?\s*(\d+)/i; $text =~ s~\b($bug_re(?:\s*,?\s*$comment_re)?|$comment_re) ~ # We have several choices. $1 here is the link, and $2-4 are set @@ -340,7 +341,8 @@ sub quoteUrls { "$1") ~egox; - # Old duplicate markers + # Old duplicate markers. These don't use $bug_word because they are old + # and were never customizable. $text =~ s~(?<=^\*\*\*\ This\ bug\ has\ been\ marked\ as\ a\ duplicate\ of\ ) (\d+) (?=\ \*\*\*\Z) -- cgit v1.2.3-24-g4f1b