Commit 3ce940a7 authored by reed%reedloden.com's avatar reed%reedloden.com

Bug 366466 - "flag notification mail has canceled spelled incorrectly" [p=reed r=timeless a=mkanat]

parent 5f7218de
...@@ -216,7 +216,7 @@ sub Cancel { ...@@ -216,7 +216,7 @@ sub Cancel {
my $template = Bugzilla->template; my $template = Bugzilla->template;
$vars ||= {}; $vars ||= {};
# Get information about the token being cancelled. # Get information about the token being canceled.
trick_taint($token); trick_taint($token);
my ($issuedate, $tokentype, $eventdata, $loginname) = my ($issuedate, $tokentype, $eventdata, $loginname) =
$dbh->selectrow_array('SELECT ' . $dbh->sql_date_format('issuedate') . ', $dbh->selectrow_array('SELECT ' . $dbh->sql_date_format('issuedate') . ',
...@@ -489,8 +489,8 @@ Bugzilla::Token - Provides different routines to manage tokens. ...@@ -489,8 +489,8 @@ Bugzilla::Token - Provides different routines to manage tokens.
to the user to inform him about this action. to the user to inform him about this action.
Params: $user_id: The user ID of the user account whose password tokens Params: $user_id: The user ID of the user account whose password tokens
are cancelled. are canceled.
$reason: The reason why these tokens are cancelled. $reason: The reason why these tokens are canceled.
Returns: Nothing. Returns: Nothing.
......
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
<para> <para>
By default, you have 3 days to confirm your registration. Past this By default, you have 3 days to confirm your registration. Past this
timeframe, the token is invalidated and the registration is timeframe, the token is invalidated and the registration is
automatically cancelled. You can also cancel this registration sooner automatically canceled. You can also cancel this registration sooner
by using the appropriate URL in the email you got. by using the appropriate URL in the email you got.
</para> </para>
</listitem> </listitem>
......
...@@ -27,7 +27,7 @@ To: [% emailaddress %] ...@@ -27,7 +27,7 @@ To: [% emailaddress %]
Subject: [% PROCESS subject %] Subject: [% PROCESS subject %]
X-Bugzilla-Type: admin X-Bugzilla-Type: admin
A request was cancelled from [% remoteaddress %]. A request was canceled from [% remoteaddress %].
If you did not request this, it could be either an honest If you did not request this, it could be either an honest
mistake or someone attempting to break into your [% terms.Bugzilla %] account. mistake or someone attempting to break into your [% terms.Bugzilla %] account.
...@@ -44,13 +44,13 @@ Cancelled Because: [% PROCESS cancelactionmessage %] ...@@ -44,13 +44,13 @@ Cancelled Because: [% PROCESS cancelactionmessage %]
[% BLOCK subject %] [% BLOCK subject %]
[% IF tokentype == 'new_account' %] [% IF tokentype == 'new_account' %]
User account creation request cancelled User account creation request canceled
[% ELSIF tokentype == 'password' %] [% ELSIF tokentype == 'password' %]
Password change request cancelled Password change request canceled
[% ELSIF tokentype == 'emailnew' OR tokentype == 'emailold' %] [% ELSIF tokentype == 'emailnew' OR tokentype == 'emailold' %]
Email change request cancelled Email change request canceled
[% ELSE %] [% ELSE %]
[% tokentype %] token cancelled [% tokentype %] token canceled
[% END %] [% END %]
[% END %] [% END %]
...@@ -58,26 +58,26 @@ Cancelled Because: [% PROCESS cancelactionmessage %] ...@@ -58,26 +58,26 @@ Cancelled Because: [% PROCESS cancelactionmessage %]
[% IF cancelaction == 'account_exists' %] [% IF cancelaction == 'account_exists' %]
Account [% email %] already exists. Account [% email %] already exists.
[% ELSIF cancelaction == 'email_change_cancelled' %] [% ELSIF cancelaction == 'email_change_canceled' %]
The request to change the email address for The request to change the email address for
the [% old_email %] account to [% new_email %] has the [% old_email %] account to [% new_email %] has
been cancelled. been canceled.
[% ELSIF cancelaction == 'email_change_cancelled_reinstated' %] [% ELSIF cancelaction == 'email_change_canceled_reinstated' %]
The request to change the email address for your account The request to change the email address for your account
to [% new_email %] has been cancelled. Your old account to [% new_email %] has been canceled. Your old account
settings have been reinstated. settings have been reinstated.
[% ELSIF cancelaction == 'emailold_change_cancelled' %] [% ELSIF cancelaction == 'emailold_change_canceled' %]
The request to change the email address for your account The request to change the email address for your account
to [% new_email %] has been cancelled. to [% new_email %] has been canceled.
[% ELSIF cancelaction == 'password_change_cancelled' %] [% ELSIF cancelaction == 'password_change_canceled' %]
You have requested cancellation. You have requested cancellation.
[% ELSIF cancelaction == 'account_creation_cancelled' %] [% ELSIF cancelaction == 'account_creation_canceled' %]
The creation of the user account [% emailaddress %] The creation of the user account [% emailaddress %]
has been cancelled. has been canceled.
[% ELSIF cancelaction == 'user_logged_in' %] [% ELSIF cancelaction == 'user_logged_in' %]
You have logged in. You have logged in.
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
form below. You can also enter your real name, which is optional.<p> form below. You can also enter your real name, which is optional.<p>
If you don't fill this form before If you don't fill this form before
<u>[%+ time2str("%B %o, %Y at %H:%M %Z", expiration_ts) %]</u>, <u>[%+ time2str("%B %o, %Y at %H:%M %Z", expiration_ts) %]</u>,
the creation of this account will be automatically cancelled. the creation of this account will be automatically canceled.
</div> </div>
<form id="confirm_account_form" method="post" action="token.cgi"> <form id="confirm_account_form" method="post" action="token.cgi">
......
...@@ -43,10 +43,10 @@ ...@@ -43,10 +43,10 @@
this [% terms.Bugzilla %] installation. this [% terms.Bugzilla %] installation.
[% END %] [% END %]
[% ELSIF message_tag == "account_creation_cancelled" %] [% ELSIF message_tag == "account_creation_canceled" %]
[% title = "User Account Creation Cancelled" %] [% title = "User Account Creation Cancelled" %]
The creation of the user account [% account FILTER html %] has been The creation of the user account [% account FILTER html %] has been
cancelled. canceled.
[% ELSIF message_tag == "account_updated" %] [% ELSIF message_tag == "account_updated" %]
[% IF changed_fields.size [% IF changed_fields.size
...@@ -186,22 +186,22 @@ ...@@ -186,22 +186,22 @@
Properties of the '[% field.name FILTER html %]' field have been Properties of the '[% field.name FILTER html %]' field have been
successfully updated. successfully updated.
[% ELSIF message_tag == "emailold_change_cancelled" %] [% ELSIF message_tag == "emailold_change_canceled" %]
[% title = "Cancel Request to Change Email Address" %] [% title = "Cancel Request to Change Email Address" %]
The request to change the email address for your account to The request to change the email address for your account to
[%+ new_email FILTER html %] has been cancelled. [%+ new_email FILTER html %] has been canceled.
[% ELSIF message_tag == "email_change_cancelled" %] [% ELSIF message_tag == "email_change_canceled" %]
[% title = "Cancel Request to Change Email Address" %] [% title = "Cancel Request to Change Email Address" %]
The request to change the email address for the The request to change the email address for the
account [%+ old_email FILTER html %] to account [%+ old_email FILTER html %] to
[%+ new_email FILTER html %] has been cancelled. [%+ new_email FILTER html %] has been canceled.
[% ELSIF message_tag == "email_change_cancelled_reinstated" %] [% ELSIF message_tag == "email_change_canceled_reinstated" %]
[% title = "Cancel Request to Change Email Address" %] [% title = "Cancel Request to Change Email Address" %]
The request to change the email address for the The request to change the email address for the
account [%+ old_email FILTER html %] to account [%+ old_email FILTER html %] to
[%+ new_email FILTER html %] has been cancelled. [%+ new_email FILTER html %] has been canceled.
Your old account settings have been reinstated. Your old account settings have been reinstated.
[% ELSIF message_tag == "flag_creation_failed" %] [% ELSIF message_tag == "flag_creation_failed" %]
...@@ -303,9 +303,9 @@ ...@@ -303,9 +303,9 @@
clear the <em>shutdownhtml</em> field. clear the <em>shutdownhtml</em> field.
[% END%] [% END%]
[% ELSIF message_tag == "password_change_cancelled" %] [% ELSIF message_tag == "password_change_canceled" %]
[% title = "Cancel Request to Change Password" %] [% title = "Cancel Request to Change Password" %]
Your request has been cancelled. Your request has been canceled.
[% ELSIF message_tag == "password_change_request" %] [% ELSIF message_tag == "password_change_request" %]
[% title = "Request to Change Password" %] [% title = "Request to Change Password" %]
......
...@@ -1384,7 +1384,7 @@ ...@@ -1384,7 +1384,7 @@
[% ELSIF error == "token_inexistent" %] [% ELSIF error == "token_inexistent" %]
[% title = "Token Does Not Exist" %] [% title = "Token Does Not Exist" %]
The token you submitted does not exist, has expired, or has The token you submitted does not exist, has expired, or has
been cancelled. been canceled.
[% ELSIF error == "too_soon_for_new_token" %] [% ELSIF error == "too_soon_for_new_token" %]
[% title = "Too Soon For New Token" %] [% title = "Too Soon For New Token" %]
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
[% bugidsummary = bug.bug_id _ ': ' _ bug.short_desc %] [% bugidsummary = bug.bug_id _ ': ' _ bug.short_desc %]
[% attidsummary = attachment.id _ ': ' _ attachment.description %] [% attidsummary = attachment.id _ ': ' _ attachment.description %]
[% statuses = { '+' => "granted" , '-' => 'denied' , 'X' => "cancelled" , [% statuses = { '+' => "granted" , '-' => 'denied' , 'X' => "canceled" ,
'?' => "asked" } %] '?' => "asked" } %]
[% IF flag.status == '?' %] [% IF flag.status == '?' %]
[% to_identity = flag.addressee.identity _ " for" %] [% to_identity = flag.addressee.identity _ " for" %]
......
...@@ -194,7 +194,7 @@ sub confirmChangePassword { ...@@ -194,7 +194,7 @@ sub confirmChangePassword {
} }
sub cancelChangePassword { sub cancelChangePassword {
$vars->{'message'} = "password_change_cancelled"; $vars->{'message'} = "password_change_canceled";
Bugzilla::Token::Cancel($::token, $vars->{'message'}); Bugzilla::Token::Cancel($::token, $vars->{'message'});
print $cgi->header(); print $cgi->header();
...@@ -300,7 +300,7 @@ sub cancelChangeEmail { ...@@ -300,7 +300,7 @@ sub cancelChangeEmail {
my ($old_email, $new_email) = split(/:/,$eventdata); my ($old_email, $new_email) = split(/:/,$eventdata);
if($tokentype eq "emailold") { if($tokentype eq "emailold") {
$vars->{'message'} = "emailold_change_cancelled"; $vars->{'message'} = "emailold_change_canceled";
my $actualemail = $dbh->selectrow_array( my $actualemail = $dbh->selectrow_array(
q{SELECT login_name FROM profiles q{SELECT login_name FROM profiles
...@@ -324,11 +324,11 @@ sub cancelChangeEmail { ...@@ -324,11 +324,11 @@ sub cancelChangeEmail {
my $user = new Bugzilla::User($userid); my $user = new Bugzilla::User($userid);
$user->derive_regexp_groups; $user->derive_regexp_groups;
$vars->{'message'} = "email_change_cancelled_reinstated"; $vars->{'message'} = "email_change_canceled_reinstated";
} }
} }
else { else {
$vars->{'message'} = 'email_change_cancelled' $vars->{'message'} = 'email_change_canceled'
} }
$vars->{'old_email'} = $old_email; $vars->{'old_email'} = $old_email;
...@@ -394,7 +394,7 @@ sub confirm_create_account { ...@@ -394,7 +394,7 @@ sub confirm_create_account {
sub cancel_create_account { sub cancel_create_account {
my (undef, undef, $login_name) = Bugzilla::Token::GetTokenData($::token); my (undef, undef, $login_name) = Bugzilla::Token::GetTokenData($::token);
$vars->{'message'} = 'account_creation_cancelled'; $vars->{'message'} = 'account_creation_canceled';
$vars->{'account'} = $login_name; $vars->{'account'} = $login_name;
Bugzilla::Token::Cancel($::token, $vars->{'message'}); Bugzilla::Token::Cancel($::token, $vars->{'message'});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment