From 9bc41cf04f9f598261e71535a3d5ef63cf6de306 Mon Sep 17 00:00:00 2001 From: Guido Oliveira Date: Wed, 7 Jul 2021 14:39:10 -0300 Subject: [PATCH] Add translations to shopfront sorting placeholders --- app/views/admin/enterprises/form/_shop_preferences.html.haml | 4 ++-- config/locales/en.yml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/admin/enterprises/form/_shop_preferences.html.haml b/app/views/admin/enterprises/form/_shop_preferences.html.haml index 75be67e194..527c85db1b 100644 --- a/app/views/admin/enterprises/form/_shop_preferences.html.haml +++ b/app/views/admin/enterprises/form/_shop_preferences.html.haml @@ -24,7 +24,7 @@ = label :enterprise, :preferred_shopfront_product_sorting_method_by_category, t('.shopfront_sort_by_category') .eight.columns.omega %textarea.fullwidth{ id: 'enterprise_preferred_shopfront_taxon_order', name: 'enterprise[preferred_shopfront_taxon_order]', rows: 6, - 'ofn-taxon-autocomplete' => '', 'multiple-selection' => 'true', placeholder: 'Category', + 'ofn-taxon-autocomplete' => '', 'multiple-selection' => 'true', placeholder: t('.shopfront_sort_by_category_placeholder'), ng: { model: 'Enterprise.preferred_shopfront_taxon_order', readonly: "Enterprise.preferred_shopfront_product_sorting_method != 'by_category'" }} .row .three.columns.alpha @@ -32,7 +32,7 @@ = label :enterprise, :preferred_shopfront_product_sorting_method_by_producer, t('.shopfront_sort_by_producer') .eight.columns.omega %textarea.fullwidth{ id: 'enterprise_preferred_shopfront_producer_order', name: 'enterprise[preferred_shopfront_producer_order]', rows: 6, - 'ofn-producer-autocomplete' => '', 'multiple-selection' => 'true', placeholder: 'Producer', + 'ofn-producer-autocomplete' => '', 'multiple-selection' => 'true', placeholder: t('.shopfront_sort_by_producer_placeholder'), ng: { model: 'Enterprise.preferred_shopfront_producer_order', readonly: "Enterprise.preferred_shopfront_product_sorting_method != 'by_producer'" }} .row diff --git a/config/locales/en.yml b/config/locales/en.yml index 9ed374885c..84140e72bc 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -879,6 +879,8 @@ en: display_ordering_in_shopfront: "Display ordering in shopfront:" shopfront_sort_by_category: "By category" shopfront_sort_by_producer: "By producer" + shopfront_sort_by_category_placeholder: "Category" + shopfront_sort_by_producer_placeholder: "Producer" social: twitter_placeholder: "eg. @the_prof" instagram_placeholder: "eg. the_prof"