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%27s+information+on+this+tutorial
page but couldn t
could you tell me briefly what to do, step by step..
thanks
--
Posted via http://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
-~----------~----~----~----~------~----~------~--~---