Translating bug_severity in the newchangedmail.txt.html

lippoliv oliver at lippert.it
Thu Jul 22 06:54:07 UTC 2010


Hey there,
I'm a german software developer, we're using Bugzilla 3.0.4 (with
several own changes) and just would like to ask:

There are a few templates to bugzilla that enables to translate
bugzilla into several languages.
Now there is a sucking problem: the newchangedmail.

The content itself isn't generated in an template, it's in the
BugMail.pm so I can't edit the textcontent really simple.

What I would like to do:
Replace all hard-coded severity names into the variable one out of the
field-descs.none.tmpl because bugzilla isn't able to do it on it's
own...

I'd added

   $vars->{'states'} = $dbh->selectall_arrayref("SELECT value AS name,
sortkey  FROM bug_severity ORDER BY sortkey, value");

to the whineatnews.pl right befor the

    my $msg;
    my $template = Bugzilla->template_inner($user->settings->{'lang'}-
>{'value'});
    $template->process("email/whine.txt.tmpl", $vars, \$msg)
      or die($template->error());

but this wouldn't work, I'd took it out of the editvalues.cgi at

    unless ($action) {
    FieldMustExist($field);
    # Now we know the $field is valid.
    trick_taint($field);

    my $fieldvalues =
        $dbh->selectall_arrayref("SELECT value AS name, sortkey"
                               . "  FROM $field ORDER BY sortkey,
value",
                                 {Slice =>{}});

so there it works, in the whineatnews.pl it doesn't.


Did anyone got what I would like to do (I can't descripe my problems
sometimes) and may: did somebody be able to help me?

Warm regards,
  Oli
_______________________________________________
dev-apps-bugzilla mailing list
dev-apps-bugzilla at lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-apps-bugzilla



More information about the developers mailing list