Don't move the :parameter_not_allowed_error translation to a different scope yet.

It will make it harder to merge and deploy this PR if every translation locale file has to be updated too.
This commit is contained in:
Cillian O'Ruanaidh
2020-06-13 15:37:44 +01:00
parent bcf79ef803
commit 3abcb5b23c
3 changed files with 4 additions and 5 deletions

View File

@@ -2827,9 +2827,6 @@ See the %{link} to find out more about %{sitename}'s features and to start using
order_management:
reports:
base:
date_end_before_start_error: "must be after start"
parameter_not_allowed_error: "You are not authorized to use one or more selected filters for this report."
enterprise_fee_summaries:
filters:
date_range: "Date Range"
@@ -2839,6 +2836,8 @@ See the %{link} to find out more about %{sitename}'s features and to start using
none: "None"
select_and_search: "Select filters and click on GENERATE REPORT to access your data."
enterprise_fee_summary:
date_end_before_start_error: "must be after start"
parameter_not_allowed_error: "You are not authorized to use one or more selected filters for this report."
fee_calculated_on_transfer_through_all: "All"
fee_calculated_on_transfer_through_entire_orders: "Entire Orders through %{distributor}"
tax_category_various: "Various"

View File

@@ -10,7 +10,7 @@ module Reports
end
def self.parameter_not_allowed_error_message
i18n_scope = "order_management.reports.base"
i18n_scope = "order_management.reports.enterprise_fee_summary"
I18n.t("parameter_not_allowed_error", scope: i18n_scope)
end

View File

@@ -13,7 +13,7 @@ module Reports
end
def self.date_end_before_start_error_message
i18n_scope = "order_management.reports.base"
i18n_scope = "order_management.reports.enterprise_fee_summary"
I18n.t("date_end_before_start_error", scope: i18n_scope)
end