diff options
author | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-07-24 10:12:11 +0200 |
---|---|---|
committer | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-07-24 10:25:09 +0200 |
commit | 4b31edf8e292a4d43c15a9faee9ee6ee5e855d84 (patch) | |
tree | 78af84838b9e81bd96fa3d59b545d0652eb7eadf | |
parent | 15e81a8e94e3e209f35b56ba21eeffcfbb4f7a28 (diff) | |
download | sonarqube-4b31edf8e292a4d43c15a9faee9ee6ee5e855d84.tar.gz sonarqube-4b31edf8e292a4d43c15a9faee9ee6ee5e855d84.zip |
SONAR-3373 Fix delete confirm message
-rw-r--r-- | server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-detail-view.coffee | 3 | ||||
-rw-r--r-- | sonar-core/src/main/resources/org/sonar/l10n/core.properties | 2 |
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 |