summaryrefslogtreecommitdiffstats
path: root/template/en
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-10-02 07:07:08 +0200
committergerv%gerv.net <>2002-10-02 07:07:08 +0200
commit8d6671f06bf7d6864cffcaccf4ef4b7e09b80675 (patch)
tree74f1cfdd96abaacbac19d54d10bacf17e25e4f1c /template/en
parent5f576f463b01c35b411ac14d3a342ec0003e24cf (diff)
downloadbugzilla-8d6671f06bf7d6864cffcaccf4ef4b7e09b80675.tar.gz
bugzilla-8d6671f06bf7d6864cffcaccf4ef4b7e09b80675.tar.xz
Bug 170903 - Remove hard-coded titles and things. Patch by gerv; r=bbaetz.
Diffstat (limited to 'template/en')
-rw-r--r--template/en/default/global/choose-product.html.tmpl8
-rw-r--r--template/en/default/global/field-descs.html.tmpl52
-rw-r--r--template/en/default/search/form.html.tmpl6
3 files changed, 64 insertions, 2 deletions
diff --git a/template/en/default/global/choose-product.html.tmpl b/template/en/default/global/choose-product.html.tmpl
index e8d9aaf5c..de0ca0be7 100644
--- a/template/en/default/global/choose-product.html.tmpl
+++ b/template/en/default/global/choose-product.html.tmpl
@@ -24,6 +24,14 @@
# are their descriptions.
#%]
+[% IF target == "enter_bug.cgi" %]
+ [% title = "Enter Bug" %]
+ [% h2 = "First, you must pick a product on which to enter a bug." %]
+[% ELSIF target == "describecomponents.cgi" %]
+ [% title = "Bugzilla Component Descriptions" %]
+ [% h2 = "Please specify the product whose components you want described." %]
+[% END %]
+
[% DEFAULT title = "Choose a Product" %]
[% PROCESS global/header.html.tmpl %]
diff --git a/template/en/default/global/field-descs.html.tmpl b/template/en/default/global/field-descs.html.tmpl
new file mode 100644
index 000000000..4e97c11f5
--- /dev/null
+++ b/template/en/default/global/field-descs.html.tmpl
@@ -0,0 +1,52 @@
+<!-- 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>
+ #%]
+
+[%# Remember to PROCESS rather than INCLUDE this template. %]
+
+[% field_descs = { "[Bug creation]" => "[Bug creation]",
+ "alias" => "Alias",
+ "assigned_to" => "Assignee",
+ "bug_file_loc" => "URL",
+ "bug_id" => "Bug ID",
+ "bug_severity" => "Severity",
+ "bug_status" => "Status",
+ "cclist_accessible" => "CC list accessible?",
+ "component_id" => "Component ID",
+ "component" => "Component",
+ "creation_ts" => "Bug Creation time",
+ "delta_ts" => "Last Changed time",
+ "everconfirmed" => "Ever confirmed?",
+ "groupset" => "Groupset",
+ "keywords" => "Keywords",
+ "op_sys" => "OS",
+ "priority" => "Priority",
+ "product_id" => "Product ID",
+ "product" => "Product",
+ "qa_contact" => "QA Contact",
+ "rep_platform" => "Hardware",
+ "reporter" => "Reporter",
+ "reporter_accessible" => "Reporter accessible?",
+ "resolution" => "Resolution",
+ "short_desc" => "Summary",
+ "status_whiteboard" => "Whiteboard",
+ "target_milestone" => "Target Milestone",
+ "version" => "Version",
+ "votes" => "Votes" } %]
diff --git a/template/en/default/search/form.html.tmpl b/template/en/default/search/form.html.tmpl
index b3c87b5cc..a24772c31 100644
--- a/template/en/default/search/form.html.tmpl
+++ b/template/en/default/search/form.html.tmpl
@@ -326,7 +326,9 @@ function selectProduct(f) {
{ value => "anywords", description => "contains any of the words" },
{ value => "regexp", description => "matches the regexp" },
{ value => "notregexp", description => "doesn't match the regexp" } ] %]
-
+
+[% PROCESS "global/field-descs.html.tmpl" %]
+
[%# *** Summary *** %]
<table>
@@ -664,7 +666,7 @@ function selectProduct(f) {
[% FOREACH field = chfield %]
<option value="[% field FILTER html %]"
[% " selected" IF lsearch(default.chfield, field) != -1 %]>
- [% field FILTER html %]</option>
+ [% (field_descs.$field || field) FILTER html %]</option>
[% END %]
</select>
</dd>