The ruby-gettext project

gettext - gettext for Ruby

% gem install gettext

3.1.1 is the latest release. It had been released at 2014-02-23.

locale - locale for Ruby

% gem install locale

2.1.0 is the latest release. It had been released at 2012-12-15.

About gettext

NOTE: Gettext 3.0.0 removed many deprecated APIs and improves internal APIs. We want to keep backward compatibility as much as possible but some existing codes may be broken by gettext gem API change. If your code breaks by gettext gem 3.0.0, please report your problem. We will fix the problem and release a new version.

Gettext is the localization(L10N) library and tools which is modeled after GNU gettext package.

This library was called as "Ruby-GetText-Package". Since 2.3.0, this library is called just "gettext". You can call this library as "gettext gem" or "Ruby gettext" to distinguish from GNU gettext.

The library converts the messages to localized messages properly using client-side locale information such as environment variable and CGI variable.

And the tools for developers support to create, use, and modify localized message files (message catalogs) easily.

Resources

Web
http://ruby-gettext.github.io/
Reference
RubyDoc.info
Repository
GitHub
Gem
RubyGems.org

About locale

Locale is the pure Ruby library which provides basic and general purpose APIs for localization.

This library was called as "Ruby-Locale". Since 2.0.6, this library is called just "locale". You can call this library as "locale gem" or "Ruby Locale" to distinguish from other "locale"s.

This library aims to support all environments which Ruby works and all kind of programs (GUI, WWW, library, etc), and becomes the hub of other i18n/l10n libs/apps to handle major locale ID standards.

Resources

Web
http://ruby-gettext.github.io/
Reference
RubyDoc.info
Repository
GitHub
Gem
RubyGems.org