Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
e81b9d51
Commit
e81b9d51
authored
Mar 02, 2011
by
Max Kanat-Alexander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 624414: BUGZILLA.value_descs was always empty in the JS, and display_value
wasn't translating values. r=glob, a=mkanat
parent
7d90eaa8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
21 deletions
+41
-21
field-descs.none.tmpl
template/en/default/global/field-descs.none.tmpl
+3
-19
header.html.tmpl
template/en/default/global/header.html.tmpl
+1
-1
value-descs.js.tmpl
template/en/default/global/value-descs.js.tmpl
+1
-1
value-descs.none.tmpl
template/en/default/global/value-descs.none.tmpl
+36
-0
No files found.
template/en/default/global/field-descs.none.tmpl
View file @
e81b9d51
...
...
@@ -62,25 +62,9 @@
} %]
[% IF in_template_var %]
[%# You can use this hash to localize (translate) the values displayed
# for drop-down and multiple-select fields. Lines starting with "#"
# are comments.
#%]
[% value_descs = {
"bug_status" => {
# "UNCONFIRMED" => "UNCO",
# "CONFIRMED" => "ITSABUG",
},
"resolution" => {
"" => "---",
# "FIXED" => "NO LONGER AN ISSUE",
# "WORKSFORME" => "NOTMYPROBLEM!",
},
} %]
[% vars.terms = terms %]
[% PROCESS "global/value-descs.none.tmpl" %]
[% SET vars.value_descs = value_descs %]
[% SET vars.terms = terms %]
[%# field_descs is loaded as a global template variable and cached
# across all templates--see VARIABLES in Bugzilla/Template.pm.
...
...
template/en/default/global/header.html.tmpl
View file @
e81b9d51
...
...
@@ -212,7 +212,7 @@
[
%
FOREACH
yui_name
=
yui
%
]
[
%
FOREACH
yui_template
=
yui_templates
.
$yui_name
%
]
[
%
PROCESS
$yui_template
%
]
[
%
INCLUDE
$yui_template
%
]
[
%
END
%
]
[
%
END
%
]
[
%
IF
javascript
%
]
...
...
template/en/default/global/value-descs.js.tmpl
View file @
e81b9d51
...
...
@@ -18,7 +18,7 @@
# Max Kanat-Alexander <mkanat@bugzilla.org>
#%]
[% PROCESS "global/
field
-descs.none.tmpl" %]
[% PROCESS "global/
value
-descs.none.tmpl" %]
BUGZILLA.value_descs = {
[% FOREACH vd_field = value_descs.keys %]
...
...
template/en/default/global/value-descs.none.tmpl
0 → 100644
View file @
e81b9d51
[%# 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 BugzillaSource, Inc.
# Portions created by the Initial Developer are Copyright (C) 2011
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
# Max Kanat-Alexander <mkanat@bugzilla.org>
#%]
[%# You can use this hash to localize (translate) the values displayed
# for drop-down and multiple-select fields. Lines starting with "#"
# are comments.
#%]
[% value_descs = {
"bug_status" => {
# "UNCONFIRMED" => "UNCO",
# "CONFIRMED" => "ITSABUG",
},
"resolution" => {
"" => "---",
# "FIXED" => "NO LONGER AN ISSUE",
# "WORKSFORME" => "NOTMYPROBLEM!",
},
} %]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment