summaryrefslogtreecommitdiffstats
path: root/template/en/default/admin/params
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-11-18 08:04:57 +0100
committermkanat%bugzilla.org <>2009-11-18 08:04:57 +0100
commita44e152480c9c22ca9b3a89da774317c5590d21b (patch)
tree035210618c0987beaffc953cbf09611866e0d3e5 /template/en/default/admin/params
parentbc19f61c0c33e71a00dcc8e4ca3e791a9e3b661d (diff)
downloadbugzilla-a44e152480c9c22ca9b3a89da774317c5590d21b.tar.gz
bugzilla-a44e152480c9c22ca9b3a89da774317c5590d21b.tar.xz
Bug 519142: Replace IF/ELSE statements about bug_status/resolution with just a display_value call, and use display_value in more places to translate field values.
Patch by Vitaly Fedrushkov <vitaly.fedrushkov@gmail.com> r=mkanat, a=mkanat
Diffstat (limited to 'template/en/default/admin/params')
-rw-r--r--template/en/default/admin/params/common.html.tmpl14
1 files changed, 13 insertions, 1 deletions
diff --git a/template/en/default/admin/params/common.html.tmpl b/template/en/default/admin/params/common.html.tmpl
index c23c2ca9a..5b0d00429 100644
--- a/template/en/default/admin/params/common.html.tmpl
+++ b/template/en/default/admin/params/common.html.tmpl
@@ -22,6 +22,8 @@
# panel: hash representing the current panel.
#%]
+[% PROCESS "global/field-descs.none.tmpl" %]
+
[% sortlist_separator = '---' %]
<dl>
@@ -115,7 +117,17 @@
[% FOREACH item = param.choices %]
<option value="[% item FILTER html %]"
[% " selected=\"selected\"" IF item == Param(param.name) %]>
- [% item FILTER html %]
+ [% IF param.name == "defaultseverity" %]
+ [% display_value("bug_severity", item) FILTER html %]
+ [% ELSIF param.name == "defaultplatform" %]
+ [% display_value("rep_platform", item) FILTER html %]
+ [% ELSIF param.name == "defaultopsys" %]
+ [% display_value("op_sys", item) FILTER html %]
+ [% ELSIF param.name == "duplicate_or_move_bug_status" %]
+ [% display_value("bug_status", item) FILTER html %]
+ [% ELSE %]
+ [% item FILTER html %]
+ [% END %]
</option>
[% END %]
</select>