gregbell/active_admin — pull request #1484 by jpmckinney (2012-07-07 19:29:58+00:00)
Title: Let i18n decide how to capitalize words

In some cases ([here](https://github.com/gregbell/active_admin/blob/master/lib/active_admin/views/dashboard_section_renderer.rb#L14) and [here](https://github.com/gregbell/active_admin/blob/master/lib/active_admin/views/pages/layout.rb#L10)), `titleize` is only called if the I18n lookup fails. In other cases, however, it calls `titleize` no matter what. This is not ideal, because if I translate an attribute in my locale file as "Date de début", I want it to be displayed that way. I don't want ActiveAdmin to render it as "Date De Début," which is not the proper capitalization. This pull request fixes those parts of the code that call `titleize` even when the I18n lookup succeeds.