# Gettext missing a method

**URL:** <https://www.ruby-forum.com/t/gettext-missing-a-method/103512>\
**Category:** Rails\
**Created:** [May 7, 2007, 1:19pm UTC](https://www.ruby-forum.com/t/gettext-missing-a-method/103512 "2007-05-07T13:19:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fafa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/8e7dd6/32.png) [@fafa](https://www.ruby-forum.com/u/fafa)\
**Post date:** [May 7, 2007, 1:19pm UTC](https://www.ruby-forum.com/t/gettext-missing-a-method/103512/1 "2007-05-07T13:19:11Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![fafa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/8e7dd6/32.png) [@fafa](https://www.ruby-forum.com/u/fafa)\
**Post date:** [May 8, 2007, 12:03am UTC](https://www.ruby-forum.com/t/gettext-missing-a-method/103512/2 "2007-05-08T00:03:20Z")

</div>

You probably didn’t add “require ‘gettext/rails’” in your Rails app.
