Translate bug in bugzilla russian 3.4.2 - Mozilla

This is a discussion on Translate bug in bugzilla russian 3.4.2 - Mozilla ; Entering a new bug, the field "Severity" does not translated ("blocker", "critical", etc). But searching, this severity list values translated well ("Чрезывачайная", "Критическая", etc). This occured both on clean installation and on upgrade from version 3.2....

+ Reply to Thread
Results 1 to 3 of 3

Thread: Translate bug in bugzilla russian 3.4.2

  1. Translate bug in bugzilla russian 3.4.2

    Entering a new bug, the field "Severity" does not translated
    ("blocker", "critical", etc). But searching, this severity list values
    translated well ("Чрезывачайная", "Критическая", etc). This occured
    both on clean installation and on upgrade from version 3.2.

  2. Re: Translate bug in bugzilla russian 3.4.2

    On 1 п╬п╨я┌, 04:20, Max Kanat-Alexander wrote:
    >
    > б* б* б* б* This is something to contact the Russian localizer about.
    >


    Well, localizer did not confirmed this bug. However, I have carried
    out small work and here is my results:

    In all localized template files, where construction "select_fields" is
    used for "select" field type, values are remaining untranslated. For
    example (I used an original file for an example):

    File "template/en/default/bug/create/create.html.tmpl"
    Line 272

    [% INCLUDE bug/field.html.tmpl
    bug = default, field = select_fields.bug_severity, editable =
    1,
    value = default.bug_severity %]

    So, the fieldlist "Bug severity" would be untranslated. Whereas if I
    replace a construction above by some lines from Bugzilla version 3.2,
    the fieldlist values look translated well:

    [% sel = { description => 'Translated description here', name =>
    'bug_severity' } %]
    [% INCLUDE select %]

    instead of

    [% INCLUDE bug/field.html.tmpl
    bug = default, field = select_fields.bug_severity, editable =
    1,
    value = default.bug_severity %]

    Any ideas? It's time to upgrade, but because of this issue, I can't.

  3. Re: Translate bug in bugzilla russian 3.4.2

    I've filled a bug on official bugzilla bug tracker
    https://bugzilla.mozilla.org/show_bug.cgi?id=523091
    And I've written a patch, that temporarily will work until this bug
    would be fixed or canceled.

    File "\template\ru\default\bug\field.html.tmpl"
    Change code from (line 155 in original file)

    [%- legal_value.name FILTER html %]

    to

    [%# Patch by dizelgenerator@gmail.com %]
    [% IF "bug_severity" == field.name %]
    [%- get_severity(legal_value.name) FILTER html %]
    [% ELSIF "op_sys" == field.name %]
    [%- get_os(legal_value.name) FILTER html %]
    [% ELSIF "rep_platform" == field.name %]
    [%- get_platform(legal_value.name) FILTER html %]
    [% ELSE %]
    [%- legal_value.name FILTER html %]
    [% END %]
    [%# End Patch %]

+ Reply to Thread