From e81b9d51399792035e10c2cd6d1b32f75879c3ec Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Wed, 2 Mar 2011 00:41:16 -0800 Subject: Bug 624414: BUGZILLA.value_descs was always empty in the JS, and display_value wasn't translating values. r=glob, a=mkanat --- template/en/default/global/field-descs.none.tmpl | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) (limited to 'template/en/default/global/field-descs.none.tmpl') diff --git a/template/en/default/global/field-descs.none.tmpl b/template/en/default/global/field-descs.none.tmpl index e85ebbee1..479944ff9 100644 --- a/template/en/default/global/field-descs.none.tmpl +++ b/template/en/default/global/field-descs.none.tmpl @@ -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. -- cgit v1.2.3-24-g4f1b