# \[ANN\] Ruby-GetText-Package-2.0.0

**URL:** <https://www.ruby-forum.com/t/ann-ruby-gettext-package-2-0-0/163582>\
**Category:** Rails\
**Created:** [March 22, 2009, 2:39pm UTC](https://www.ruby-forum.com/t/ann-ruby-gettext-package-2-0-0/163582 "2009-03-22T14:39:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Masao\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/839c29/32.png) [@Masao\_M](https://www.ruby-forum.com/u/Masao_M)\
**Post date:** [March 22, 2009, 2:39pm UTC](https://www.ruby-forum.com/t/ann-ruby-gettext-package-2-0-0/163582/1 "2009-03-22T14:39:11Z")

</div>

Hi,

Ruby-GetText-Package-2.0.0 is now available.

Ruby-GetText-Package now separate 2 base libraries  
and 3 libraries which support Ruby on Rails 2.3.2.

For all libraries/applications:

- locale - Management Locale IDs
- gettext - Message localizations

For Ruby on Rails:

- locale\_rails - Rails support with locale
- gettext\_activerecord - ActiveRecord Localization
- gettext\_rails - Support other localization same with gettext-1.93.0.

See HOWTO below to migrate rails-2.1.x apps to rails-2.3.2.

- HOWTO Migrate rails-2.1.x(gettext-1.93.0) to  
rails-2.3.2(gettext-2.0.0)  
[http://www.yotabanana.com/hiki/ruby-gettext-rails-migration.html](http://www.yotabanana.com/hiki/ruby-gettext-rails-migration.html)

## Changes

- locale-2.0.0
  - Support Rack.

- locale\_rails-2.0.0
  - I18n.translate fallbacks to the localized message in the locale  
candidates.
  - Support localized view both of gettext-1.93.0 style and  
rails-2.3.x style.
  - Support Rails-2.3.2.

- gettext-2.0.0
  - Separate this library to locale, locale\_rails,  
gettext\_activerecord,  
gettext\_rails.
  - A lot of referctoring, improvements.
  - Thread safe.
  - New APIs for gettext/tools instead of gettext/utils.

- gettext\_activerecord-2.0.0
  - Support activerecord-2.3.2.

- gettext\_rails-2.0.0
  - Support Rails-2.3.2.
  - Work with other I18n backends.

(NOTE)

- Rails-2.3.1 and earlier aren’t supported.

## Thanks to

Special Thanks to:  
Michael Grosser: A lot of improvement.

Thanks to:  
Tietew, Kazuhiro NISHIYAMA, Fabio M.A.  
Tuptus, Morus W., Vladimir Dobriakov, Ramsey.

## Website

- homepage  
[http://www.yotabanana.com/hiki/ruby-locale.html](http://www.yotabanana.com/hiki/ruby-locale.html)  
[http://www.yotabanana.com/hiki/ruby-gettext.html](http://www.yotabanana.com/hiki/ruby-gettext.html)

- rubyforge  
[http://rubyforge.org/projects/locale](http://rubyforge.org/projects/locale)  
[http://rubyforge.org/projects/gettext](http://rubyforge.org/projects/gettext)

- github  
[GitHub - mutoh/locale: Ruby-Locale is the pure ruby library which provides basic and general purpose APIs for localization.](http://github.com/mutoh/locale/tree/master)  
[GitHub - mutoh/locale\_rails: Ruby on Rails (\>=2.2) localization support(auto locale detection, localized caches, views, routes, etc...) with Ruby-Locale.](http://github.com/mutoh/locale_rails/tree/master)  
[GitHub - mutoh/gettext: Ruby-GetText-Package is a Localization(L10n) library and tools which modeled after GNU gettext package.](http://github.com/mutoh/gettext/tree/master)  
[GitHub - mutoh/gettext\_activerecord: ActiveRecord(\>2.2) localization using Ruby-GetText-Package](http://github.com/mutoh/gettext_activerecord/tree/master)  
[GitHub - mutoh/gettext\_rails: Ruby on Rails (\>=2.3) localization support with Ruby-GetText-Package.](http://github.com/mutoh/gettext_rails/tree/master)

- Download  
[http://rubyforge.org/frs/?group\_id=855&release\_id=2856](http://rubyforge.org/frs/?group_id=855&release_id=2856)  
[http://rubyforge.org/frs/?group\_id=1997&release\_id=32471](http://rubyforge.org/frs/?group_id=1997&release_id=32471)

- Ruby-GetText-Package HOWTOs  
[http://www.yotabanana.com/hiki/ruby-gettext-howto.html](http://www.yotabanana.com/hiki/ruby-gettext-howto.html)

- Ruby-GetText-Package HOWTO for Ruby on Rails  
[http://www.yotabanana.com/hiki/ruby-gettext-rails.html](http://www.yotabanana.com/hiki/ruby-gettext-rails.html)

- HOWTO Migrate rails-2.1.x(gettext-1.93.0) to  
rails-2.3.2(gettext-2.0.0)  
[http://www.yotabanana.com/hiki/ruby-gettext-rails-migration.html](http://www.yotabanana.com/hiki/ruby-gettext-rails-migration.html)

- Ruby-GetText-Package documents for Translators  
[http://www.yotabanana.com/hiki/ruby-gettext-translate.html](http://www.yotabanana.com/hiki/ruby-gettext-translate.html)

## What’s this?

Ruby-GetText-Package is a Localization(L10n) library and tool  
which is modeled after the GNU gettext package.

This library translates original messages to localized  
messages using client-side locale information(environment  
variable, using system locale API or CGI variable).

The tools for developers support creating, useing, and modifying  
localized message files(message catalogs).

## ScreenShots

Screenshots in 23 languages (Sample Rails blog) are:  
[http://www.yotabanana.com/hiki/?ruby-gettext-screenshot](http://www.yotabanana.com/hiki/?ruby-gettext-screenshot)

–  
Masao M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![Masao\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/839c29/32.png) [@Masao\_M](https://www.ruby-forum.com/u/Masao_M)\
**Post date:** [March 24, 2009, 2:26am UTC](https://www.ruby-forum.com/t/ann-ruby-gettext-package-2-0-0/163582/2 "2009-03-24T02:26:34Z")

</div>

No, Rails-2.2.0 - Rails-2.3.1 are not supported.

2009/3/24 Leon [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

---

<div class="post-metadata">

**Author:** ![Masao\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/839c29/32.png) [@Masao\_M](https://www.ruby-forum.com/u/Masao_M)\
**Post date:** [March 24, 2009, 2:07am UTC](https://www.ruby-forum.com/t/ann-ruby-gettext-package-2-0-0/163582/3 "2009-03-24T02:07:16Z")

</div>

does this version support rails 2.2.x?

---

<div class="post-metadata">

**Author:** ![Masao\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/839c29/32.png) [@Masao\_M](https://www.ruby-forum.com/u/Masao_M)\
**Post date:** [March 27, 2009, 10:37am UTC](https://www.ruby-forum.com/t/ann-ruby-gettext-package-2-0-0/163582/4 "2009-03-27T10:37:56Z")

</div>

i would recommend to simply switch to fast\_gettext

> **[GitHub - grosser/fast\_gettext: Ruby GetText, but 12x faster + 530x less...](https://github.com/grosser/fast_gettext)**
>
> Ruby GetText, but 12x faster + 530x less garbage + simple + clean namespace + threadsafe + extendable + multiple backends - GitHub - grosser/fast\_gettext: Ruby GetText, but 12x faster + 530x less g...

, a simpler/cleaner/faster/efficient solution that will not break when  
any part of rails is updated, since it cooperates with I18n (through  
gettext\_i18n\_rails plugin).

---

<div class="post-metadata">

**Author:** ![Masao\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/839c29/32.png) [@Masao\_M](https://www.ruby-forum.com/u/Masao_M)\
**Post date:** [March 27, 2009, 10:39am UTC](https://www.ruby-forum.com/t/ann-ruby-gettext-package-2-0-0/163582/5 "2009-03-27T10:39:07Z")

</div>

i would recommend to simply switch to fast\_gettext

> **[GitHub - grosser/fast\_gettext: Ruby GetText, but 12x faster + 530x less...](https://github.com/grosser/fast_gettext)**
>
> Ruby GetText, but 12x faster + 530x less garbage + simple + clean namespace + threadsafe + extendable + multiple backends - GitHub - grosser/fast\_gettext: Ruby GetText, but 12x faster + 530x less g...

, a simpler/cleaner/faster/efficient solution that will not break when  
any part of rails is updated, since it cooperates with I18n (through  
gettext\_i18n\_rails plugin).
