From 5ebee9cd5f5c5fc621bcf9d5360c08b4ca3c8732 Mon Sep 17 00:00:00 2001 From: Thierry Jet Date: Tue, 26 Oct 2021 19:36:27 +0200 Subject: [PATCH] Translation stuff ready for Close button. Add close: key scoped spree.admin.date_picker in en.yml --- app/assets/javascripts/admin/util.js.erb | 4 ++-- app/views/spree/admin/shared/_translations.html.erb | 1 + config/locales/en.yml | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/admin/util.js.erb b/app/assets/javascripts/admin/util.js.erb index 8157219f8a..f06a5866d9 100644 --- a/app/assets/javascripts/admin/util.js.erb +++ b/app/assets/javascripts/admin/util.js.erb @@ -29,7 +29,7 @@ $(document).ready(function() { label: Spree.translations.today }, { - label: "CLOSE" + label: Spree.translations.close } ], label: "or", @@ -54,7 +54,7 @@ $(document).ready(function() { label: Spree.translations.now }, { - label: "CLOSE" + label: Spree.translations.close } ], label: "or", diff --git a/app/views/spree/admin/shared/_translations.html.erb b/app/views/spree/admin/shared/_translations.html.erb index ae1c510129..97eae43d00 100644 --- a/app/views/spree/admin/shared/_translations.html.erb +++ b/app/views/spree/admin/shared/_translations.html.erb @@ -8,6 +8,7 @@ :default => 'Y-m-d H:i'), :today => Spree.t('date_picker.today'), :now => Spree.t('date_picker.now'), + :close => Spree.t('date_picker.close'), :add => I18n.t(:add, scope: :actions), :are_you_sure_delete => Spree.t(:are_you_sure_delete), :bill_address => I18n.t(:bill_address), diff --git a/config/locales/en.yml b/config/locales/en.yml index f68aaf3ee2..21827e0a70 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -3867,6 +3867,7 @@ See the %{link} to find out more about %{sitename}'s features and to start using flatpickr_datetime_format: "Y-m-d H:i" today: "Today" now: "Now" + close: "Close" orders: error_flash_for_unavailable_items: "An item in your cart has become unavailable. Please update the selected quantities." edit: