gregbell/active_admin — Issue #1014: Wrong plural form of model names in other locales then :en
Author: TheMaster
Created: 2012-02-14 18:46:14+00:00
State: open

Model names can be translated using standard i18n setup, but the pluralization still uses the english standard (ending "s"). For example: "User" and "Users" would be "Bruger" and "Brugere" in danish (da), but in active admin it appears as "Bruger" and "Brugers".

I have looked a bit around, and found that this can be fixed with a "hack fix" using inflections rules. This sounds like the inflection method pluralize is being used to pluralize the model names? It definitely looks like this is the method:

```ruby
module ActiveAdmin
class Resource
module Naming
#....
def plural_resource_name
@plural_resource_name ||= @options[:as].pluralize if @options[:as]
@plural_resource_name ||= plural_human_name
@plural_resource_name ||= resource_name.pluralize
end
#....
```
Correct me if wrong, but the method pluralize should not be used for translations, the rails inflector is mainly used for Rails internals, like guessing table names for models (see http://stackoverflow.com/questions/6178900/overide-default-pluralize-for-model-name-in-rails3 for short explanation).