aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-detail-view.coffee3
-rw-r--r--sonar-core/src/main/resources/org/sonar/l10n/core.properties2
2 files changed, 4 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-detail-view.coffee b/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-detail-view.coffee
index dd9bdd55412..67776649b39 100644
--- a/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-detail-view.coffee
+++ b/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-detail-view.coffee
@@ -294,9 +294,10 @@ define [
deleteRule: ->
+ ruleType = if @model.has('templateKey') then 'custom' else 'manual'
confirmDialog
title: t 'delete'
- html: t 'are_you_sure'
+ html: tp "coding_rules.delete.#{ruleType}.confirm", @model.get('name')
yesHandler: =>
jQuery.ajax
type: 'POST'
diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties
index d69d7f43d0c..2d8b6615c1b 100644
--- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties
+++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties
@@ -1716,6 +1716,8 @@ coding_rules.create_manual_rule=Create Manual Rule
coding_rules.custom_rule=Custom Rule
coding_rules.custom_rule.title=This rule has been created through customization of a rule template
coding_rules.custom_rules=Custom Rules
+coding_rules.delete.custom.confirm=Are you sure you want to delete custom rule "{0}"?
+coding_rules.delete.manual.confirm=Are you sure you want to delete manual rule "{0}"?
coding_rules.extend_description=Extend Description
coding_rules.deactivate_in=Deactivate In
coding_rules.deactivate=Deactivate