]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 394933 â\80\93 â\80\9cneworchangedâ\80\9d of bugmail could be localizable more easily.
authorwurblzap%gmail.com <>
Wed, 5 Sep 2007 03:01:53 +0000 (03:01 +0000)
committerwurblzap%gmail.com <>
Wed, 5 Sep 2007 03:01:53 +0000 (03:01 +0000)
Patch by Marc Schumann <wurblzap@gmail.com>;
r=mkanat; a=mkanat

Bugzilla/BugMail.pm
template/en/default/email/newchangedmail.txt.tmpl

index 539a481edb732a64363df6bd249860824cb3091c..d29ffaf1e18980b06c3425e3dbcfc305ce34bb7e 100644 (file)
@@ -500,7 +500,7 @@ sub Send {
                                       \@diffparts,
                                       $comments{$lang},
                                       $anyprivate, 
-                                      $start, 
+                                      $start, 
                                       $id,
                                       exists $watching{$user_id} ?
                                              $watching{$user_id} : undef);
@@ -522,8 +522,8 @@ sub Send {
 }
 
 sub sendMail {
-    my ($user, $hlRef, $relRef, $valueRef, $dmhRef, $fdRef,  
-        $diffRef, $newcomments, $anyprivate, $start, 
+    my ($user, $hlRef, $relRef, $valueRef, $dmhRef, $fdRef,
+        $diffRef, $newcomments, $anyprivate, $isnew,
         $id, $watchingRef) = @_;
 
     my %values = %$valueRef;
@@ -590,8 +590,6 @@ sub sendMail {
       return 0;
     }
     
-    my $isnew = !$start;
-    
     # If an attachment was created, then add an URL. (Note: the 'g'lobal
     # replace should work with comments with multiple attachments.)
 
@@ -629,13 +627,14 @@ sub sendMail {
     my $threadingmarker;
     if ($isnew) {
         $threadingmarker = "Message-ID: <bug-$id-" . $user->id . "$sitespec>";
-    } else {
+    }
+    else {
         $threadingmarker = "In-Reply-To: <bug-$id-" . $user->id . "$sitespec>";
     }
     
 
     my $vars = {
-        neworchanged => $isnew ? 'New: ' : '',
+        isnew => $isnew,
         to => $user->email,
         bugid => $id,
         alias => Bugzilla->params->{'usebugaliases'} ? $values{'alias'} : "",
index 93d002d2a57b55a57317b244fbe1f10750dc2936..7c0e30a271a198bb4204a22135dd02777684e6e6 100644 (file)
@@ -21,7 +21,7 @@
 [% PROCESS "global/variables.none.tmpl" %]
 From: [% Param('mailfrom') %]
 To: [% to %]
-Subject: [[% terms.Bug %] [%+ bugid %]] [% neworchanged %][%+ summary %]
+Subject: [[% terms.Bug %] [%+ bugid %]] [% 'New: ' IF isnew %][%+ summary %]
 X-Bugzilla-Reason: [% reasonsheader %]
 X-Bugzilla-Type: newchanged
 X-Bugzilla-Watch-Reason: [% reasonswatchheader %]