#11689 closed defect (fixed)
Anonymous is not translated in ticket workflow hint
Reported by: | Ryan J Ollos | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Milestone: | 1.0.2 |
Component: | ticket system | Version: | |
Severity: | normal | Keywords: | translation |
Cc: | Branch: | ||
Release Notes: |
Anonymous and (none) are translated in the ticket workflow action hints. |
||
API Changes: | |||
Internal Changes: |
Description
As mentioned in comment:1:ticket:11474, anonymous is not translated in the ticket workflow action hint. However, it is property translated in the ticket properties box.
With the proposed changes,
Attachments (1)
Change History (7)
comment:1 by , 10 years ago
Release Notes: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | new → closed |
follow-up: 3 comment:2 by , 10 years ago
by , 10 years ago
Attachment: | t11689-render_ticket_action_control.diff added |
---|
comment:3 by , 10 years ago
I think that the space character in suffix of "from invalid state "
is intentional.
If .operations
of the aciton has multiple operations in a workflow, it generates multiple control and concatinates at tags/trac-1.0.1/trac/ticket/default_workflow.py#L329.
I think it would be good to concatinate with space at the end rather than generating a control ended with a space, attachment:t11689-render_ticket_action_control.diff.
comment:4 by , 10 years ago
comment:5 by , 10 years ago
It looks like we could refactor [13038] in milestone:1.0.3 with:
-
trac/ticket/default_workflow.py
diff --git a/trac/ticket/default_workflow.py b/trac/ticket/default_workflow.py index c735d02..11353d5 100644
a b from trac.env import IEnvironmentSetupParticipant 30 30 from trac.perm import PermissionSystem 31 31 from trac.ticket.api import ITicketActionController, TicketSystem 32 32 from trac.ticket.model import Resolution 33 from trac.util.presentation import separated 33 34 from trac.util.text import obfuscate_email_address 34 35 from trac.util.translation import _, tag_, cleandoc_ 35 36 from trac.web.chrome import Chrome, add_script, add_script_data … … Read TracWorkflow for more information (don't forget to 'wik 346 347 else: 347 348 if status != '*': 348 349 hints.append(_("Next status will be '%(name)s'", name=status)) 349 return (this_action['name'], 350 tag((' ' if i else None, c) for i, c in enumerate(control)), 350 return (this_action['name'], tag(separated(control, ' ')), 351 351 '. '.join(hints) + '.' if hints else '') 352 352 353 353 def get_ticket_changes(self, req, ticket, action):
Committed to 1.0-stable in [13000], merged to trunk in [13001].