Skip to content

Commit

Permalink
Merge pull request #1983 from Kabie/patch-1
Browse files Browse the repository at this point in the history
Model label should be pluralized with locale
  • Loading branch information
bbenezech committed Feb 4, 2016
2 parents 1ff702b + 0333946 commit ca98cbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rails_admin/config/model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def object_label
end

register_instance_option :label_plural do
(@label_plural ||= {})[::I18n.locale] ||= abstract_model.model.model_name.human(count: Float::INFINITY, default: label.pluralize)
(@label_plural ||= {})[::I18n.locale] ||= abstract_model.model.model_name.human(count: Float::INFINITY, default: label.pluralize(::I18n.locale))
end

def pluralize(count)
Expand Down

0 comments on commit ca98cbb

Please sign in to comment.