Skip to content

Commit

Permalink
Fix breadcrumb_helper plural model i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
felixbuenemann committed Oct 18, 2011
1 parent 035c0eb commit 69be6fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_admin/view_helpers/breadcrumb_helper.rb
Expand Up @@ -20,7 +20,7 @@ def breadcrumb_links(path = nil)
end
name = part.titlecase if name == ""
begin
crumbs << link_to( I18n.translate!("activerecord.models.#{part.singularize}"), "/" + parts[0..index].join('/'))
crumbs << link_to( I18n.translate!("activerecord.models.#{part.singularize}", :count => 2), "/" + parts[0..index].join('/'))
rescue I18n::MissingTranslationData
crumbs << link_to( name, "/" + parts[0..index].join('/'))
end
Expand Down

0 comments on commit 69be6fb

Please sign in to comment.