From 97b93f23bdfc31b3d423e73925e6511893c6f2a2 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Thu, 31 Dec 2020 13:09:55 +0100 Subject: [PATCH] Fixed/unified shopping list item button tooltips (fixes #1239) --- localization/strings.pot | 2 +- views/shoppinglist.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/localization/strings.pot b/localization/strings.pot index 55139c2d..702ace96 100644 --- a/localization/strings.pot +++ b/localization/strings.pot @@ -832,7 +832,7 @@ msgstr "" msgid "Add all list items to stock" msgstr "" -msgid "Add %1$s of %2$s to stock" +msgid "Add this item to stock" msgstr "" msgid "Adding shopping list item %1$s of %2$s" diff --git a/views/shoppinglist.blade.php b/views/shoppinglist.blade.php index 9f881c15..d9b497a5 100644 --- a/views/shoppinglist.blade.php +++ b/views/shoppinglist.blade.php @@ -209,7 +209,7 @@ product_id)) data-toggle="tooltip" title="{{ $__t('Add %1$s of %2$s to stock', $listItem->amount . ' ' . $__n($listItem->amount, $listItem->qu_name, $listItem->qu_name_plural), $listItem->product_name, $listItem->amount) }}" @endif> + @if(!empty($listItem->product_id)) data-toggle="tooltip" title="{{ $__t('Add this item to stock') }}" @endif>