Closed GoogleCodeExporter closed 9 years ago
You can set the name in config/locales/en.yml:
en:
activerecord:
models:
product_sale: "Product Sale"
Original comment by sergio.c...@gmail.com
on 29 Apr 2010 at 10:22
Ok thanks I'll do that. Strangely though it does get correctly displayed in some
places correctly, it is just those two locations that have problems.
Original comment by ruinenl...@gmail.com
on 29 Apr 2010 at 11:29
In _form_association_footer.html.erb just need to change:
<% add_label = column.plural_association? ? as_(:create_another, :model =>
column.association.klass.human_name) : as_(:replace_with_new) -%>
to ..
<% add_label = column.plural_association? ? as_(:create_another, :model =>
column.association.klass.to_s.underscore.humanize.titleize) :
as_(:replace_with_new) -%>
Original comment by ruinenl...@gmail.com
on 2 May 2010 at 2:18
That change break i18n
Original comment by sergio.c...@gmail.com
on 3 May 2010 at 8:21
If you dislike default value for human_name when translation is not available,
fill
a bug in rails.
Original comment by sergio.c...@gmail.com
on 3 May 2010 at 8:22
Original issue reported on code.google.com by
ruinenl...@gmail.com
on 28 Apr 2010 at 8:29