summaryrefslogtreecommitdiffstats
path: root/template/en/default/global/user-error.html.tmpl
blob: 6c0b370217cbc6b956172f8e4ea3e551f2233f0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
<!-- 1.0@bugzilla.org -->
[%# The contents of this file are subject to the Mozilla Public
  # License Version 1.1 (the "License"); you may not use this file
  # except in compliance with the License. You may obtain a copy of
  # the License at http://www.mozilla.org/MPL/
  #
  # Software distributed under the License is distributed on an "AS
  # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  # implied. See the License for the specific language governing
  # rights and limitations under the License.
  #
  # The Original Code is the Bugzilla Bug Tracking System.
  #
  # The Initial Developer of the Original Code is Netscape Communications
  # Corporation. Portions created by Netscape are
  # Copyright (C) 1998 Netscape Communications Corporation. All
  # Rights Reserved.
  #
  # Contributor(s): Gervase Markham <gerv@gerv.net>
  #%]

[%# INTERFACE:
  # header_done: boolean. True if the header has already been printed.
  # error: string. The tag of the error, or the error message to be displayed
  # (deprecated). May contain HTML if it's an error message.
  #%]

[%# This is a list of all the possible user errors. Please keep them in
  # alphabetical order by error tag, and leave a blank line between errors.
  #%]  
  
[% DEFAULT title = "Error" %]
  
[% error_message = BLOCK %]
  [% IF    error == "aaa_example_error_tag" %]
    [% title = "Example Error" %]    
    This is an example error. The title is set above. This text is the body
    of the error. It can contain arbitrary <b>HTML</b>, and also references
    to any [% parameters %] which you may have set before calling
    ThrowUserError.

  [% ELSIF error == "account_disabled" %]
    [% title = "Account Disabled" %]
    [% disabledreason %]
    <hr>
    If you believe your account should be restored, please 
    send email to [% Param("maintainer") %] explaining why.
            
  [% ELSIF error == "account_exists" %]
    [% title = "Account Already Exists" %]
    That account already exists.
                  
  [% ELSIF error == "alias_has_comma_or_space" %]
    [% title = "Invalid Characters In Alias" %]
    The alias you entered, <em>[% alias FILTER html %]</em>,
    contains one or more commas or spaces.  Aliases cannot contain
    commas or spaces because those characters are used to separate
    aliases from each other in lists.  Please choose another alias
    that does not contain commas and spaces.
                  
  [% ELSIF error == "alias_in_use" %]
    [% title = "Alias In Use" %]
    [% bug_link %] has already taken the alias 
    <em>[% alias FILTER html %]</em>.  Please choose another one.
    
  [% ELSIF error == "alias_is_numeric" %]
    [% title = "Alias Is Numeric" %]
    You tried to give this bug the alias <em>[% alias FILTER html %]</em>,
    but aliases cannot be merely numbers, since they could
    then be confused with bug IDs.  Please choose another
    alias containing at least one letter.    
    
  [% ELSIF error == "alias_too_long" %]
    [% title = "Alias Too Long" %]
    Bug aliases cannot be longer than 20 characters.
    Please choose a shorter alias.

  [% ELSIF error == "attachment_access_denied" %]
    [% title = "Access Denied" %]
    You are not permitted access to this attachment.
    
  [% ELSIF error == "buglist_parameters_required" %]
    [% title = "Parameters Required" %]
    [% url   = "query.cgi" %]
    [% link  = "Please use the search form to specify some search criteria." %]
    This script is not meant to be invoked without any search terms.
   
  [% ELSIF error == "bugs_not_changed" %]
    [% title = "Bugs Not Changed" %]
    Um, you apparently did not change anything on the selected bugs.
                        
  [% ELSIF error == "comment_required" %]
    [% title = "Comment Required" %]
    You have to specify a <b>comment</b> on this change.  
    Please give some words on the reason for your change.

  [% ELSIF error == "dependency_loop_multi" %]
    [% title = "Dependency Loop Detected" %]
    The following bug(s) would appear on both the "depends on"
    and "blocks" parts of the dependency tree if these changes
    are committed: [% both %]. This would create a circular 
    dependency, which is not allowed.
                            
  [% ELSIF error == "dependency_loop_single" %]
    [% title = "Dependency Loop Detected" %]
    You can't make a bug blocked or dependent on itself.

  [% ELSIF error == "dupe_invalid_bug_id" %]
    [% title = "Valid Bug Number Required" %]
     You must specify a valid bug number of which this bug
     is a duplicate.  The bug has not been changed.
     
  [% ELSIF error == "dupe_of_self_disallowed" %]
    [% title = "Nice Try..." %]
    Nice try, [% user.login FILTER html %], but it doesn't 
    really make sense to mark a bug as a duplicate of itself, 
    does it?  
    
  [% ELSIF error == "illegal_at_least_x_votes" %]
    [% title = "Your Query Makes No Sense" %]
    The <em>At least ___ votes</em> field must be a simple number. 
    You entered <tt>[% value FILTER html %]</tt>, which isn't.
    
  [% ELSIF error == "illegal_attachment_is_patch" %]
    [% title = "Your Query Makes No Sense" %]
     The only legal values for the <em>Attachment is patch</em> field are
     0 and 1.
         
  [% ELSIF error == "illegal_change" %]
    You tried to change the <strong>[% field %]</strong> field 
    from <em>[% oldvalue FILTER html %]</em> to 
    <em>[% newvalue FILTER html %]</em>, 
    but only the owner or submitter of the bug, or a 
    sufficiently empowered user, may change that field.
  
  [% ELSIF error == "illegal_changed_in_last_x_days" %]
    [% title = "Your Query Makes No Sense" %]
    The <em>Changed in last ___ days</em> field must be a simple number. 
    You entered <tt>[% value FILTER html %]</tt>, which isn't.
    
  [% ELSIF error == "illegal_date" %]
    [% title = "Your Query Makes No Sense" %]
    '<tt>[% date %]</tt>' is not a legal date.
    
  [% ELSIF error == "illegal_email_address" %]
    [% title = "Invalid Email Address" %]
    The e-mail address you entered(<b>[% addr FILTER html %]</b>) 
    didn't pass our syntax checking for a legal email address. 
    [% Param('emailregexpdesc') %]
    It must also not contain any of these special characters:
    <tt>\ ( ) &amp; &lt; &gt; , ; : &quot; [ ]</tt>, or any whitespace.
    
  [% ELSIF error == "illegal_is_obsolete" %]
    [% title = "Your Query Makes No Sense" %]
     The only legal values for the <em>Attachment is obsolete</em> field are
     0 and 1.
         
  [% ELSIF error == "invalid_bug_id" %]
    [% title = "Invalid Bug ID" %]
    The bug id [% bug_id FILTER html %] is invalid.

  [% ELSIF error == "invalid_product_name" %]
    [% title = "Invalid Product Name" %]
    The product name '[% product FILTER html %]' is invalid or does not exist.
    
  [% ELSIF error == "invalid_username" %]
    [% title = "Invalid Username" %]
    The name <tt>[% name FILTER html %]</tt> is not a valid username.  
    Either you misspelled it, or the person has not
    registered for a Bugzilla account.
                    
  [% ELSIF error == "milestone_required" %]
    [% title = "Milestone Required" %]
    You must determine a target milestone for bug [% bug_id %]
    if you are going to accept it.  Part of accepting 
    a bug is giving an estimate of when it will be fixed.

  [% ELSIF error == "missing_email_type" %]
    [% title = "Your Query Makes No Sense" %]
    You must specify one or more fields in which to search for
    <tt>[% email %]</tt>.
    
  [% ELSIF error == "need_component" %]
    [% title = "Component Required" %]
    You must specify a component to help determine the new owner of these bugs.                            
  [% ELSIF error == "need_product" %]
    [% title = "Product Required" %]
    You must specify a product to help determine the new owner of these bugs.                 
  [% ELSIF error == "no_bugs_chosen" %]
    [% title = "No Bugs Chosen" %]
    You apparently didn't choose any bugs to modify.

  [% ELSIF error == "no_component_change_for_multiple_products" %]
    [% title = "Action Not Permitted" %]
    You cannot change the component for a list of bugs covering more than 
    one product.
                       
  [% ELSIF error == "no_dupe_stats" %]
    [% title = "Cannot Find Duplicate Statistics" %]
    There are no duplicate statistics for today ([% today %]) or yesterday.
    
  [% ELSIF error == "no_dupe_stats_error_today" %]
    [% title = "Error Reading Today's Dupes File" %]
    An error occurred opening today's dupes file: [% error_msg FILTER html %].

  [% ELSIF error == "no_dupe_stats_error_whenever" %]
    [% title = "Error Reading Previous Dupes File" %]
    An error occurred opening $changedsince days ago ($whenever)'s dupes file:
    [% error_msg FILTER html %].
     
  [% ELSIF error == "no_dupe_stats_error_yesterday" %]
    [% title = "Error Reading Yesterday's Dupes File" %]
    There are no duplicate statistics for today ([% today %]), and an error
    occurred opening yesterday's dupes file: [% error_msg FILTER html %].
    
  [% ELSIF error == "no_new_quips" %]
    [% title = "No New Quips" %]
    This site does not permit the addition of new quips.
    
  [% ELSIF error == "no_page_specified" %]
    [% title = "No Page Specified" %]
    You did not specify the id of a page to display.

  [% ELSIF error == "reassign_to_empty" %]
    [% title = "Illegal Reassignment" %]
    You cannot reassign to a bug to nobody. Unless you
    intentionally cleared out the "Reassign bug to" 
    field, [% Param("browserbugmessage") %]

  [% ELSIF error == "unknown_keyword" %]
    [% title = "Unknown Keyword" %]
    <code>[% keyword FILTER html %]</code> is not a known keyword. 
    The legal keyword names are <a href="describekeywords.cgi">listed here</a>.

  [% ELSIF error == "unknown_tab" %]
    [% title = "Unknown Tab" %]
    <code>[% current_tab_name FILTER html %]</code> is not a legal tab name.    
    
  [% ELSE %]
    [%# Cope with legacy calling convention, where "error" was the string
      # to print. 
      #%]
        
    [% error %]
  [% END %]
[% END %]

[% UNLESS header_done %]
  [% PROCESS global/header.html.tmpl %]
[% END %]

<table cellpadding="20">
  <tr>
    <td bgcolor="#ff0000">
      <font size="+2">
        [% error_message %]
      </font>
    </td>
  </tr>
</table>

<p>
  Please press <b>Back</b> and try again.
</p>

[% PROCESS global/footer.html.tmpl %]