Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id AC2B2E00C76; Thu, 25 Feb 2016 02:34:02 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 778DAE00C67 for ; Thu, 25 Feb 2016 02:33:58 -0800 (PST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP; 25 Feb 2016 02:33:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,498,1449561600"; d="scan'208";a="894400927" Received: from unknown (HELO bbarrosp-mac03.local.com) ([10.252.4.209]) by orsmga001.jf.intel.com with ESMTP; 25 Feb 2016 02:33:57 -0800 From: Belen Barros Pena To: toaster@yoctoproject.org Date: Thu, 25 Feb 2016 11:33:32 +0100 Message-Id: <1456396412-34574-2-git-send-email-belen.barros.pena@linux.intel.com> X-Mailer: git-send-email 2.5.4 (Apple Git-61) In-Reply-To: <1456396412-34574-1-git-send-email-belen.barros.pena@linux.intel.com> References: <1456396412-34574-1-git-send-email-belen.barros.pena@linux.intel.com> Subject: [PATCH 2/2] toaster: change 'delete layer' to 'remove layer' X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Feb 2016 10:34:02 -0000 From: Belen Barros Pena I have received quite a few complaints about the use of the word 'delete' for layer removal, so change it to 'remove'. That also matches the language we use for packages in image customisation. [YOCTO #9165] Signed-off-by: Belen Barros Pena --- bitbake/lib/toaster/toastergui/static/js/layerBtn.js | 2 +- bitbake/lib/toaster/toastergui/static/js/layerdetails.js | 2 +- bitbake/lib/toaster/toastergui/static/js/libtoaster.js | 2 +- bitbake/lib/toaster/toastergui/static/js/projectpage.js | 6 +++--- bitbake/lib/toaster/toastergui/tables.py | 4 ++-- bitbake/lib/toaster/toastergui/templates/layer_btn.html | 2 +- bitbake/lib/toaster/toastergui/templates/layerdetails.html | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/static/js/layerBtn.js b/bitbake/lib/toaster/toastergui/static/js/layerBtn.js index 7318b3f..b2666ab 100644 --- a/bitbake/lib/toaster/toastergui/static/js/layerBtn.js +++ b/bitbake/lib/toaster/toastergui/static/js/layerBtn.js @@ -42,7 +42,7 @@ function layerBtnsInit() { }); }); } else { - notification.text("1 layer deleted"); + notification.text("1 layer removed"); /* Deleting a layer we only hanlde the one button */ thisBtn.fadeOut(function(){ notification.fadeIn().delay(500).fadeOut(function(){ diff --git a/bitbake/lib/toaster/toastergui/static/js/layerdetails.js b/bitbake/lib/toaster/toastergui/static/js/layerdetails.js index 663b3c6..d545406 100644 --- a/bitbake/lib/toaster/toastergui/static/js/layerdetails.js +++ b/bitbake/lib/toaster/toastergui/static/js/layerdetails.js @@ -243,7 +243,7 @@ function layerDetailsPageInit (ctx) { $(".select-machine-btn").removeAttr("disabled"); addRmLayerBtn.addClass("btn-danger"); addRmLayerBtn.data('directive', "remove"); - addRmLayerBtn.text(" Delete the "+ctx.layerVersion.name+" layer from your project"); + addRmLayerBtn.text(" Remove the "+ctx.layerVersion.name+" layer from your project"); addRmLayerBtn.prepend(""); } else { diff --git a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js index a3858ec..b6b49b6 100644 --- a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js +++ b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js @@ -316,7 +316,7 @@ var libtoaster = (function (){ } else if (layerDepsList.length === 0 && add === true) { alertMsg = $("You have added 1 layer to your project: "); } else if (add === false) { - alertMsg = $("You have deleted 1 layer from your project: "); + alertMsg = $("You have removed 1 layer from your project: "); } alertMsg.children("#layer-affected-name").text(layer.name); diff --git a/bitbake/lib/toaster/toastergui/static/js/projectpage.js b/bitbake/lib/toaster/toastergui/static/js/projectpage.js index 0666bde..292ceb7 100644 --- a/bitbake/lib/toaster/toastergui/static/js/projectpage.js +++ b/bitbake/lib/toaster/toastergui/static/js/projectpage.js @@ -1,4 +1,4 @@ -"use strict"; + function projectPageInit(ctx) { @@ -145,7 +145,7 @@ function projectPageInit(ctx) { for (var i in layers){ var layerObj = layers[i]; - var projectLayer = $("
  • "); + var projectLayer = $("
  • "); projectLayer.data('layer', layerObj); projectLayer.children("span").tooltip(); @@ -393,7 +393,7 @@ function projectPageInit(ctx) { /* Layers removed */ if (layersToRm && layersToRm.length > 0){ if (layersToRm.length == 1) - li = '
  • 1 layer deleted: '+layersToRm[0].name+'
  • '; + li = '
  • 1 layer removed: '+layersToRm[0].name+'
  • '; else li = '
  • '+layersToRm.length+' layers deleted: '+layersDelList+'
  • '; diff --git a/bitbake/lib/toaster/toastergui/tables.py b/bitbake/lib/toaster/toastergui/tables.py index 9115309..71892e2 100644 --- a/bitbake/lib/toaster/toastergui/tables.py +++ b/bitbake/lib/toaster/toastergui/tables.py @@ -183,8 +183,8 @@ class LayersTable(ToasterTable): static_data_name="dependencies", static_data_template=deps_template) - self.add_column(title="Add | Delete", - help_text="Add or delete layers to / from your project", + self.add_column(title="Add | Remove", + help_text="Add or remove layers to / from your project", hideable=False, filter_name="in_current_project", static_data_name="add-del-layers", diff --git a/bitbake/lib/toaster/toastergui/templates/layer_btn.html b/bitbake/lib/toaster/toastergui/templates/layer_btn.html index 314eec7..10de37d 100644 --- a/bitbake/lib/toaster/toastergui/templates/layer_btn.html +++ b/bitbake/lib/toaster/toastergui/templates/layer_btn.html @@ -4,7 +4,7 @@ {% endif %} > - Delete layer + Remove layer {% endif %} -- 2.5.4 (Apple Git-61)