Skip to content
Snippets Groups Projects
Commit b2626bcb authored by syasonik's avatar syasonik
Browse files

Do not translate title of incidents

parent 6e9ec5d8
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -5,6 +5,7 @@ class CreateAlertIssueService
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]
Loading
Loading
@@ -57,7 +58,7 @@ def associate_alert_with_issue(issue)
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)
Loading
Loading
Loading
Loading
@@ -20121,9 +20121,6 @@ msgstr ""
msgid "New..."
msgstr ""
 
msgid "New: Incident %{iid}"
msgstr ""
msgid "Newest first"
msgstr ""
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment