From 43effb8197c5883d29d2cd75ddd139e3170f8b04 Mon Sep 17 00:00:00 2001 From: drummer83 Date: Tue, 12 Dec 2023 01:15:23 +0100 Subject: [PATCH] Fix missing translation of tooltip --- app/views/spree/admin/overview/_products.html.haml | 2 +- config/locales/en.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/spree/admin/overview/_products.html.haml b/app/views/spree/admin/overview/_products.html.haml index c33c34c2f6..c1e3aa1d11 100644 --- a/app/views/spree/admin/overview/_products.html.haml +++ b/app/views/spree/admin/overview/_products.html.haml @@ -6,7 +6,7 @@ %a.six.columns.omega.icon-plus.button.blue{ href: "#{new_admin_product_path}" } = t "spree_admin_enterprises_create_new" - else - %a{ "ofn-with-tip" => "The products that you sell through the Open Food Network." } + %a{ "ofn-with-tip" => t(".products_tip") } = t "admin.whats_this" %div.sixteen.columns.alpha.list - if @product_count > 0 diff --git a/config/locales/en.yml b/config/locales/en.yml index 05ee256012..cedfdfa5c9 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -4188,6 +4188,7 @@ See the %{link} to find out more about %{sitename}'s features and to start using has_no_payment_methods: "has no payment methods" has_no_shipping_methods: "has no shipping methods" products: + products_tip: "The products that you sell through the Open Food Network." active_products: zero: "You don't have any active products." one: "You have one active product"