In a model class, the following will not work:
validates_presence_of :first_name, :message => l(:err_no_first_name)
validates_presence_of :last_name, :message => l(:err_no_last_name)
A self.l() function must also exist in the localization module which allows the following to work:
validates_presence_of :first_name, :message => Localization::l(:err_no_first_name)
validates_presence_of :last_name, :message => Localization::l(:err_no_last_name)
But the above is long and horrible so the patch allows the for the following:
validates_presence_of :first_name, :lmsg => :err_no_first_name
validates_presence_of :last_name, :lmsg => :err_no_last_name
|