Edgewall Software
Modify

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#9308 closed defect (fixed)

Text of h1 element in ticket-delete page isn't translated

Reported by: Jun Omae Owned by: Jun Omae
Priority: normal Milestone: 0.12
Component: i18n Version: 0.12dev
Severity: normal Keywords:
Cc: Pedro Algarvio, aka, s0undt3ch, Christopher Lenz Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christian Boos)

The translated message in each language catalog exists. However, the text of h1 element in ticket-delete page isn't translated.

Is it Genshi issue?

French

Japanese

Attachments (2)

locale-fr.png (39.7 KB ) - added by Jun Omae 15 years ago.
locale-ja.png (39.5 KB ) - added by Jun Omae 15 years ago.

Download all attachments as: .zip

Change History (7)

by Jun Omae, 15 years ago

Attachment: locale-fr.png added

by Jun Omae, 15 years ago

Attachment: locale-ja.png added

in reply to:  description comment:1 by Christian Boos, 15 years ago

Cc: Pedro Algarvio, aka, s0undt3ch Christopher Lenz added
Milestone: 0.120.12.1

Replying to jomae:

Is it Genshi issue?

I'm afraid so, I could reproduced the issue, but was not able to understand why that specific message couldn't be translated.

I first thought it could be related to the fact that there are two very similar messages:

#: tracopt/ticket/templates/ticket_delete.html:11
#, python-format
msgid "Delete Ticket #%(id)s"
msgstr ""

# ...

#: tracopt/ticket/templates/ticket_delete.html:20
#, python-format
msgid "Delete [1:Ticket #%(id)s]"
msgstr ""

But the first gets correctly translated, and changing it so that they're really different doesn't make it better for the second message…

No clue so far.

comment:2 by Christian Boos, 15 years ago

Description: modified (diff)

comment:3 by Jun Omae, 15 years ago

I found a workaround for the issue. The message is translated now, but I'm not able to understand why….

  • tracopt/ticket/templates/ticket_delete.html

     
    1717    <div id="content" class="ticket" py:choose="action">
    1818      <py:when test="'delete'">
    1919        <h1 id="trac-ticket-title">
    20           <i18n:msg params="id">Delete <a href="${href.ticket(ticket.id)}">Ticket #$ticket.id</a></i18n:msg>
     20          <span i18n:msg="id">Delete <a href="${href.ticket(ticket.id)}">Ticket #$ticket.id</a></span>
    2121          <span class="status">($ticket.status<py:if
    2222              test="ticket.type"> $ticket.type</py:if><py:if
    2323              test="ticket.resolution">: $ticket.resolution</py:if>)</span>

comment:4 by Christian Boos, 15 years ago

Milestone: 0.12.10.12
Resolution: fixed
Status: newclosed

Great! Fix verified and applied in r9630.

comment:5 by Christian Boos, 15 years ago

Owner: set to Jun Omae

(created #G385 as a reminder of the issue)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jun Omae.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jun Omae to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.