Renaming Severity

37 views
Skip to first unread message

Jon Drukman

unread,
Feb 28, 2012, 5:39:35 PM2/28/12
to trac-...@googlegroups.com
Is it possible to change the name of the Severity field to something else?  I just want to it to look different on the ticket display page, it doesn't have to change internally.  I can't find the string "Severity" anywhere in the templates directory!

Jon Drukman

unread,
Mar 6, 2012, 3:23:11 PM3/6/12
to trac-...@googlegroups.com
Anybody?

Benjamin Lau

unread,
Mar 6, 2012, 4:12:49 PM3/6/12
to trac-...@googlegroups.com
I don't know how to do this myself... and I don't have a machine handy
on which to try this out... but I wonder if you could use the
localization system to accomplish what you want...

http://trac.edgewall.org/wiki/TracL10N

There's already a translation for en_GB... so I don't see why you
couldn't create one for en_US that overrides the default and allows
you to keep the underlying variable... but show a different label. Of
course this would be confusing if you wanted to use things like the
TicketQuery macro with the severity option that you had renamed...
since the name wouldn't match... not sure how much of an issue this
would be.

Ben

> --
> You received this message because you are subscribed to the Google Groups
> "Trac Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/trac-users/-/9hsdLmJ-DJgJ.
>
> To post to this group, send email to trac-...@googlegroups.com.
> To unsubscribe from this group, send email to
> trac-users+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/trac-users?hl=en.

Cooke, Mark

unread,
Mar 7, 2012, 4:35:36 AM3/7/12
to trac-...@googlegroups.com

I believe that you could also do this by implementing a Genshi StreamFilter but I would not know how to go about it. Search the list archives as I seem to remember something similar was discussed a few months back.

~ mark c

Nelson Brown

unread,
Mar 7, 2012, 9:28:34 AM3/7/12
to trac-...@googlegroups.com

If starting off with a new db you could create a custom ticket field named whatever you want, and ignore severity (removing all entries from it which would remove it's usage while entering or viewing tickets).  The queries could be changed without much effort to sort on that custom field.

-nelson

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.

Dana V. Baldwin

unread,
Mar 12, 2012, 5:20:13 PM3/12/12
to trac-...@googlegroups.com
I would also suggest custom ticket field.
dbaldwin.vcf

Jon Drukman

unread,
Mar 12, 2012, 5:41:23 PM3/12/12
to trac-...@googlegroups.com
Is it possible to add a custom field to an existing installation?  I don't care if old tickets have it, as long as it's there for new ones.

How do I do it?

Cooke, Mark

unread,
Mar 13, 2012, 5:20:32 AM3/13/12
to trac-...@googlegroups.com
> -----Original Message-----
> From: trac-...@googlegroups.com On Behalf Of Jon Drukman
> Sent: 12 March 2012 21:41
> To: trac-...@googlegroups.com
> Subject: Re: [Trac] Re: Renaming Severity
>
> Is it possible to add a custom field to an existing
> installation? I don't care if old tickets have it, as long
> as it's there for new ones.
>
> How do I do it?
>
You can either use a plugin such as:-

http://trac-hacks.org/wiki/CustomFieldAdminPlugin

...or you can configure them by hand if you have access to the site's trac.ini file:-

http://trac.edgewall.org/wiki/TracTicketsCustomFields#

~ mark c

Jon Drukman

unread,
Mar 13, 2012, 1:41:55 PM3/13/12
to trac-...@googlegroups.com
Thanks, that was most helpful.  I added the field in trac.ini.  Is there a way to suppress the display of Severity now?

Eduard-Cristian Stefan

unread,
Mar 13, 2012, 2:27:52 PM3/13/12
to trac-...@googlegroups.com, Jon Drukman
On 2012-03-13 19:41, Jon Drukman wrote:
> Thanks, that was most helpful. I added the field in trac.ini. Is there a way to suppress the display of Severity now?

Just delete all values defined for it.

Eduard

Craig A

unread,
Mar 13, 2012, 2:29:28 PM3/13/12
to trac-...@googlegroups.com
Administration -> Severities:

"You can remove all items from this list to completely hide this field from the user interface."
Reply all
Reply to author
Forward
0 new messages