Hi,

Rails i18n modul expects plural forms in your yml file.
change your localization file:
en:
  activerecord:
    models:
      one: Administrator
      other: Administrators



On 1 Feb., 23:15, Nick Rogers <[email protected]> wrote:
> I have my model's labels defined in my locale file (en.yml) as such...
>
> en:
>   activerecord:
>     models:
>       admin: Administrator
>       ...
>
> What is the ideal way of pluralizing the label used in the list view header
> (i.e., "Administrators" and not "Administrator")? Currently, I am overriding
> the _list_header partial and appending .pluralize() to
> "active_scaffold_config.list.user". Looking at
> ActiveScaffold::Config::Core#label, it looks like there is some logic to
> pluralize unless a :count option is explicitly passed in, but I can't seem
> to understand how this is supposed to work with respect to the locale file
> and the scaffold's list header. Thanks for any help.

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en.

Reply via email to