# L10n-simplified-0.9 died in Ruby 1.9.1 / Rails 2.3.3

**URL:** <https://www.ruby-forum.com/t/l10n-simplified-0-9-died-in-ruby-1-9-1-rails-2-3-3/176295>\
**Category:** Ruby\
**Created:** [September 28, 2009, 6:50pm UTC](https://www.ruby-forum.com/t/l10n-simplified-0-9-died-in-ruby-1-9-1-rails-2-3-3/176295 "2009-09-28T18:50:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fernan2](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/c5a1d2/32.png) [@fernan2](https://www.ruby-forum.com/u/fernan2)\
**Post date:** [September 28, 2009, 6:50pm UTC](https://www.ruby-forum.com/t/l10n-simplified-0-9-died-in-ruby-1-9-1-rails-2-3-3/176295/1 "2009-09-28T18:50:48Z")

</div>

As lot of people, I suposse, I’m trying to move my Rails 2.1.2 app to  
the newer versions of Ruby and Rails. And my first serious trouble is  
that l10n-simplified-0.9 doesn’t work, and there isn’t a newer version.  
That’s important for me, because my application is Spanish!!

Â¿Someone has a solution for this?

---

<div class="post-metadata">

**Author:** ![fernan2](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/c5a1d2/32.png) [@fernan2](https://www.ruby-forum.com/u/fernan2)\
**Post date:** [September 28, 2009, 8:21pm UTC](https://www.ruby-forum.com/t/l10n-simplified-0-9-died-in-ruby-1-9-1-rails-2-3-3/176295/2 "2009-09-28T20:21:01Z")

</div>

Fernando C. wrote:

> As lot of people, I suposse, I’m trying to move my Rails 2.1.2 app to  
> the newer versions of Ruby and Rails. And my first serious trouble is  
> that l10n-simplified-0.9 doesn’t work, and there isn’t a newer version.  
> That’s important for me, because my application is Spanish!!
> 
> Â¿Someone has a solution for this?

Solved!!

First line of file must be

# encoding: UTF-8

That allows you to use strings like ‘no es un nÃºmero’ (with Ãº,  
non-US-ASCII character)

---

<div class="post-metadata">

**Author:** ![fernan2](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/c5a1d2/32.png) [@fernan2](https://www.ruby-forum.com/u/fernan2)\
**Post date:** [September 29, 2009, 8:54pm UTC](https://www.ruby-forum.com/t/l10n-simplified-0-9-died-in-ruby-1-9-1-rails-2-3-3/176295/3 "2009-09-29T20:54:31Z")

</div>

Fernando C. wrote:

> Fernando C. wrote:
> 
> > As lot of people, I suposse, I’m trying to move my Rails 2.1.2 app to  
> > the newer versions of Ruby and Rails. And my first serious trouble is  
> > that l10n-simplified-0.9 doesn’t work, and there isn’t a newer version.  
> > That’s important for me, because my application is Spanish!!
> > 
> > Â¿Someone has a solution for this?

Â¡Hola Fernando!  
I’m the original author of L10n Simplified. I stopped maintaining it  
because Rails 2.2 has this functionality natively built in.

However, feel free to send patches, and I will happily apply them.

Did you consider using the native I18N stuff in Rails when you move to  
2.3?

Kind regards,  
Jesper RÃ¸nn-Jensen  
[http://justaddwater.dk/](http://justaddwater.dk/)

---

<div class="post-metadata">

**Author:** ![fernan2](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/c5a1d2/32.png) [@fernan2](https://www.ruby-forum.com/u/fernan2)\
**Post date:** [September 30, 2009, 8:03pm UTC](https://www.ruby-forum.com/t/l10n-simplified-0-9-died-in-ruby-1-9-1-rails-2-3-3/176295/4 "2009-09-30T20:03:17Z")

</div>

Jesper RÃ¸nn-jensen wrote:

> Fernando C. wrote:
> 
> > Fernando C. wrote:
> > 
> > > As lot of people, I suposse, I’m trying to move my Rails 2.1.2 app to  
> > > the newer versions of Ruby and Rails. And my first serious trouble is  
> > > that l10n-simplified-0.9 doesn’t work, and there isn’t a newer version.  
> > > That’s important for me, because my application is Spanish!!
> > > 
> > > Â¿Someone has a solution for this?
> 
> Â¡Hola Fernando!  
> I’m the original author of L10n Simplified. I stopped maintaining it  
> because Rails 2.2 has this functionality natively built in.
> 
> However, feel free to send patches, and I will happily apply them.
> 
> Did you consider using the native I18N stuff in Rails when you move to  
> 2.3?
> 
> Kind regards,  
> Jesper RÃ¸nn-Jensen  
> [http://justaddwater.dk/](http://justaddwater.dk/)

I’m a little afraid of moving to newer versions, because if every file  
with non-US characters must be marked with # encoding: UTF-8 , it will  
be very messy!! Probably I’ll wait until someone realises that we need  
some default encoding option in config.sys…

About your patches, it’s easy: you must begin the lang\_es.rb file (and  
probably most of the lang\_xx.rb) with the line:

# encoding: UTF-8

Thank you!!
