From f65ce82778312dc408c1e8a1c84db74bada5ded4 Mon Sep 17 00:00:00 2001 From: kkoomin Date: Sat, 4 May 2019 14:40:45 +0100 Subject: [PATCH] changed string into translation key & add 'infinity' key --- .../admin/variants/_form/on_demand_script.html.haml.deface | 2 +- config/locales/en.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/overrides/spree/admin/variants/_form/on_demand_script.html.haml.deface b/app/overrides/spree/admin/variants/_form/on_demand_script.html.haml.deface index fe3448e332..b90731813b 100644 --- a/app/overrides/spree/admin/variants/_form/on_demand_script.html.haml.deface +++ b/app/overrides/spree/admin/variants/_form/on_demand_script.html.haml.deface @@ -14,7 +14,7 @@ on_hand.attr('disabled', on_demand_checked); if(on_demand_checked) { on_hand.attr('data-stock', on_hand.val()); - on_hand.val("Infinity"); + on_hand.val(t('admin.products.variants.infinity')); } } diff --git a/config/locales/en.yml b/config/locales/en.yml index c8d4e186e8..a6609f2f5a 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -467,6 +467,7 @@ en: property_name: Property Name inherited_property: Inherited Property variants: + infinity: "Infinity" to_order_tip: "Items made to order do not have a set stock level, such as loaves of bread made fresh to order." group_buy_options: "Group Buy Options" back_to_products_list: "Back to products list"