From 369b93f0dd465eb9e99e1227df3722e093f717a9 Mon Sep 17 00:00:00 2001 From: David Cook Date: Mon, 7 Apr 2025 16:33:39 +1000 Subject: [PATCH] Update tip By updating the translation key, all other locales will be notified to update their translations too. --- config/locales/en.yml | 3 +-- lib/reporting/reports/bulk_coop/base.rb | 2 +- lib/reporting/reports/enterprise_fee_summary/fee_summary.rb | 2 +- lib/reporting/reports/orders_and_fulfillment/base.rb | 2 +- lib/reporting/reports/packing/base.rb | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/config/locales/en.yml b/config/locales/en.yml index 3e02ffc334..55aeb2a19a 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -4655,8 +4655,7 @@ See the %{link} to find out more about %{sitename}'s features and to start using reports: table: select_and_search: "Select filters and click on %{option} to access your data." - customer_names_message: - customer_names_tip: "If customer names are hidden for orders you have supplied, you can contact the distributor and ask if they can update their shop preferences to allow their suppliers to view customer names." + hidden_customer_details_tip: "If customer names and/or contact details are hidden, you can ask the distributor to update their shop preferences to allow their suppliers to view customer details in reports." products_and_inventory: all_products: message: "Note that stock levels reported are from supplier product lists only. If you are using Inventory to manage your stock quantities these values will be ignored in this report." diff --git a/lib/reporting/reports/bulk_coop/base.rb b/lib/reporting/reports/bulk_coop/base.rb index bd6b3d03e7..4ebfefdc2d 100644 --- a/lib/reporting/reports/bulk_coop/base.rb +++ b/lib/reporting/reports/bulk_coop/base.rb @@ -5,7 +5,7 @@ module Reporting module BulkCoop class Base < ReportTemplate def message - I18n.t("spree.admin.reports.customer_names_message.customer_names_tip") + I18n.t("spree.admin.reports.hidden_customer_details_tip") end def search diff --git a/lib/reporting/reports/enterprise_fee_summary/fee_summary.rb b/lib/reporting/reports/enterprise_fee_summary/fee_summary.rb index 61679e445e..08447fdb85 100644 --- a/lib/reporting/reports/enterprise_fee_summary/fee_summary.rb +++ b/lib/reporting/reports/enterprise_fee_summary/fee_summary.rb @@ -23,7 +23,7 @@ module Reporting end def message - I18n.t("spree.admin.reports.customer_names_message.customer_names_tip") + I18n.t("spree.admin.reports.hidden_customer_details_tip") end def query_result diff --git a/lib/reporting/reports/orders_and_fulfillment/base.rb b/lib/reporting/reports/orders_and_fulfillment/base.rb index 0aa6ff3128..f3a9052610 100644 --- a/lib/reporting/reports/orders_and_fulfillment/base.rb +++ b/lib/reporting/reports/orders_and_fulfillment/base.rb @@ -5,7 +5,7 @@ module Reporting module OrdersAndFulfillment class Base < ReportTemplate def message - I18n.t("spree.admin.reports.customer_names_message.customer_names_tip") + I18n.t("spree.admin.reports.hidden_customer_details_tip") end def default_params diff --git a/lib/reporting/reports/packing/base.rb b/lib/reporting/reports/packing/base.rb index a063a84a21..93105ec0be 100644 --- a/lib/reporting/reports/packing/base.rb +++ b/lib/reporting/reports/packing/base.rb @@ -5,7 +5,7 @@ module Reporting module Packing class Base < ReportQueryTemplate def message - I18n.t("spree.admin.reports.customer_names_message.customer_names_tip") + I18n.t("spree.admin.reports.hidden_customer_details_tip") end def report_query