mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Improve delete confirmation wording details (references #2624)
This commit is contained in:
@@ -295,7 +295,7 @@ $(".change-table-columns-visibility-button").on("click", function(e)
|
||||
callback: function()
|
||||
{
|
||||
bootbox.confirm({
|
||||
message: __t("Are you sure to reset the table options?"),
|
||||
message: __t("Are you sure you want to reset the table options?"),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
cancel: {
|
||||
|
@@ -33,7 +33,7 @@ $(document).on('click', '.battery-delete-button', function(e)
|
||||
var objectId = $(e.currentTarget).attr('data-battery-id');
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to delete battery "%s"?', objectName),
|
||||
message: __t('Are you sure you want to delete battery "%s"?', objectName),
|
||||
buttons: {
|
||||
confirm: {
|
||||
label: __t('Yes'),
|
||||
|
@@ -32,7 +32,7 @@ $(document).on('click', '.chore-delete-button', function(e)
|
||||
var objectId = $(e.currentTarget).attr('data-chore-id');
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to delete chore "%s"?', objectName),
|
||||
message: __t('Are you sure you want to delete chore "%s"?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
|
@@ -119,7 +119,7 @@ $(document).on('click', '.equipment-delete-button', function(e)
|
||||
var objectId = $(e.currentTarget).attr('data-equipment-id');
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to delete equipment "%s"?', objectName),
|
||||
message: __t('Are you sure you want to delete equipment "%s"?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
|
@@ -31,7 +31,7 @@ $(document).on('click', '.location-delete-button', function(e)
|
||||
var objectId = $(e.currentTarget).attr('data-location-id');
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to delete location "%s"?', objectName),
|
||||
message: __t('Are you sure you want to delete location "%s"?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
|
@@ -32,7 +32,7 @@ $(document).on('click', '.apikey-delete-button', function(e)
|
||||
var objectId = button.attr('data-apikey-id');
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to delete API key "%s"?', objectName),
|
||||
message: __t('Are you sure you want to delete API key "%s"?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
|
@@ -761,7 +761,7 @@ $(document).on('click', '.recipe-order-missing-button', function(e)
|
||||
var servings = $(e.currentTarget).attr('data-mealplan-servings');
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to put all missing ingredients for recipe "%s" on the shopping list?', objectName),
|
||||
message: __t('Are you sure you want to put all missing ingredients for recipe "%s" on the shopping list?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
@@ -870,7 +870,7 @@ $(document).on('click', '.recipe-consume-button', function(e)
|
||||
var mealPlanEntryId = $(e.currentTarget).attr('data-mealplan-entry-id');
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to consume all ingredients needed by recipe "%s" (ingredients marked with "only check if any amount is in stock" will be ignored)?', objectName),
|
||||
message: __t('Are you sure you want to consume all ingredients needed by recipe "%s" (ingredients marked with "only check if any amount is in stock" will be ignored)?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
|
@@ -31,7 +31,7 @@ $(document).on('click', '.mealplansection-delete-button', function(e)
|
||||
var objectId = $(e.currentTarget).attr('data-mealplansection-id');
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to delete meal plan section "%s"?', objectName),
|
||||
message: __t('Are you sure you want to delete meal plan section "%s"?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
|
@@ -282,7 +282,7 @@ $(document).on('click', '.qu-conversion-delete-button', function(e)
|
||||
var objectId = $(e.currentTarget).attr('data-qu-conversion-id');
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to remove this conversion?'),
|
||||
message: __t('Are you sure you want to remove this conversion?'),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
@@ -319,7 +319,7 @@ $(document).on('click', '.barcode-delete-button', function(e)
|
||||
var objectId = $(e.currentTarget).attr('data-barcode-id');
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to remove this barcode?'),
|
||||
message: __t('Are you sure you want to remove this barcode?'),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
|
@@ -31,7 +31,7 @@ $(document).on('click', '.product-group-delete-button', function(e)
|
||||
var objectId = $(e.currentTarget).attr('data-group-id');
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to delete product group "%s"?', objectName),
|
||||
message: __t('Are you sure you want to delete product group "%s"?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
|
@@ -70,7 +70,7 @@ $(document).on('click', '.product-delete-button', function(e)
|
||||
var objectId = $(e.currentTarget).attr('data-product-id');
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to delete product "%s"?', objectName) + '<br><br>' + __t('This also removes any stock amount, the journal and all other references of this product - consider disabling it instead, if you want to keep that and just hide the product.'),
|
||||
message: __t('Are you sure you want to delete product "%s"?', objectName) + '<br><br>' + __t('This also removes any stock amount, the journal and all other references of this product - consider disabling it instead, if you want to keep that and just hide the product.'),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
|
@@ -159,7 +159,7 @@ $(document).on('click', '.qu-conversion-delete-button', function(e)
|
||||
var objectId = $(e.currentTarget).attr('data-qu-conversion-id');
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to remove this conversion?'),
|
||||
message: __t('Are you sure you want to remove this conversion?'),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
|
@@ -31,7 +31,7 @@ $(document).on('click', '.quantityunit-delete-button', function(e)
|
||||
var objectId = $(e.currentTarget).attr('data-quantityunit-id');
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to delete quantity unit "%s"?', objectName),
|
||||
message: __t('Are you sure you want to delete quantity unit "%s"?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
|
@@ -136,7 +136,7 @@ $(document).on('click', '.recipe-pos-delete-button', function(e)
|
||||
var objectId = $(e.currentTarget).attr('data-recipe-pos-id');
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to delete recipe ingredient "%s"?', objectName),
|
||||
message: __t('Are you sure you want to delete recipe ingredient "%s"?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
@@ -173,7 +173,7 @@ $(document).on('click', '.recipe-include-delete-button', function(e)
|
||||
var objectId = $(e.currentTarget).attr('data-recipe-include-id');
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to remove the included recipe "%s"?', objectName),
|
||||
message: __t('Are you sure you want to remove the included recipe "%s"?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
|
@@ -137,7 +137,7 @@ $(".recipe-delete").on('click', function(e)
|
||||
var objectId = $(e.currentTarget).attr('data-recipe-id');
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to delete recipe "%s"?', objectName),
|
||||
message: __t('Are you sure you want to delete recipe "%s"?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
@@ -192,7 +192,7 @@ $(document).on('click', '.recipe-shopping-list', function(e)
|
||||
var objectId = $(e.currentTarget).attr('data-recipe-id');
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to put all missing ingredients for recipe "%s" on the shopping list?', objectName) + "<br><br>" + __t("Uncheck ingredients to not put them on the shopping list") + ":" + $("#missing-recipe-pos-list")[0].outerHTML.replace("d-none", ""),
|
||||
message: __t('Are you sure you want to put all missing ingredients for recipe "%s" on the shopping list?', objectName) + "<br><br>" + __t("Uncheck ingredients to not put them on the shopping list") + ":" + $("#missing-recipe-pos-list")[0].outerHTML.replace("d-none", ""),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
@@ -238,7 +238,7 @@ $(".recipe-consume").on('click', function(e)
|
||||
var objectId = $(e.currentTarget).attr('data-recipe-id');
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to consume all ingredients needed by recipe "%s" (ingredients marked with "only check if any amount is in stock" will be ignored)?', objectName),
|
||||
message: __t('Are you sure you want to consume all ingredients needed by recipe "%s" (ingredients marked with "only check if any amount is in stock" will be ignored)?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
|
@@ -86,7 +86,7 @@ $("#delete-selected-shopping-list").on("click", function()
|
||||
var objectId = $("#selected-shopping-list").val();
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to delete shopping list "%s"?', objectName),
|
||||
message: __t('Are you sure you want to delete shopping list "%s"?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
@@ -183,10 +183,10 @@ $(document).on('click', '#add-overdue-expired-products', function(e)
|
||||
|
||||
$(document).on('click', '#clear-shopping-list', function(e)
|
||||
{
|
||||
var confirmMessage = __t('Are you sure to empty shopping list "%s"?', $("#selected-shopping-list option:selected").text());
|
||||
var confirmMessage = __t('Are you sure you want to empty shopping list "%s"?', $("#selected-shopping-list option:selected").text());
|
||||
if (!BoolVal(Grocy.FeatureFlags.GROCY_FEATURE_FLAG_SHOPPINGLIST_MULTIPLE_LISTS))
|
||||
{
|
||||
confirmMessage = __t('Are you sure to empty the shopping list?');
|
||||
confirmMessage = __t('Are you sure you want to empty the shopping list?');
|
||||
}
|
||||
|
||||
bootbox.confirm({
|
||||
|
@@ -31,7 +31,7 @@ $(document).on('click', '.shoppinglocation-delete-button', function(e)
|
||||
var objectId = $(e.currentTarget).attr('data-shoppinglocation-id');
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to delete store "%s"?', objectName),
|
||||
message: __t('Are you sure you want to delete store "%s"?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
|
@@ -31,7 +31,7 @@ $(document).on('click', '.task-category-delete-button', function(e)
|
||||
var objectId = $(e.currentTarget).attr('data-category-id');
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to delete task category "%s"?', objectName),
|
||||
message: __t('Are you sure you want to delete task category "%s"?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
|
@@ -138,7 +138,7 @@ $(document).on('click', '.delete-task-button', function(e)
|
||||
var objectId = $(e.currentTarget).attr('data-task-id');
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to delete task "%s"?', objectName),
|
||||
message: __t('Are you sure you want to delete task "%s"?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
|
@@ -31,7 +31,7 @@ $(document).on('click', '.userentity-delete-button', function(e)
|
||||
var objectId = $(e.currentTarget).attr('data-userentity-id');
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to delete userentity "%s"?', objectName),
|
||||
message: __t('Are you sure you want to delete userentity "%s"?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
|
@@ -45,7 +45,7 @@ $(document).on('click', '.userfield-delete-button', function(e)
|
||||
var objectId = $(e.currentTarget).attr('data-userfield-id');
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to delete user field "%s"?', objectName),
|
||||
message: __t('Are you sure you want to delete user field "%s"?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
|
@@ -30,7 +30,7 @@ $(document).on('click', '.userobject-delete-button', function(e)
|
||||
var objectId = $(e.currentTarget).attr('data-userobject-id');
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to delete this userobject?'),
|
||||
message: __t('Are you sure you want to delete this userobject?'),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
|
@@ -31,7 +31,7 @@ $(document).on('click', '.user-delete-button', function(e)
|
||||
var objectId = $(e.currentTarget).attr('data-user-id');
|
||||
|
||||
bootbox.confirm({
|
||||
message: __t('Are you sure to delete user "%s"?', objectName),
|
||||
message: __t('Are you sure you want to delete user "%s"?', objectName),
|
||||
closeButton: false,
|
||||
buttons: {
|
||||
confirm: {
|
||||
|
Reference in New Issue
Block a user