Commit b2626bcb authored by syasonik's avatar syasonik

Do not translate title of incidents

parent 6e9ec5d8
...@@ -5,6 +5,7 @@ module AlertManagement ...@@ -5,6 +5,7 @@ module AlertManagement
include Gitlab::Utils::StrongMemoize include Gitlab::Utils::StrongMemoize
DEFAULT_ALERT_TITLE = ::Gitlab::AlertManagement::Payload::Generic::DEFAULT_TITLE DEFAULT_ALERT_TITLE = ::Gitlab::AlertManagement::Payload::Generic::DEFAULT_TITLE
DEFAULT_INCIDENT_TITLE = 'New: Incident'
# @param alert [AlertManagement::Alert] # @param alert [AlertManagement::Alert]
# @param user [User] # @param user [User]
...@@ -57,7 +58,7 @@ module AlertManagement ...@@ -57,7 +58,7 @@ module AlertManagement
def update_title_for(issue) def update_title_for(issue)
return unless issue.title == DEFAULT_ALERT_TITLE 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 end
def error(message, issue = nil) def error(message, issue = nil)
......
...@@ -20121,9 +20121,6 @@ msgstr "" ...@@ -20121,9 +20121,6 @@ msgstr ""
msgid "New..." msgid "New..."
msgstr "" msgstr ""
msgid "New: Incident %{iid}"
msgstr ""
msgid "Newest first" msgid "Newest first"
msgstr "" 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