mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-31 21:37:16 +00:00
Use translation for none in reports
This commit is contained in:
@@ -1760,6 +1760,7 @@ en:
|
||||
email_confirmation: "Email confirmation is pending. We've sent a confirmation email to %{email}."
|
||||
not_visible: "%{enterprise} is not visible and so cannot be found on the map or in searches"
|
||||
reports:
|
||||
none: none
|
||||
deprecated: "This report is deprecated and will be removed in a future release."
|
||||
hidden: HIDDEN
|
||||
unitsize: UNITSIZE
|
||||
|
||||
@@ -79,7 +79,7 @@ module Reporting
|
||||
|
||||
# rubocop:disable Metrics/CyclomaticComplexity
|
||||
def format_cell(value, column = nil)
|
||||
return "none" if value.nil?
|
||||
return I18n.t("admin.reports.none") if value.nil?
|
||||
|
||||
# Currency
|
||||
if report.columns_format[column] == :currency
|
||||
|
||||
Reference in New Issue
Block a user