Skip to content

Commit

Permalink
[#500] translate the model_name view hint, too.
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanlarsen committed Nov 30, 2009
1 parent 614c8ac commit 67c233c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hobo/lib/hobo/view_hints.rb
Expand Up @@ -27,7 +27,7 @@ def self.setter(name, default=nil, &block)
end
end

setter :model_name, proc { name.sub(/Hints$/, "").titleize }
setter :model_name, proc { Hobo::Translations.ht("#{name.sub(/Hints$/, '').tableize}.model", :default => name.sub(/Hints$/, "").titleize) }

setter :field_names, {}

Expand Down

0 comments on commit 67c233c

Please sign in to comment.