# Localization for Rails Engine

**URL:** <https://www.ruby-forum.com/t/localization-for-rails-engine/69028>\
**Category:** Engines Development\
**Created:** [September 18, 2006, 9:17am UTC](https://www.ruby-forum.com/t/localization-for-rails-engine/69028 "2006-09-18T09:17:11Z")\
**Posts on this page:** 2\
**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:** [September 18, 2006, 9:17am UTC](https://www.ruby-forum.com/t/localization-for-rails-engine/69028/1 "2006-09-18T09:17:11Z")

</div>

Hi,

I’m new to this list, so please forgive me  
if I’m asking the wrong discussions.

–  
I’m the maintainer of Ruby-GetText-Package which  
produce the l10n to Ruby and Ruby on Rails.

Recently, some people ask me for the l10n  
of Engines with gettext.

So I wrote a HOWTO for it.  
[http://www.yotabanana.com/hiki/?ruby-gettext-howto-engines](http://www.yotabanana.com/hiki/?ruby-gettext-howto-engines)

And I localized login\_engine for an example.  
It includes English and Japanese messages.  
[http://www.yotabanana.com/hiki/?c=plugin;plugin=attach\_download;p=ruby-gettext-howto-engines;file\_name=login\_engine\_v1.0.2.gettext.tar.gz](http://www.yotabanana.com/hiki/?c=plugin;plugin=attach_download;p=ruby-gettext-howto-engines;file_name=login_engine_v1.0.2.gettext.tar.gz)

I think it’s better to support l10n for Engines by itself.

Engines have a lot of message in the views/models/controllers.  
If we(Japanese) think to use Engines, we need to translate  
the messages by ourselves. It’s not DRY for us.

Are there any chance to support Engines with GetText ?  
If you agree with me, I’ll work it.

---

<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:** [September 22, 2006, 11:22am UTC](https://www.ruby-forum.com/t/localization-for-rails-engine/69028/2 "2006-09-22T11:22:48Z")

</div>

Hi Masao,

Whether or not an engine supports GetText depends on the individual  
engine, and therefore the developer of that engine. I’m not sure that  
the current incarnations of the login/user engines will be patched in  
SVN to support this. This is primarily because of time constraints and  
the fact that I’d prefer to focus on making it easier for _others_ to  
develop their own engines, rather than providing a suite of engines  
for the public to consume.

However, that said there’s no reason why, in your own engines, you  
can’t take advantage of GetText in a nice way.

James
