I have a requirement where i have to rename Field Value- "Severity" to some
other name.
Is it possible doing? Have seen the code its mentioned at several places.
Changing in Code & DB is a high risk .
Is there any solution to it?
Regards
Kapila
Bugzilla is designed for this type of change, although not perfectly.
You must also then change the name in several template files. I just
did a search (for 'everity', to catch string '<u>S</u>everity') in
Bugzilla 3.2 and found files that need to be changed. Not all files in
the search need to be changed, just 14 of the 22 that contain
"Severity". FYI, the field name is bug_severity, and that should not be
changed.
For Bugzilla 3.2
http://mxr.mozilla.org/bugzilla3.2/search?string=Severity&case=on&find=%
2F&findi=&filter=^[^\0]*%24&hitlimit=&tree=bugzilla3.2
Here is a good list of changes to start with:
/Bugzilla/Field.pm (View CVS log or CVS annotations)
* line 147 -- {name => 'bug_severity', desc => 'Severity',
in_new_bugmail => 1},
/template/en/default/pages/fields.html.tmpl
* line 211 -- its <a href="#priority">priority</a> and <a
href="#bug_severity">severity</a>,
* line 221 -- <h2><a name="bug_severity">Severity</a></h2>
/template/en/default/pages/quicksearchhack.html.tmpl
* line 125 -- <td><tt>severity</tt></td>
* line 128 -- <a
href="page.cgi?id=fields.html#bug_severity">Severity</a>
* line 345 -- <td><b>severity:</b><i>sev</i></td>
/template/en/default/pages/release-notes.html.tmpl
* line 699 -- <li>The priority, severity, OS, and platform fields
were always required by
/template/en/default/account/prefs/email.html.tmpl
* line 125 -- description = "The priority, status, severity, or
milestone changes" },
/template/en/default/list/table.html.tmpl
* line 42 -- "bug_severity" => { maxlength => 3 , title => "Sev" } ,
/template/en/default/list/edit-multiple.html.tmpl
* line 106 -- <a
href="page.cgi?id=fields.html#bug_severity">Severity</a>:
/template/en/default/global/field-descs.none.tmpl
* line 42 -- "bug_severity" => "Severity",
/template/en/default/email/newchangedmail.txt.tmpl
* line 34 -- X-Bugzilla-Severity: [% severity %]
/template/en/default/whine/mail.txt.tmpl
* line 57 -- Severity: [%+ bug.bug_severity -%]
/template/en/default/reports/duplicates-table.html.tmpl
* line 57 -- { name => "bug_severity", description => "Severity" },
/template/en/default/bug/create/create.html.tmpl
* line 250 -- [% sel = { description => 'Severity', name =>
'bug_severity' } %]
/template/en/default/bug/create/create-guided.html.tmpl
* line 443 -- <b>Severity</b>
/template/en/default/admin/params/bugfields.html.tmpl
* line 50 -- defaultseverity => "This is the severity that newly
entered $terms.bugs are set to.",
/template/en/default/search/form.html.tmpl
* line 378 -- <label for="bug_severity">Severity</label>:
1) Should i change there too?
2)change bug_severity also ?
Any help is appreciated.
Bugzilla/Field.pm: {name => 'bug_severity', desc => 'Severity',
in_new_bugmail => 1},
Bugzilla/User.pm: 'Severity' => EVT_PROJ_MANAGEMENT,
template/en/default/bug/create/create-guided.html.tmpl: <b>Severity</b>
template/en/default/bug/create/create.html.tmpl: [% sel = { description
=> 'Severity', name => 'bug_severity' } %]
template/en/default/email/newchangedmail.txt.tmpl:X-Bugzilla-Severity: [%
severity %]
template/en/default/global/field-descs.none.tmpl:
"bug_severity" => "Severity",
template/en/default/list/edit-multiple.html.tmpl: <a
href="page.cgi?id=fields.html#bug_severity">Severity</a>:
template/en/default/pages/fields.html.tmpl:<h2><a
name="bug_severity">Severity</a></h2>
template/en/default/pages/quicksearchhack.html.tmpl: <a
href="page.cgi?id=fields.html#bug_severity">Severity</a>
template/en/default/reports/duplicates-table.html.tmpl:
{ name => "bug_severity", description => "Severity" },
template/en/default/search/form.html.tmpl: <label
for="bug_severity">Severity</label>:
template/en/default/whine/mail.txt.tmpl: Severity: [%+ bug.bug_severity -%]
template/en/custom_old/search/form.html.tmpl: <label
for="bug_severity">Severity</label>:
On Fri, Jul 31, 2009 at 6:58 PM, Tosh, Michael J <michael...@lmco.com>wrote:
> Kapila Kohli wrote:
> > Hi,
> >
> > I have a requirement where i have to rename Field Value- "Severity" to
> some
> > other name.
> > Is it possible doing? Have seen the code its mentioned at several
> places.
> > Changing in Code & DB is a high risk .
> > Is there any solution to it?
>
> Bugzilla is designed for this type of change, although not perfectly.
> You must also then change the name in several template files. I just
> did a search (for 'everity', to catch string '<u>S</u>everity') in
> Bugzilla 3.2 and found files that need to be changed. Not all files in
> the search need to be changed, just 14 of the 22 that contain
> "Severity". FYI, the field name is bug_severity, and that should not be
> changed.
>
> For Bugzilla 3.2
> http://mxr.mozilla.org/bugzilla3.2/search?string=Severity&case=on&find=%
> 2F&findi=&filter=<http://mxr.mozilla.org/bugzilla3.2/search?string=Severity&case=on&find=%%0A2F&findi=&filter=>
I wouldn't change anything in the database for now unless you see a problem while using Bugzilla tool. The localization should be limited to editing templates only.