bugzilla 3.6.6 howto internationalize Priority and Severity on show_bug.cgi

classic Classic list List threaded Threaded
4 messages Options
fbm
Reply | Threaded
Open this post in threaded view
|

bugzilla 3.6.6 howto internationalize Priority and Severity on show_bug.cgi

fbm
Hi,

I try to create a multilanguage installation of bugzilla. On the bugpage 'show_bug.cgi'
you can set the Importance aka priority and severity.

Corresponding code is found in template/en/default/bug/edit.html.tmpl at line 408
for english and eg. for german in template/de/default/bug/edit.html.tmpl
(The only difference in the code is the language)

The values for Priority an Severity are stored in the database. So the problem
is that values in the german template are the same as in the english template
version. Is there a way to internationalize this with version 3.6.6? Or is
there a starting point to modify it myself

Thx for your help

Greetz Frieder

-- snippet from template/en/default/bug/edit.html.tmpl --
[% BLOCK section_details2 %]

  [%###############################################################%]
  [%# Importance (priority, severity and votes) #%]
  [%###############################################################%]
     <tr>
       <td class="field_label">
         <label for="priority" accesskey="i">
           <b><a href="page.cgi?id=fields.html#importance"><u>I</u>mportance</a></b></label>:
       </td>
       <td>
        [% INCLUDE bug/field.html.tmpl
             bug = bug, field = select_fields.priority,
             no_tds = 1, value = bug.priority
             editable = bug.check_can_change_field('priority', 0, 1) %]
        [%+ INCLUDE bug/field.html.tmpl
             bug = bug, field = select_fields.bug_severity,
             no_tds = 1, value = bug.bug_severity
             editable = bug.check_can_change_field('bug_severity', 0, 1) %]
         [% IF bug.use_votes %]
           <span id="votes_container">
_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.
Reply | Threaded
Open this post in threaded view
|

Re: bugzilla 3.6.6 howto internationalize Priority and Severity on show_bug.cgi

Frédéric Buclin
Le 22. 09. 11 02:01, [hidden email] a écrit :
> The values for Priority an Severity are stored in the database. So the
> problem
> is that values in the german template are the same as in the english
> template
> version. Is there a way to internationalize this with version 3.6.6?

From what you say, Germzilla didn't translate everything (Marc: is that
intentional?). You can fix the problem yourself by editing the file
template/de/default/global/field-descs.none.html and add the missing
items. Look for the value_descs hash and add missing severities and
priorities as follows:

  "bug_severity" => {
    "enhancement" => "Erweiterung",
    "minor"       => "...",
    "..."         => "...",
  },

  "priority" => {
    "P1" => "jetzt",
    "P2" => "später",
    "..." => "...",
  },

You can translate all the fields you want from here.


LpSolit
_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.
fbm
Reply | Threaded
Open this post in threaded view
|

Re: bugzilla 3.6.6 howto internationalize Priority and Severity on show_bug.cgi

fbm
On 23.09.2011 18:33, Frédéric Buclin wrote:

> Le 22. 09. 11 02:01, [hidden email] a écrit :
>> The values for Priority an Severity are stored in the database. So the
>> problem
>> is that values in the german template are the same as in the english
>> template
>> version. Is there a way to internationalize this with version 3.6.6?
>
>  From what you say, Germzilla didn't translate everything (Marc: is that
> intentional?). You can fix the problem yourself by editing the file
> template/de/default/global/field-descs.none.html and add the missing
> items. Look for the value_descs hash and add missing severities and
> priorities as follows:
>
>    "bug_severity" =>  {
>      "enhancement" =>  "Erweiterung",
>      "minor"       =>  "...",
>      "..."         =>  "...",
>    },
>
>    "priority" =>  {
>      "P1" =>  "jetzt",
>      "P2" =>  "später",
>      "..." =>  "...",
>    },
>
> You can translate all the fields you want from here.

thank you very much!

>
>
> LpSolit

Greetz Frieder
_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.
Reply | Threaded
Open this post in threaded view
|

Re: bugzilla 3.6.6 howto internationalize Priority and Severity on show_bug.cgi

Marc Schumann
In reply to this post by Frédéric Buclin
Frédéric,

yes, it is translated. But I think what fbm says that the _values_ are in
the database (eg priority "high"). You can put only one language into the
database, which means that if you put some new value into the database (eg
priority "extremely maximum high") you need to dive down to OS level in
order to translate this.

I couldn't find an exact bug, but see
https://bugzilla.mozilla.org/show_bug.cgi?id=426222&mark=5,7,8,9#c5 (and
further down). Also related is
https://bugzilla.mozilla.org/show_bug.cgi?id=576946.

   Regards
      Marc

2011/9/23 Frédéric Buclin <[hidden email]>

> Le 22. 09. 11 02:01, [hidden email] a écrit :
> > The values for Priority an Severity are stored in the database. So the
> > problem
> > is that values in the german template are the same as in the english
> > template
> > version. Is there a way to internationalize this with version 3.6.6?
>
> From what you say, Germzilla didn't translate everything (Marc: is that
> intentional?). You can fix the problem yourself by editing the file
> template/de/default/global/field-descs.none.html and add the missing
> items. Look for the value_descs hash and add missing severities and
> priorities as follows:
>
>  "bug_severity" => {
>    "enhancement" => "Erweiterung",
>    "minor"       => "...",
>    "..."         => "...",
>  },
>
>  "priority" => {
>    "P1" => "jetzt",
>    "P2" => "später",
>    "..." => "...",
>  },
>
> You can translate all the fields you want from here.
>
>
> LpSolit
>
_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.