Fix issue #3373 Incorrect link in auto-generated issue->US promoting comment

remotes/origin/logger
David Barragán Merino 2015-10-29 19:07:18 +01:00
parent b5af26cf35
commit efb86b775d
2 changed files with 7 additions and 10 deletions

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: taiga-back\n" "Project-Id-Version: taiga-back\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-10-27 09:53+0100\n" "POT-Creation-Date: 2015-10-29 19:06+0100\n"
"PO-Revision-Date: 2015-03-25 20:09+0100\n" "PO-Revision-Date: 2015-03-25 20:09+0100\n"
"Last-Translator: Taiga Dev Team <support@taiga.io>\n" "Last-Translator: Taiga Dev Team <support@taiga.io>\n"
"Language-Team: Taiga Dev Team <support@taiga.io>\n" "Language-Team: Taiga Dev Team <support@taiga.io>\n"
@ -1319,7 +1319,7 @@ msgstr ""
#: taiga/projects/history/templates/emails/includes/fields_diff-html.jinja:134 #: taiga/projects/history/templates/emails/includes/fields_diff-html.jinja:134
#: taiga/projects/history/templates/emails/includes/fields_diff-html.jinja:145 #: taiga/projects/history/templates/emails/includes/fields_diff-html.jinja:145
#: taiga/projects/services/stats.py:137 taiga/projects/services/stats.py:138 #: taiga/projects/services/stats.py:138 taiga/projects/services/stats.py:139
msgid "Unassigned" msgid "Unassigned"
msgstr "" msgstr ""
@ -2185,7 +2185,7 @@ msgid ""
"[%(project)s] Deleted the Wiki Page \"%(page)s\"\n" "[%(project)s] Deleted the Wiki Page \"%(page)s\"\n"
msgstr "" msgstr ""
#: taiga/projects/notifications/validators.py:45 #: taiga/projects/notifications/validators.py:46
msgid "Watchers contains invalid users" msgid "Watchers contains invalid users"
msgstr "" msgstr ""
@ -2253,11 +2253,11 @@ msgstr ""
msgid "Roles" msgid "Roles"
msgstr "" msgstr ""
#: taiga/projects/services/stats.py:84 #: taiga/projects/services/stats.py:85
msgid "Future sprint" msgid "Future sprint"
msgstr "" msgstr ""
#: taiga/projects/services/stats.py:101 #: taiga/projects/services/stats.py:102
msgid "Project End" msgid "Project End"
msgstr "" msgstr ""
@ -2639,9 +2639,7 @@ msgstr ""
#: taiga/projects/userstories/api.py:254 #: taiga/projects/userstories/api.py:254
#, python-brace-format #, python-brace-format
msgid "" msgid "Generating the user story #{ref} - {subject}"
"Generating the user story [US #{ref} - {subject}](:us:{ref} \"US #{ref} - "
"{subject}\")"
msgstr "" msgstr ""
#: taiga/projects/userstories/models.py:37 #: taiga/projects/userstories/models.py:37

View File

@ -251,8 +251,7 @@ class UserStoryViewSet(OCCResourceMixin, VotedResourceMixin, HistoryResourceMixi
if response.status_code == status.HTTP_201_CREATED and self.object.generated_from_issue: if response.status_code == status.HTTP_201_CREATED and self.object.generated_from_issue:
self.object.generated_from_issue.save() self.object.generated_from_issue.save()
comment = _("Generating the user story [US #{ref} - " comment = _("Generating the user story #{ref} - {subject}")
"{subject}](:us:{ref} \"US #{ref} - {subject}\")")
comment = comment.format(ref=self.object.ref, subject=self.object.subject) comment = comment.format(ref=self.object.ref, subject=self.object.subject)
history = take_snapshot(self.object.generated_from_issue, history = take_snapshot(self.object.generated_from_issue,
comment=comment, comment=comment,