Problem with GetText 1.6.0 - undefined method 'N_'

I’m just upgraded GetText from 1.4.0 to 1.6.0, and all my tests got
broken.

I got this error:

ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/base.rb:1129:in
method_missing': undefined methodN_’ for User:Class (NoMethodError)
etc

My model user.rb has this line:

validates_format_of :login, :with => /^[a-zA-Z0-9_]+$/, :message =>
N_("%{fn} invalid, only letters, numbers and underscore are allowed.")

Any clue?

Edgar González González
E-mail: [email protected]
http://vp.com.ve
http://lacaraoscura.com
http://rubycorner.com

Hi,

This problem has been fixed.

Replace your gettext/rails.rb to the rails.rb Revision 1.38 below.
http://rubyforge.org/cgi-bin/viewvc.cgi/gettext/lib/gettext/rails.rb?root=gettext&view=log

Sorry for incovenient.

On Fri, 7 Jul 2006 12:28:47 -0400

Masao,

Thanks for answer.

When I change the file all the tests works fine.

Do you have plans to make a new release soon ?

I want to deploy a new version of my application very soon. My deploy
is in a shared hosting :frowning: what do you recommend? stay in GetText
v1.4.0?, 1.5.0? go to the 1.6.0 and ask to apply the patch? or wait to
1.7.0?

Thanks again

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs