]> source.dussan.org Git - sonarqube.git/commitdiff
Update confirmation labels
authorStas Vilchik <vilchiks@gmail.com>
Fri, 11 Apr 2014 10:56:30 +0000 (16:56 +0600)
committerStas Vilchik <vilchiks@gmail.com>
Fri, 11 Apr 2014 10:56:30 +0000 (16:56 +0600)
plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties
sonar-server/src/main/coffee/quality-gate/views/quality-gate-detail-condition-view.coffee
sonar-server/src/main/coffee/quality-gate/views/quality-gate-detail-header-view.coffee

index 2aedcd4429955736cb9c58631271361da49b76f1..3f3064a19e99337809f3e5af80041a8e5acfef72 100644 (file)
@@ -1644,7 +1644,6 @@ quality_gates.conditions=Conditions
 quality_gates.projects=Projects
 quality_gates.add_condition=Add Condition
 quality_gates.no_conditions=No Conditions
-quality_gates.delete_condition=Delete Condition
 quality_gates.introduction=Only project measures are checked against thresholds. Sub-projects, directories and files are ignored.
 quality_gates.health_icons=Project health icons represent:
 quality_gates.projects_for_default=Every project not specifically associated to a quality gate will be associated to this one by default.
@@ -1659,9 +1658,10 @@ quality_gates.operator.LT=is less than
 quality_gates.operator.GT=is greater than
 quality_gates.operator.EQ=equals
 quality_gates.operator.NE=is not
-quality_gates.delete.confirm.message=Are you sure that you want to delete the quality gate "{0}"?
-quality_gates.delete.confirm.default=Are you sure that you want to delete the quality gate "{0}", which is the default quality gate?
-quality_gates.delete_condition.confirm.message=Are you sure that you want to delete this condition?
+quality_gates.delete.confirm.message=Are you sure that you want to delete the "{0}" quality gate?
+quality_gates.delete.confirm.default=Are you sure that you want to delete the "{0}" quality gate, which is the default quality gate?
+quality_gates.delete_condition=Delete Condition
+quality_gates.delete_condition.confirm.message=Are you sure you want to delete the "{0}" condition?
 
 
 #------------------------------------------------------------------------------
index 6535003e0fca6fb8551473b6e3b0cae18edfe32d..e73343ac80b143154fc84578eb53a581818308eb 100644 (file)
@@ -97,7 +97,9 @@ define [
     deleteCondition: ->
       confirmDialog
         title: t 'quality_gates.delete_condition'
-        html: t('quality_gates.delete_condition.confirm.message')
+        html: tp 'quality_gates.delete_condition.confirm.message', @model.get('metric').name
+        yesLabel: t 'delete'
+        noLabel: t 'cancel'
         yesHandler: =>
           @showSpinner()
           @model.delete().done =>
index 24fbf33f65793c2a481e1f2ee236435257bec799..5575f63b1b6fdb02df0e55302f72e8c72c2915c5 100644 (file)
@@ -49,6 +49,8 @@ define [
       confirmDialog
         title: t 'quality_gates.delete'
         html: message
+        yesLabel: t 'delete'
+        noLabel: t 'cancel'
         yesHandler: =>
           @showSpinner()
           jQuery.ajax