Skip to content

Commit

Permalink
Dashboard Section title are now translated if translation present
Browse files Browse the repository at this point in the history
	modified:   lib/active_admin/views/dashboard_section_renderer.rb
  • Loading branch information
5minpause committed May 8, 2012
1 parent b162ed9 commit 4362b7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/active_admin/views/dashboard_section_renderer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ def build(section)
protected

def title
@section.name.to_s.titleize
translated_name = I18n.t("active_admin.dashboard_sections.#{@section.name}", :default => @section.name)
translated_name.to_s.titleize
end

end
Expand Down

0 comments on commit 4362b7d

Please sign in to comment.