# Problem with GetText 1.6.0 - undefined method 'N\_'

**URL:** <https://www.ruby-forum.com/t/problem-with-gettext-1-6-0-undefined-method-n/97520>\
**Category:** Rails\
**Created:** [July 7, 2006, 6:30pm UTC](https://www.ruby-forum.com/t/problem-with-gettext-1-6-0-undefined-method-n/97520 "2006-07-07T18:30:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eagoweb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/9de0a6/32.png) [@eagoweb](https://www.ruby-forum.com/u/eagoweb)\
**Post date:** [July 7, 2006, 6:30pm UTC](https://www.ruby-forum.com/t/problem-with-gettext-1-6-0-undefined-method-n/97520/1 "2006-07-07T18:30:16Z")

</div>

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 method `N\_’ 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: removed\_email\_address@domain.invalid [http://vp.com.ve](http://vp.com.ve) [http://lacaraoscura.com](http://lacaraoscura.com) [http://rubycorner.com](http://rubycorner.com)

---

<div class="post-metadata">

**Author:** ![eagoweb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/9de0a6/32.png) [@eagoweb](https://www.ruby-forum.com/u/eagoweb)\
**Post date:** [July 7, 2006, 6:37pm UTC](https://www.ruby-forum.com/t/problem-with-gettext-1-6-0-undefined-method-n/97520/2 "2006-07-07T18:37:13Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![eagoweb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/9de0a6/32.png) [@eagoweb](https://www.ruby-forum.com/u/eagoweb)\
**Post date:** [July 7, 2006, 7:24pm UTC](https://www.ruby-forum.com/t/problem-with-gettext-1-6-0-undefined-method-n/97520/3 "2006-07-07T19:24:00Z")

</div>

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 ☹ 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
