gregbell/active_admin — Issue #841: Use ActiveRecord locales
Author: mrcasals
Created: 2011-12-11 18:20:46+00:00
State: open

Good morning everyone,

I'm using ActiveAdmin at revision 5676c997af and I have troubles translating the Resources names in the menu. I know I can use the `menu :label => "My Resources"` as told [in the docs](http://activeadmin.info/docs/2-resource-customization.html#customize_the_menu), but I am looking for something else.

My guessing is that, in order to find what text to put in the menu, AA looks for the tag above or uses the model name. But why doesn't it use the ActiveRecord translation?

I'll try to explain myself in a better way: I have a Post model, and this in my locale file:

````
ca:
activerecord:
models:
post: "Entrada"
posts: "Entrades"
````

But AA keeps showing Posts as the menu label. I don't have the `menu :label => "something"` tag in my `app/admin/posts.rb' file

The same happens when the locale string has a `%{resource_name}` on it. Any idea on how to solve this?

Thanks!