[ANN] Ruby-GetText-Package-1.6.0


Ruby-GetText-Package-1.6.0 is now available.

Chinese(zh_CN), Italian(it) are supported.

Screenshots in 13 language (Sample Rails blog) are:

Since this release, you can localize your rails plugin
easily with gettext.
I wrote a small example. If you’re interested in it,
check the file in the released tar-ball.

See (gettext)/samples/rails/vendor/…


  • Support Chinese(zh_CN), Italian(it).
  • Improve the way to manage textdomains.
    • A class/module can have plural textdomains.

    • A textdomain belong to a class/module.

    • A class/module can have plural textdomains.

    • A message is looked up in its class/module and ancestors.

      You don’t need to call bindtextdomain in each files.

      A textdomain belong to a file in previous version.

      And a message is looked up in the file which called

      GetText functions only.

Thanks to:
babie, charlie, Nobuhiro IMAI, Hiroyuki I., Yingfeng,
Marco L., Nobu Nakada, Gudao Luo, markus koller,
and others.



What’s this?

Ruby-GetText-Package is a Localization(L10n) Library and Tools which is
modeled after GNU gettext package.

The library converts the messages to localized messages properly using
client-side locale information. And the tools for developers support
to create, use, and modify localized the message files(message catalogs)


  • Simple APIs(similar GNU gettext)
  • rgettext command for creating po-files from files below:
    o ruby scripts
    o glade-2 XML file(.glade)
    o ERB file(.rhtml)
    o ActiveRecord (.rb)
  • rmsgfmt command for creating a mo-file from a po-file.
  • The po-file is compatible to GNU gettext.
    You can maintain these files to use GNU getext tools.
  • The mo-file is compatible to GNU gettext(msgfmt).
  • multi-textdomain supported.
    You can bind plural textdomains to a class/module.
  • CGI support (gettext/cgi)
  • ERB support (gettext/erb)
  • Ruby on Rails support (gettext/rails)

Status of translations

Chinese(zh) - 1.6.0
Czech(cs) - 1.6.0
Dutch(nl) - 1.6.0
English(default) - 1.6.0
French(fr) - 1.6.0
German(de) - 1.6.0
Greek(el) - 1.6.0
Spanish(es) - 1.6.0
Italian(it) - 1.6.0
Japanese(ja) - 1.6.0
Korean(ko) - 1.6.0
Portuguese(Brazil)(pt_BR) - 1.6.0
Russian(ru) - 1.6.0
Swedish(sv) - 0.8.0 (old)

Can you help us?/ Can we help you?

Join our ML if you are interested in:

  • Improve Ruby-GetText-Package.
  • Translators.
  • Application/library owners who think to make your apps/libs L10n.
    If you send us your po-files, we’ll translate it!

    At least, a Japanese translator is available ;).