# Rails I18n

**URL:** https://www.ruby-forum.com/c/ruby-on-rails/rails-i18n/17.md?page=1

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

**Page:** 2

---

## [User interface locale VS content locale](https://www.ruby-forum.com/t/user-interface-locale-vs-content-locale/210325)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [August 6, 2011, 4:24pm UTC](https://www.ruby-forum.com/t/user-interface-locale-vs-content-locale/210325 "2011-08-06T16:24:33Z")

</div>

Hi, I’m working on a little content management system where the user can manage content that is translated in multiple languages. The UI of the CMS itself is also available in multiple languages so I need to be able …

---

## [How to have both {{ and %{ placeholders replaced?](https://www.ruby-forum.com/t/how-to-have-both-and-placeholders-replaced/210124)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [July 31, 2011, 7:11pm UTC](https://www.ruby-forum.com/t/how-to-have-both-and-placeholders-replaced/210124 "2011-07-31T19:11:53Z")

</div>

Hi, I’m working on a Rails app I didn’t touched since a year :wink: It’s a 2.3.8 app, and my first surprise was to see things like {{count}} errors prohibited this {{model}} from being saved There were problems with t…

---

## [Question about conventions of using I18n](https://www.ruby-forum.com/t/question-about-conventions-of-using-i18n/209231)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [July 9, 2011, 12:04am UTC](https://www.ruby-forum.com/t/question-about-conventions-of-using-i18n/209231 "2011-07-09T00:04:26Z")

</div>

Hi everyone, I’m a bit curious on what the conventions of internationalizing a project is… So let’s say you want to internationalize some html email text… And there’s something like this: Thanks, Yo Momma. … W…

---

## [Get an array from an I18n declaration?](https://www.ruby-forum.com/t/get-an-array-from-an-i18n-declaration/208929)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [June 30, 2011, 7:39pm UTC](https://www.ruby-forum.com/t/get-an-array-from-an-i18n-declaration/208929 "2011-06-30T19:39:47Z")

</div>

Hi, I am storing some text in a model that is separated by new lines, and I wanted to offer some default text in case the records in the model do not exist… So I tried to emulate it by doing: en: foo: item1\\r\\n i…

---

## [Rails 3.1 list of supported locales](https://www.ruby-forum.com/t/rails-3-1-list-of-supported-locales/208709)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [June 25, 2011, 9:26am UTC](https://www.ruby-forum.com/t/rails-3-1-list-of-supported-locales/208709 "2011-06-25T09:26:53Z")

</div>

Hi, What s the best way to get a list of all supported locales in a rails 3.1 app? What s the best way to iterate them to generate javascript code for each locale using corresponding translations? Thanks a lot in ad…

---

## [Translating Finnish noun cases?](https://www.ruby-forum.com/t/translating-finnish-noun-cases/208104)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [June 10, 2011, 7:04pm UTC](https://www.ruby-forum.com/t/translating-finnish-noun-cases/208104 "2011-06-10T19:04:05Z")

</div>

We have some translation strings like “Search in %{category\_name}” or “Delivery to our showrooms in %{list\_of\_locations}” In Swedish and English, it works fine to just pass in @category.name or @locations.to\_sentenc…

---

## [About Globalize3 Translations Data Adding](https://www.ruby-forum.com/t/about-globalize3-translations-data-adding/207120)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [May 19, 2011, 7:03pm UTC](https://www.ruby-forum.com/t/about-globalize3-translations-data-adding/207120 "2011-05-19T19:03:49Z")

</div>

Hello, I have i18n gem and tolk running for static content translations. Also for database translations i am using Globalize3, but is there any plugin or gem which can work with globalize3 for adding translations to …

---

## [I18n admin ui](https://www.ruby-forum.com/t/i18n-admin-ui/206246)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [May 18, 2011, 8:51am UTC](https://www.ruby-forum.com/t/i18n-admin-ui/206246 "2011-05-18T08:51:52Z")

</div>

Hi all! I was wondering how people manage their application translations ? I found solutions like tolk gem that will provide Web UI, but that will work only if you have Active Record/db in your application. Also, tolk …

---

## [How to get rid of english 'spell correction' for different languages?](https://www.ruby-forum.com/t/how-to-get-rid-of-english-spell-correction-for-different-languages/206632)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [May 7, 2011, 7:14pm UTC](https://www.ruby-forum.com/t/how-to-get-rid-of-english-spell-correction-for-different-languages/206632 "2011-05-07T19:14:09Z")

</div>

de: activerecord: models: address: Adresse Comes out to ‘adresse’ instead of ‘Adresse’ (which is correct german). Is there a way to fix this?

---

## [Translation %{model} and other issues](https://www.ruby-forum.com/t/translation-model-and-other-issues/205880)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [May 7, 2011, 7:07pm UTC](https://www.ruby-forum.com/t/translation-model-and-other-issues/205880 "2011-05-07T19:07:59Z")

</div>

I just downloaded “es-CL” translation file from git repo but thanslation for Errors are not working good, for example 12 errors prohibited this client from being saved: Contact phone no puede estar en blanco Contact …

---

## [Recordnotfound How to internationalize?](https://www.ruby-forum.com/t/recordnotfound-how-to-internationalize/206039)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [April 21, 2011, 1:25am UTC](https://www.ruby-forum.com/t/recordnotfound-how-to-internationalize/206039 "2011-04-21T01:25:21Z")

</div>

Hi The exception messages for recordnotfound appear to be "Couldn’t find with ID=xxx " and “Couldn’t find without an ID” These are exactly what I need, except I need them in multiple languages. Are there transla…

---

## [What I put in is not what I get back](https://www.ruby-forum.com/t/what-i-put-in-is-not-what-i-get-back/205952)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [April 19, 2011, 10:33am UTC](https://www.ruby-forum.com/t/what-i-put-in-is-not-what-i-get-back/205952 "2011-04-19T10:33:31Z")

</div>

Hi, Rails date\_select method takes an order argument, like this: date\_select ‘page’, ‘publish\_at’, :order =\> \[:day, :month, :year\] The items in the order array must be symbols, so this does not work: date\_select ‘pag…

---

## [Rails initialization, productin mode and babilu](https://www.ruby-forum.com/t/rails-initialization-productin-mode-and-babilu/203713)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [April 6, 2011, 9:31am UTC](https://www.ruby-forum.com/t/rails-initialization-productin-mode-and-babilu/203713 "2011-04-06T09:31:27Z")

</div>

Hi everyone. I use rails 3.0.4, and Babilu a plugin to use rails-i18n in javascript code (see http://tore.darell.no/posts/introducing\_babilu\_rails\_i18n\_for\_your\_javascript) Babilu generates a javascript file that con…

---

## [Number format helpers - standalone?](https://www.ruby-forum.com/t/number-format-helpers-standalone/205365)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [April 5, 2011, 10:21am UTC](https://www.ruby-forum.com/t/number-format-helpers-standalone/205365 "2011-04-05T10:21:45Z")

</div>

Hey, just a question out of interest: I recently created a sinatra project and used ruby-i18n in it. I noticed that there are yaml files for date formats (and also numbers) in the rails-i18n project. They worked out …

---

## [Localized views fallbacks](https://www.ruby-forum.com/t/localized-views-fallbacks/201984)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [March 15, 2011, 8:52pm UTC](https://www.ruby-forum.com/t/localized-views-fallbacks/201984 "2011-03-15T20:52:25Z")

</div>

I am using Rails 2.3.8 and have setup in config/initializers/i18n.rb I18n.backend.class.send(:include, I18n::Backend::Fallbacks) I18n.fallbacks.map(:tc =\> \[:sc, :en\]) so that if there is no translation in tc, the sc t…

---

## [Including a default set of translations with a gem](https://www.ruby-forum.com/t/including-a-default-set-of-translations-with-a-gem/204414)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [March 11, 2011, 1:58pm UTC](https://www.ruby-forum.com/t/including-a-default-set-of-translations-with-a-gem/204414 "2011-03-11T13:58:03Z")

</div>

I’m probably missing something here, but after about an hour of digging around I couldn’t figure this out, so I figured I’d ask. I’ve got a gem that I’d like to add I18N support to. The gem has absolutely no connecti…

---

## [\[ANN\] mongo\_translatable gem, a Ruby on Rails engine for MongoDB backed model translations, is out](https://www.ruby-forum.com/t/ann-mongo-translatable-gem-a-ruby-on-rails-engine-for-mongodb-backed-model-translations-is-out/204381)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [March 10, 2011, 11:38pm UTC](https://www.ruby-forum.com/t/ann-mongo-translatable-gem-a-ruby-on-rails-engine-for-mongodb-backed-model-translations-is-out/204381 "2011-03-10T23:38:15Z")

</div>

Hi everyone, Apologies for the cross posting… We’ve been using mongo\_translatable for awhile as a part of a feature in Kete (an open source Rails app, http://kete.net.nz) for a content translation add-on for awhile …

---

## [Randomly keys translation missing in production](https://www.ruby-forum.com/t/randomly-keys-translation-missing-in-production/201828)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [February 24, 2011, 3:03pm UTC](https://www.ruby-forum.com/t/randomly-keys-translation-missing-in-production/201828 "2011-02-24T15:03:38Z")

</div>

Hello everyone i use rails (= 3.0.3) i18n (0.5.0) in development all fine in production i get translation missing i found temp solution to change config.cache\_classes = false in production but i wouldn’t like tu…

---

## [Invitation for IT JOB FAIR](https://www.ruby-forum.com/t/invitation-for-it-job-fair/203092)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [February 23, 2011, 8:54am UTC](https://www.ruby-forum.com/t/invitation-for-it-job-fair/203092 "2011-02-23T08:54:44Z")

</div>

Dear Friends AMA Business is organizing an IT Job fair in Bangalore on 26th and 27th of February 2011 Below are the feature of job fair \* 100 Software companies \* 2000 + Jobs \* One place multiple option to select j…

---

## [Help with String interpolation of ivar](https://www.ruby-forum.com/t/help-with-string-interpolation-of-ivar/203561)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [February 23, 2011, 12:13am UTC](https://www.ruby-forum.com/t/help-with-string-interpolation-of-ivar/203561 "2011-02-23T00:13:56Z")

</div>

Suppose I have a model class like this: class Shoebox \< ActiveRecord::Base validates\_inclusion\_of :description, :in =\> \[“small”, “medium”\], :message =\> I18n.t(“activerecord.errors.models.shoebox.with\_name”, :name =\> …

---

## [Translating products' description in my database](https://www.ruby-forum.com/t/translating-products-description-in-my-database/203244)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [February 18, 2011, 7:47am UTC](https://www.ruby-forum.com/t/translating-products-description-in-my-database/203244 "2011-02-18T07:47:32Z")

</div>

Hi ! I translated all the texts of my front end of my e-commerce website using i18n. Now I’d like to translate the products’ description located in my database. Which method do you recommend ? Regards

---

## [Utf8\_unicode\_ci,](https://www.ruby-forum.com/t/utf8-unicode-ci/203117)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [February 14, 2011, 7:05am UTC](https://www.ruby-forum.com/t/utf8-unicode-ci/203117 "2011-02-14T07:05:46Z")

</div>

Hej Jag har en rails applikation som anvnder MYSQL och har definierat tabellerna enligt create\_table :places, :force =\> true, :force =\> true, :options =\> ‘ENGINE=InnoDB DEFAULT CHARSET=utf8’ do |table| och html file…

---

## [\[Rails3\] Localization for non activerecord models](https://www.ruby-forum.com/t/rails3-localization-for-non-activerecord-models/202855)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [February 13, 2011, 5:33pm UTC](https://www.ruby-forum.com/t/rails3-localization-for-non-activerecord-models/202855 "2011-02-13T17:33:50Z")

</div>

I have a Contact model that is a non activerecord model. I can use the validation thanks to Rails3, but I do not in which section of en.yml/de.yml I should localize the attributes of my Contact model.

---

## [Organizing translations with I18n::Cascade and I18n::MissingTranslations](https://www.ruby-forum.com/t/organizing-translations-with-i18n-cascade-and-i18n-missingtranslations/203123)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [February 13, 2011, 3:52pm UTC](https://www.ruby-forum.com/t/organizing-translations-with-i18n-cascade-and-i18n-missingtranslations/203123 "2011-02-13T15:52:03Z")

</div>

I thought I’d drop you a note that I’ve written up a few things about what tools we are using to organize translations at work. I get asked these questions a lot so maybe it makes sense to spam the list with this …

---

## [Restful authentication by\_password not translated](https://www.ruby-forum.com/t/restful-authentication-by-password-not-translated/203094)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [February 13, 2011, 9:43am UTC](https://www.ruby-forum.com/t/restful-authentication-by-password-not-translated/203094 "2011-02-13T09:43:05Z")

</div>

I’m running rails 2.3.8 and restful\_authentication and I find the error messages generated in the by\_password.rb are not appearing, instead I get the user-hostile {{attribute}} {{message}} messages. I’ve tried and tri…

---

## [In 1.9.2, with force\_encoding, we still need iconv?](https://www.ruby-forum.com/t/in-1-9-2-with-force-encoding-we-still-need-iconv/202539)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [February 1, 2011, 4:41am UTC](https://www.ruby-forum.com/t/in-1-9-2-with-force-encoding-we-still-need-iconv/202539 "2011-02-01T04:41:29Z")

</div>

I got code in ruby 1.8. Iconv.iconv(‘gbk’, ‘utf-8’, string) now, ruby 1.9.2 has force\_encoding(‘utf-8’), so can I just forceing\_encoding(‘utf-8’) ?

---

## [Help with str.sub(pattern, replacement) and french characters](https://www.ruby-forum.com/t/help-with-str-sub-pattern-replacement-and-french-characters/202159)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [January 24, 2011, 8:55am UTC](https://www.ruby-forum.com/t/help-with-str-sub-pattern-replacement-and-french-characters/202159 "2011-01-24T08:55:03Z")

</div>

I am trying to search my database which has product names with french accents. They are encoded using the html entity codes such as &eactue; etc. If a user enters a word with a french accent in the search box I must …

---

## [Translations for active record models not working here](https://www.ruby-forum.com/t/translations-for-active-record-models-not-working-here/202141)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [January 22, 2011, 8:49pm UTC](https://www.ruby-forum.com/t/translations-for-active-record-models-not-working-here/202141 "2011-01-22T20:49:16Z")

</div>

My setup: Rails 3.0.3 with fast\_gettext, I18n default locale set to ‘it’. I have config/locales/it.yml with general translations (time and date stuff, numbers etc.) Then I created config/locales/models\_it.yml, which …

---

## [Announcing the HerbGobbler: Automatic English Text Extraction from Ruby on Rails Views](https://www.ruby-forum.com/t/announcing-the-herbgobbler-automatic-english-text-extraction-from-ruby-on-rails-views/202056)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [January 20, 2011, 6:25pm UTC](https://www.ruby-forum.com/t/announcing-the-herbgobbler-automatic-english-text-extraction-from-ruby-on-rails-views/202056 "2011-01-20T18:25:53Z")

</div>

Hey Everyone, I just wanted to announce the release of my open source english text extraction tool for Ruby On Rails, the (h)erbgobbler. The HerbGobbler is used to take a non-localized Rails project and convert the…

---

## [Generic Tranlation for controllers](https://www.ruby-forum.com/t/generic-tranlation-for-controllers/201413)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [January 7, 2011, 12:24pm UTC](https://www.ruby-forum.com/t/generic-tranlation-for-controllers/201413 "2011-01-07T12:24:38Z")

</div>

I need something to translate format.html { redirect\_to(@news, :notice =\> ‘News was successfully created.’) } This --\> ‘News was successfully created.’ so I make controller\_created: “%{model} was successfully create…

[Previous page](https://www.ruby-forum.com/c/ruby-on-rails/rails-i18n/17.md)

[Next page](https://www.ruby-forum.com/c/ruby-on-rails/rails-i18n/17.md?page=2)
