Gettex newbea question

Hello RoR Developers,

I want to use gettext tool for translating user interfaces of
applications into different languages.
I searched some pages like
http://www.gnu.org/software/gettext/manual/html_node/gettext_5.html#Creating
http://www.yotabanana.com/hiki/ruby-gettext-howto-rails.html
http://manuals.rubyonrails.com/read/chapter/105

but couldn t understand clearly. Could you tell me briefly how to create
.po,.pot,.mo files.

I created po folder by hand and tried to create .po file like

desc "Update pot/po files to match new version."
task :updatepo do
MY_APP_TEXT_DOMAIN = "myapp"
MY_APP_VERSION = "myapp 1.1.0"
GetText.update_pofiles(YOUR_APP_TEXT_DOMAIN,
                        Dir.glob("{app,lib}/**/*.{rb,rhtml}"),
                        MY_APP_VERSION)
end

I also tried to do the same example in
http://www.yotabanana.com/hiki/ruby-gettext-howto-rails.html#The+application's+information+on+this+tutorial
page but couldn t

could you tell me briefly what to do, step by step..

thanks

if it s possible could you send me some examples about gettext. I really
need it soon. I need details, if I see one rails application then can
create by myself.

thank you again.