Opened 6 years ago
Closed 6 years ago
#13057 closed enhancement (fixed)
Unify use of 'removal'
Reported by: | figaro | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Milestone: | 1.3.4 |
Component: | ticket system | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: |
Replaced term |
||
API Changes: | |||
Internal Changes: |
Description
At some points the term 'removed' is used and at others 'deleted'. Can the parlance on screen be unified to show 'removed' only?
Potentially a similar issue applies to not only users on tickets, but also milestones, attachments and even javascript code.
Attachments (1)
Change History (3)
by , 6 years ago
Attachment: | Screenshot 2018-07-08 at 20.57.30.png added |
---|
comment:1 by , 6 years ago
Component: | general → ticket system |
---|---|
Milestone: | → 1.3.4 |
Owner: | set to |
Status: | new → assigned |
The change is fine with me. With a related change we can reduce the number of translatable strings by one. If others agree, will do in milestone:1.3.4.
-
trac/ticket/web_ui.py
commit c1656ace6056a52e795a31b73d4726eb3a2fc291 Author: Ryan J Ollos <ryan.j.ollos@gmail.com> Date: Mon Jul 9 12:50:45 2018 -0700 Use common parlance diff --git a/trac/ticket/web_ui.py b/trac/ticket/web_ui.py index 8e25dc8c0..f4aec622a 100644
a b class TicketModule(Component): 1774 1774 elt_renderer = lambda e: e 1775 1775 added = [elt_renderer(x) for x in new_list if x not in old_list] 1776 1776 remvd = [elt_renderer(x) for x in old_list if x not in new_list] 1777 added = added and tagn_("%( items)s added", "%(items)s added",1777 added = added and tagn_("%(value)s added", "%(value)s added", 1778 1778 len(added), 1779 items=separated(added, separator))1780 remvd = remvd and tagn_("%( items)s removed", "%(items)s removed",1779 value=separated(added, separator)) 1780 remvd = remvd and tagn_("%(value)s removed", "%(value)s removed", 1781 1781 len(remvd), 1782 items=separated(remvd, separator))1782 value=separated(remvd, separator)) 1783 1783 if added or remvd: 1784 1784 return tag(added, added and remvd and _("; "), remvd) 1785 1785 … … class TicketModule(Component): 1808 1808 old_author = authorinfo(old) 1809 1809 new_author = authorinfo(new) 1810 1810 if old and not new: 1811 rendered = tag_("%(value)s deleted", value=old_author)1811 rendered = tag_("%(value)s removed", value=old_author) 1812 1812 elif new and not old: 1813 1813 rendered = tag_("set to %(value)s", value=new_author) 1814 1814 else: # old and new:
comment:2 by , 6 years ago
Release Notes: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Example of use of both 'removed' and 'deleted'.