Commit d7763277 authored by Dylan Griffith's avatar Dylan Griffith

Merge branch 'sy-undo-incident-title-translation' into 'master'

Do not translate title of incidents

See merge request gitlab-org/gitlab!54955
parents 48a16d4c b2626bcb
......@@ -5,6 +5,7 @@ module AlertManagement
include Gitlab::Utils::StrongMemoize
DEFAULT_ALERT_TITLE = ::Gitlab::AlertManagement::Payload::Generic::DEFAULT_TITLE
DEFAULT_INCIDENT_TITLE = 'New: Incident'
# @param alert [AlertManagement::Alert]
# @param user [User]
......@@ -57,7 +58,7 @@ module AlertManagement
def update_title_for(issue)
return unless issue.title == DEFAULT_ALERT_TITLE
issue.update!(title: _('New: Incident %{iid}' % { iid: issue.iid }))
issue.update!(title: "#{DEFAULT_INCIDENT_TITLE} #{issue.iid}")
end
def error(message, issue = nil)
......
......@@ -20178,9 +20178,6 @@ msgstr ""
msgid "New..."
msgstr ""
msgid "New: Incident %{iid}"
msgstr ""
msgid "Newest first"
msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment