You probably didn''t add "require
''gettext/rails''" in your Rails app.
On May 7, 1:19 pm, fafa
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> 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?
>
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---