Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1332 from Pepan/master

dashboard section with localization
  • Loading branch information...
commit c7ca5636df7602c18facab3c388e665bf204f445 2 parents b449ae5 + e1cfe1a
@gregbell gregbell authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/active_admin/views/dashboard_section_renderer.rb
View
6 lib/active_admin/views/dashboard_section_renderer.rb
@@ -11,7 +11,11 @@ def build(section)
protected
def title
- @section.name.to_s.titleize
+ begin
+ I18n.t!("active_admin.sections.#{@section.name.to_s}")
+ rescue I18n::MissingTranslationData
+ @section.name.to_s.titleize
+ end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.