Permalink
Browse files

Merge pull request #1517 from tonissimo/patch-2

Model plural label fix: Count must be 'other' to apply :other key with every locale. 
  • Loading branch information...
2 parents 359f0b6 + c01c87b commit 026a1458be1cca66e157dd19cb50c5c23bedd2ac @bbenezech bbenezech committed Feb 13, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rails_admin/config/model.rb
@@ -60,7 +60,7 @@ def object_label
end
register_instance_option :label_plural do
- (@label_plural ||= {})[::I18n.locale] ||= abstract_model.model.model_name.human(:count => 2, :default => label.pluralize)
+ (@label_plural ||= {})[::I18n.locale] ||= abstract_model.model.model_name.human(:count => 'other', :default => label.pluralize)
end
def pluralize(count)

0 comments on commit 026a145

Please sign in to comment.