Forum: Ruby on Rails gettext missing a method

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
B04a553de1b8b45433b841bba440cc42?d=identicon&s=25 fafa (Guest)
on 2007-05-07 13:19
After gem install gettext, I created the po/cs po/en po/de directories
and tried to create po files. But, with this code in rakefile

require 'gettext/utils'
desc "Update pot/po files."
task :updatepo do

  GetText.update_pofiles("semantickyweb2",
Dir.glob("{app,lib,bin}/**/*.{rb,rhtml}"), "semantickyweb2 1.0.0")
end

desc "Create mo-files"
task :makemo do
  require 'gettext/utils'
  GetText.create_mofiles(true)
  # GetText.create_mofiles(true, "po", "locale")  # This is for "Ruby on
Rails".
end

I got only this message:

Rake aborted!
Undefined method 'untranslate_all?' for Action::Class

Does somebody know what to do with that?
5a0c24b556c78ba3558a6a4c51835333?d=identicon&s=25 Shaoxia (Guest)
on 2007-05-08 00:03
(Received via mailing list)
You probably didn't add "require 'gettext/rails'" in your Rails app.
This topic is locked and can not be replied to.