gregbell/active_admin — pull request #917 by Pepan (2012-01-18 15:03:30+00:00)
Title: repair of class name from resource without I18n transation

Hallo.
I had a problem to get translated menu and title of page for my Models. I found solution here: #434 (iain)
but running web writes out some strange errors with my native language. Some thing like ...UživatelControler...

After long code crawling i found problem.
----------------------------------------------------------
There was used methods **resource_name** and **plural_resource_name**. They uses singular_human_name / plural_human_name inside. It is good for menu and other output but not for methods like **resource_key**, **camelized_resource_name**, etc.

So I pulling my solution which works for me.

Other things for translation support are:

iain commented at September 29, 2011

I've done the following workaround: I've made an initializer (config/initializers/i18n.rb) with the following:
I18n.locale = :nl # or whatever your default locale is
I18n.load_path += Dir[Rails.root.join("config/locales/**/*.yml")]
I18n.reload!

put active admin translation **yourlang.yml** to config\locales\activeadmin (e.g.)
in your translation use
xx:
activerecord:
models:
yourmodel: #singular
one: "singular transl."
other: "plural transl."

Could by good mention it somewhere in documentation!