i18n in labels
rails 2.3.4 doen’t have i18n support in labels
http://lawrencesong.net/2009/04/i18n-label-in-rails-monkey-patch/
1 module ActionView 2 module Helpers 3 class InstanceTag 4 def to_label_tag_with_i18n(text = nil, options = {}) 5 text ||= object.class.human_attribute_name(method_name) if object.class.respond_to?(:human_attribute_name) 6 7 to_label_tag_without_i18n(text, options) 8 end 9 10 alias_method_chain :to_label_tag, :i18n 11 end 12 end 13 end