Skip to content

Commit

Permalink
Fixes #38106 - do not translate symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
m-bucher committed Dec 16, 2024
1 parent bb08909 commit e4be4c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/validators/belongs_to_host_taxonomy_validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def validate_each(record, attribute, value)

unless (attribute_taxonomy_ids & host_taxonomy_ids).any?
attribute_name = attribute.to_s.end_with?('_id') ? attribute : "#{attribute}_id"
record.errors.add(attribute_name, _("is not defined for host's %s") % _(taxonomy))
record.errors.add(attribute_name, _("is not defined for host's %s") % _(taxonomy.to_s))
end
end
end

0 comments on commit e4be4c3

Please sign in to comment.