Skip to content

Commit 5f26e91

Browse files
committed
Improve delete confirmation wording details (references grocy#2624)
1 parent b2aa882 commit 5f26e91

24 files changed

+56
-56
lines changed

localization/strings.pot

+26-26
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ msgstr ""
270270
msgid "Invalid credentials, please try again"
271271
msgstr ""
272272

273-
msgid "Are you sure to delete battery \"%s\"?"
273+
msgid "Are you sure you want to delete battery \"%s\"?"
274274
msgstr ""
275275

276276
msgid "Yes"
@@ -279,7 +279,7 @@ msgstr ""
279279
msgid "No"
280280
msgstr ""
281281

282-
msgid "Are you sure to delete chore \"%s\"?"
282+
msgid "Are you sure you want to delete chore \"%s\"?"
283283
msgstr ""
284284

285285
msgid "\"%s\" could not be resolved to a product, how do you want to proceed?"
@@ -300,16 +300,16 @@ msgstr ""
300300
msgid "Add as new product and prefill barcode"
301301
msgstr ""
302302

303-
msgid "Are you sure to delete quantity unit \"%s\"?"
303+
msgid "Are you sure you want to delete quantity unit \"%s\"?"
304304
msgstr ""
305305

306-
msgid "Are you sure to delete product \"%s\"?"
306+
msgid "Are you sure you want to delete product \"%s\"?"
307307
msgstr ""
308308

309-
msgid "Are you sure to delete location \"%s\"?"
309+
msgid "Are you sure you want to delete location \"%s\"?"
310310
msgstr ""
311311

312-
msgid "Are you sure to delete store \"%s\"?"
312+
msgid "Are you sure you want to delete store \"%s\"?"
313313
msgstr ""
314314

315315
msgid "Manage API keys"
@@ -426,13 +426,13 @@ msgstr ""
426426
msgid "Edit recipe ingredient"
427427
msgstr ""
428428

429-
msgid "Are you sure to delete recipe \"%s\"?"
429+
msgid "Are you sure you want to delete recipe \"%s\"?"
430430
msgstr ""
431431

432-
msgid "Are you sure to delete recipe ingredient \"%s\"?"
432+
msgid "Are you sure you want to delete recipe ingredient \"%s\"?"
433433
msgstr ""
434434

435-
msgid "Are you sure to empty shopping list \"%s\"?"
435+
msgid "Are you sure you want to empty shopping list \"%s\"?"
436436
msgstr ""
437437

438438
msgid "Clear list"
@@ -473,7 +473,7 @@ msgstr ""
473473
msgid "Put missing amount on shopping list"
474474
msgstr ""
475475

476-
msgid "Are you sure to put all missing ingredients for recipe \"%s\" on the shopping list?"
476+
msgid "Are you sure you want to put all missing ingredients for recipe \"%s\" on the shopping list?"
477477
msgstr ""
478478

479479
msgid "Added for recipe %s"
@@ -488,7 +488,7 @@ msgstr ""
488488
msgid "Users"
489489
msgstr ""
490490

491-
msgid "Are you sure to delete user \"%s\"?"
491+
msgid "Are you sure you want to delete user \"%s\"?"
492492
msgstr ""
493493

494494
msgid "Create user"
@@ -582,7 +582,7 @@ msgstr ""
582582
msgid "Only check if any amount is in stock"
583583
msgstr ""
584584

585-
msgid "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)?"
585+
msgid "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)?"
586586
msgstr ""
587587

588588
msgid "Removed all ingredients of recipe \"%s\" from stock"
@@ -636,7 +636,7 @@ msgstr ""
636636
msgid "Edit task"
637637
msgstr ""
638638

639-
msgid "Are you sure to delete task \"%s\"?"
639+
msgid "Are you sure you want to delete task \"%s\"?"
640640
msgstr ""
641641

642642
msgid "%s task is due to be done"
@@ -670,7 +670,7 @@ msgstr ""
670670
msgid "Product group"
671671
msgstr ""
672672

673-
msgid "Are you sure to delete product group \"%s\"?"
673+
msgid "Are you sure you want to delete product group \"%s\"?"
674674
msgstr ""
675675

676676
msgid "Stay logged in permanently"
@@ -976,7 +976,7 @@ msgstr ""
976976
msgid "Create shopping list"
977977
msgstr ""
978978

979-
msgid "Are you sure to delete shopping list \"%s\"?"
979+
msgid "Are you sure you want to delete shopping list \"%s\"?"
980980
msgstr ""
981981

982982
msgid "Average shelf life"
@@ -1169,7 +1169,7 @@ msgstr ""
11691169
msgid "Time of printing"
11701170
msgstr ""
11711171

1172-
msgid "Are you sure to delete equipment \"%s\"?"
1172+
msgid "Are you sure you want to delete equipment \"%s\"?"
11731173
msgstr ""
11741174

11751175
msgid "Parent product"
@@ -1281,7 +1281,7 @@ msgstr ""
12811281
msgid "Consume product on chore execution"
12821282
msgstr ""
12831283

1284-
msgid "Are you sure to delete user field \"%s\"?"
1284+
msgid "Are you sure you want to delete user field \"%s\"?"
12851285
msgstr ""
12861286

12871287
msgid "Userentities"
@@ -1302,7 +1302,7 @@ msgstr ""
13021302
msgid "Create %s"
13031303
msgstr ""
13041304

1305-
msgid "Are you sure to delete this userobject?"
1305+
msgid "Are you sure you want to delete this userobject?"
13061306
msgstr ""
13071307

13081308
msgid "Icon CSS class"
@@ -1386,7 +1386,7 @@ msgstr ""
13861386
msgid "If enabled, the min. stock amount of sub products will be accumulated into this product, means the sub product will never be missing, only this product"
13871387
msgstr ""
13881388

1389-
msgid "Are you sure to remove this conversion?"
1389+
msgid "Are you sure you want to remove this conversion?"
13901390
msgstr ""
13911391

13921392
msgid "Unit price"
@@ -1404,7 +1404,7 @@ msgstr ""
14041404
msgid "Clear"
14051405
msgstr ""
14061406

1407-
msgid "Are you sure to remove the included recipe \"%s\"?"
1407+
msgid "Are you sure you want to remove the included recipe \"%s\"?"
14081408
msgstr ""
14091409

14101410
msgid "Period interval"
@@ -1478,7 +1478,7 @@ msgstr ""
14781478
msgid "Booking does not exist or was already undone"
14791479
msgstr ""
14801480

1481-
msgid "Are you sure to delete API key \"%s\"?"
1481+
msgid "Are you sure you want to delete API key \"%s\"?"
14821482
msgstr ""
14831483

14841484
msgid "Add note"
@@ -1529,7 +1529,7 @@ msgstr ""
15291529
msgid "Frozen"
15301530
msgstr ""
15311531

1532-
msgid "Are you sure to delete userentity \"%s\"?"
1532+
msgid "Are you sure you want to delete userentity \"%s\"?"
15331533
msgstr ""
15341534

15351535
msgid "Shopping list settings"
@@ -1799,7 +1799,7 @@ msgstr ""
17991799
msgid "Copy"
18001800
msgstr ""
18011801

1802-
msgid "Are you sure to remove this barcode?"
1802+
msgid "Are you sure you want to remove this barcode?"
18031803
msgstr ""
18041804

18051805
msgid "Due date type"
@@ -1935,7 +1935,7 @@ msgstr ""
19351935
msgid "Reset"
19361936
msgstr ""
19371937

1938-
msgid "Are you sure to reset the table options?"
1938+
msgid "Are you sure you want to reset the table options?"
19391939
msgstr ""
19401940

19411941
msgid "Hide/view columns"
@@ -2159,13 +2159,13 @@ msgstr ""
21592159
msgid "Edit meal plan section"
21602160
msgstr ""
21612161

2162-
msgid "Are you sure to delete meal plan section \"%s\"?"
2162+
msgid "Are you sure you want to delete meal plan section \"%s\"?"
21632163
msgstr ""
21642164

21652165
msgid "Section"
21662166
msgstr ""
21672167

2168-
msgid "Are you sure to empty the shopping list?"
2168+
msgid "Are you sure you want to empty the shopping list?"
21692169
msgstr ""
21702170

21712171
msgid "This is the default which will be prefilled on purchase"

public/js/grocy_datatables.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ $(".change-table-columns-visibility-button").on("click", function(e)
295295
callback: function()
296296
{
297297
bootbox.confirm({
298-
message: __t("Are you sure to reset the table options?"),
298+
message: __t("Are you sure you want to reset the table options?"),
299299
closeButton: false,
300300
buttons: {
301301
cancel: {

public/viewjs/batteries.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ $(document).on('click', '.battery-delete-button', function(e)
3333
var objectId = $(e.currentTarget).attr('data-battery-id');
3434

3535
bootbox.confirm({
36-
message: __t('Are you sure to delete battery "%s"?', objectName),
36+
message: __t('Are you sure you want to delete battery "%s"?', objectName),
3737
buttons: {
3838
confirm: {
3939
label: __t('Yes'),

public/viewjs/chores.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ $(document).on('click', '.chore-delete-button', function(e)
3232
var objectId = $(e.currentTarget).attr('data-chore-id');
3333

3434
bootbox.confirm({
35-
message: __t('Are you sure to delete chore "%s"?', objectName),
35+
message: __t('Are you sure you want to delete chore "%s"?', objectName),
3636
closeButton: false,
3737
buttons: {
3838
confirm: {

public/viewjs/equipment.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ $(document).on('click', '.equipment-delete-button', function(e)
119119
var objectId = $(e.currentTarget).attr('data-equipment-id');
120120

121121
bootbox.confirm({
122-
message: __t('Are you sure to delete equipment "%s"?', objectName),
122+
message: __t('Are you sure you want to delete equipment "%s"?', objectName),
123123
closeButton: false,
124124
buttons: {
125125
confirm: {

public/viewjs/locations.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ $(document).on('click', '.location-delete-button', function(e)
3131
var objectId = $(e.currentTarget).attr('data-location-id');
3232

3333
bootbox.confirm({
34-
message: __t('Are you sure to delete location "%s"?', objectName),
34+
message: __t('Are you sure you want to delete location "%s"?', objectName),
3535
closeButton: false,
3636
buttons: {
3737
confirm: {

public/viewjs/manageapikeys.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ $(document).on('click', '.apikey-delete-button', function(e)
3232
var objectId = button.attr('data-apikey-id');
3333

3434
bootbox.confirm({
35-
message: __t('Are you sure to delete API key "%s"?', objectName),
35+
message: __t('Are you sure you want to delete API key "%s"?', objectName),
3636
closeButton: false,
3737
buttons: {
3838
confirm: {

public/viewjs/mealplan.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ $(document).on('click', '.recipe-order-missing-button', function(e)
761761
var servings = $(e.currentTarget).attr('data-mealplan-servings');
762762

763763
bootbox.confirm({
764-
message: __t('Are you sure to put all missing ingredients for recipe "%s" on the shopping list?', objectName),
764+
message: __t('Are you sure you want to put all missing ingredients for recipe "%s" on the shopping list?', objectName),
765765
closeButton: false,
766766
buttons: {
767767
confirm: {
@@ -870,7 +870,7 @@ $(document).on('click', '.recipe-consume-button', function(e)
870870
var mealPlanEntryId = $(e.currentTarget).attr('data-mealplan-entry-id');
871871

872872
bootbox.confirm({
873-
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),
873+
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),
874874
closeButton: false,
875875
buttons: {
876876
confirm: {

public/viewjs/mealplansections.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ $(document).on('click', '.mealplansection-delete-button', function(e)
3131
var objectId = $(e.currentTarget).attr('data-mealplansection-id');
3232

3333
bootbox.confirm({
34-
message: __t('Are you sure to delete meal plan section "%s"?', objectName),
34+
message: __t('Are you sure you want to delete meal plan section "%s"?', objectName),
3535
closeButton: false,
3636
buttons: {
3737
confirm: {

public/viewjs/productform.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ $(document).on('click', '.qu-conversion-delete-button', function(e)
282282
var objectId = $(e.currentTarget).attr('data-qu-conversion-id');
283283

284284
bootbox.confirm({
285-
message: __t('Are you sure to remove this conversion?'),
285+
message: __t('Are you sure you want to remove this conversion?'),
286286
closeButton: false,
287287
buttons: {
288288
confirm: {
@@ -319,7 +319,7 @@ $(document).on('click', '.barcode-delete-button', function(e)
319319
var objectId = $(e.currentTarget).attr('data-barcode-id');
320320

321321
bootbox.confirm({
322-
message: __t('Are you sure to remove this barcode?'),
322+
message: __t('Are you sure you want to remove this barcode?'),
323323
closeButton: false,
324324
buttons: {
325325
confirm: {

public/viewjs/productgroups.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ $(document).on('click', '.product-group-delete-button', function(e)
3131
var objectId = $(e.currentTarget).attr('data-group-id');
3232

3333
bootbox.confirm({
34-
message: __t('Are you sure to delete product group "%s"?', objectName),
34+
message: __t('Are you sure you want to delete product group "%s"?', objectName),
3535
closeButton: false,
3636
buttons: {
3737
confirm: {

public/viewjs/products.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ $(document).on('click', '.product-delete-button', function(e)
7070
var objectId = $(e.currentTarget).attr('data-product-id');
7171

7272
bootbox.confirm({
73-
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.'),
73+
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.'),
7474
closeButton: false,
7575
buttons: {
7676
confirm: {

public/viewjs/quantityunitform.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ $(document).on('click', '.qu-conversion-delete-button', function(e)
159159
var objectId = $(e.currentTarget).attr('data-qu-conversion-id');
160160

161161
bootbox.confirm({
162-
message: __t('Are you sure to remove this conversion?'),
162+
message: __t('Are you sure you want to remove this conversion?'),
163163
closeButton: false,
164164
buttons: {
165165
confirm: {

public/viewjs/quantityunits.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ $(document).on('click', '.quantityunit-delete-button', function(e)
3131
var objectId = $(e.currentTarget).attr('data-quantityunit-id');
3232

3333
bootbox.confirm({
34-
message: __t('Are you sure to delete quantity unit "%s"?', objectName),
34+
message: __t('Are you sure you want to delete quantity unit "%s"?', objectName),
3535
closeButton: false,
3636
buttons: {
3737
confirm: {

public/viewjs/recipeform.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ $(document).on('click', '.recipe-pos-delete-button', function(e)
136136
var objectId = $(e.currentTarget).attr('data-recipe-pos-id');
137137

138138
bootbox.confirm({
139-
message: __t('Are you sure to delete recipe ingredient "%s"?', objectName),
139+
message: __t('Are you sure you want to delete recipe ingredient "%s"?', objectName),
140140
closeButton: false,
141141
buttons: {
142142
confirm: {
@@ -173,7 +173,7 @@ $(document).on('click', '.recipe-include-delete-button', function(e)
173173
var objectId = $(e.currentTarget).attr('data-recipe-include-id');
174174

175175
bootbox.confirm({
176-
message: __t('Are you sure to remove the included recipe "%s"?', objectName),
176+
message: __t('Are you sure you want to remove the included recipe "%s"?', objectName),
177177
closeButton: false,
178178
buttons: {
179179
confirm: {

public/viewjs/recipes.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ $(".recipe-delete").on('click', function(e)
137137
var objectId = $(e.currentTarget).attr('data-recipe-id');
138138

139139
bootbox.confirm({
140-
message: __t('Are you sure to delete recipe "%s"?', objectName),
140+
message: __t('Are you sure you want to delete recipe "%s"?', objectName),
141141
closeButton: false,
142142
buttons: {
143143
confirm: {
@@ -192,7 +192,7 @@ $(document).on('click', '.recipe-shopping-list', function(e)
192192
var objectId = $(e.currentTarget).attr('data-recipe-id');
193193

194194
bootbox.confirm({
195-
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", ""),
195+
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", ""),
196196
closeButton: false,
197197
buttons: {
198198
confirm: {
@@ -238,7 +238,7 @@ $(".recipe-consume").on('click', function(e)
238238
var objectId = $(e.currentTarget).attr('data-recipe-id');
239239

240240
bootbox.confirm({
241-
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),
241+
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),
242242
closeButton: false,
243243
buttons: {
244244
confirm: {

0 commit comments

Comments
 (0)