# Locales

**URL:** <https://www.ruby-forum.com/t/locales/193501>\
**Category:** Rails\
**Created:** [August 18, 2010, 9:05pm UTC](https://www.ruby-forum.com/t/locales/193501 "2010-08-18T21:05:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![halfbyte](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/7ab992/32.png) [@halfbyte](https://www.ruby-forum.com/u/halfbyte)\
**Post date:** [August 18, 2010, 9:05pm UTC](https://www.ruby-forum.com/t/locales/193501/1 "2010-08-18T21:05:52Z")

</div>

Hello,  
can sbdy please be so kind and tell me in a few words how to solve the  
following problem.

I have just deployed an application.  
I generated controller home with an action show.  
In the view show I have the text “sample text”

I want to add a language swich (better automatic recogniser) which will  
be  
switching between english locale en\_US (“sample text”) and czech locale  
cs\_CZ (“vzorovÃ½ text”)

I’m looking into the manual to i18n, but I’m not really making progress  
☹

Thanks in advance  
Jan

---

<div class="post-metadata">

**Author:** ![halfbyte](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/7ab992/32.png) [@halfbyte](https://www.ruby-forum.com/u/halfbyte)\
**Post date:** [August 18, 2010, 10:40pm UTC](https://www.ruby-forum.com/t/locales/193501/2 "2010-08-18T22:40:10Z")

</div>

Jan K. wrote:

> Hello,  
> can sbdy please be so kind and tell me in a few words how to solve the  
> following problem.
> 
> I have just deployed an application.  
> I generated controller home with an action show.  
> In the view show I have the text “sample text”
> 
> I want to add a language swich (better automatic recogniser) which will  
> be  
> switching between english locale en\_US (“sample text”) and czech locale  
> cs\_CZ (“vzorovÃ½ text”)

I would recommend using fast\_gettext. It’s a lot nicer than Rails’  
built-in I18N.

> I’m looking into the manual to i18n, but I’m not really making progress  
> ☹

How do you expect us to help if you don’t tell us what problems you’re  
having?

> Thanks in advance  
> Jan

## Best,

Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid
