Fixed gettext.rb for Ruby 2.0

Seems the previous syntax is broken… deprecated?