# Rails I18n

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

[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:** 7

---

## [Rails 3 validation error messages](https://www.ruby-forum.com/t/rails-3-validation-error-messages/182226)

<div class="topic-metadata">

**Author:** [@Sven\_F](https://www.ruby-forum.com/u/Sven_F)\
**Replies:** 7\
**Last updated:** [January 27, 2010, 5:03am UTC](https://www.ruby-forum.com/t/rails-3-validation-error-messages/182226 "2010-01-27T05:03:28Z")

</div>

\[José, Mateo, I’ll move this to the list\] Ok, so we’ve had this short non-discussion on rails-core :slight\_smile: It seems that Rails 3 validation error messages will be back to the state of pre 2.3.3 at least for a s…

---

## [I18n controller-view](https://www.ruby-forum.com/t/i18n-controller-view/182298)

<div class="topic-metadata">

**Author:** [@furoh](https://www.ruby-forum.com/u/furoh)\
**Replies:** 1\
**Last updated:** [January 26, 2010, 10:20am UTC](https://www.ruby-forum.com/t/i18n-controller-view/182298 "2010-01-26T10:20:29Z")

</div>

hello, could you tell me why this doesn’t work? controller: flash\[:success\] = t(‘flash.added’, :item =\> t(‘dictionary.challenge’)) en.yml dictionary: challenge: Challenge flash: added: {{item}} has been successful…

---

## [Aggregate similar sentences](https://www.ruby-forum.com/t/aggregate-similar-sentences/182268)

<div class="topic-metadata">

**Author:** [@furoh](https://www.ruby-forum.com/u/furoh)\
**Replies:** 9\
**Last updated:** [January 25, 2010, 9:12pm UTC](https://www.ruby-forum.com/t/aggregate-similar-sentences/182268 "2010-01-25T21:12:48Z")

</div>

Hello, I want to aggregate some similar sentences, which will work with i18n in the en.yml file Now I have redundancies like: challenge\_created\_success: Challenge has been successfully created. change\_created: Chang…

---

## [Question on custom control](https://www.ruby-forum.com/t/question-on-custom-control/182107)

<div class="topic-metadata">

**Author:** [@mayur\_sk](https://www.ruby-forum.com/u/mayur_sk)\
**Replies:** 2\
**Last updated:** [January 22, 2010, 7:23pm UTC](https://www.ruby-forum.com/t/question-on-custom-control/182107 "2010-01-22T19:23:29Z")

</div>

i have a made a custom control. which has text box and drop down . text box has the value and drop down has a units if you change the units the value will change accordingly . the problem i am facing is, when i chan…

---

## [How build two translated model in the same time with globalize2?](https://www.ruby-forum.com/t/how-build-two-translated-model-in-the-same-time-with-globalize2/182053)

<div class="topic-metadata">

**Author:** [@Arnette31](https://www.ruby-forum.com/u/Arnette31)\
**Replies:** 1\
**Last updated:** [January 22, 2010, 5:22pm UTC](https://www.ruby-forum.com/t/how-build-two-translated-model-in-the-same-time-with-globalize2/182053 "2010-01-22T17:22:10Z")

</div>

Hi, I a new user of ruby on rails (2.3.4) and globalize 2 (0.2.0). I have some prolems to use globalize2. I think globalize 2 is powerfull and perhaps I don’t understand how it works… with the documentation, the use …

---

## [Accessing I18n translations yamls](https://www.ruby-forum.com/t/accessing-i18n-translations-yamls/182092)

<div class="topic-metadata">

**Author:** [@joahking](https://www.ruby-forum.com/u/joahking)\
**Replies:** 2\
**Last updated:** [January 22, 2010, 4:02pm UTC](https://www.ruby-forum.com/t/accessing-i18n-translations-yamls/182092 "2010-01-22T16:02:33Z")

</div>

hello there, I’m trying to hack a little helper project of mine and I might be interest in accessing the yamls loaded by I18n (I mean I could load them by myself, but accessing them through I18n is more backend agno…

---

## [Globalize2 v0.2.0 upcoming](https://www.ruby-forum.com/t/globalize2-v0-2-0-upcoming/180698)

<div class="topic-metadata">

**Author:** [@Sven\_F](https://www.ruby-forum.com/u/Sven_F)\
**Replies:** 6\
**Last updated:** [January 20, 2010, 11:00pm UTC](https://www.ruby-forum.com/t/globalize2-v0-2-0-upcoming/180698 "2010-01-20T23:00:07Z")

</div>

I’ve just tagged Globalize2 v0.1.1 and merged the 0.2.0 to master. Globalize2 v0.2.0 will ship no features except model translations. The first version of Gobalize2 had to implement a few things that had not made it i…

---

## [Issues in 0.3.3](https://www.ruby-forum.com/t/issues-in-0-3-3/181510)

<div class="topic-metadata">

**Author:** [@knapo](https://www.ruby-forum.com/u/knapo)\
**Replies:** 3\
**Last updated:** [January 17, 2010, 11:40pm UTC](https://www.ruby-forum.com/t/issues-in-0-3-3/181510 "2010-01-17T23:40:09Z")

</div>

Hi, After great Jose’s article at I started using 0.3.3 (thanks for great improvements!), unfortunately had some issue I reported on Issues · ruby-i18n/i18n · GitHub. Here are described fixes and more thoughts about…

---

## [Build translations from translations](https://www.ruby-forum.com/t/build-translations-from-translations/181751)

<div class="topic-metadata">

**Author:** [@james](https://www.ruby-forum.com/u/james)\
**Replies:** 0\
**Last updated:** [January 17, 2010, 8:17pm UTC](https://www.ruby-forum.com/t/build-translations-from-translations/181751 "2010-01-17T20:17:40Z")

</div>

I’d like to do something like the following in my en.yml file: foo: “foo” bar: “bar” foobar: “{:foo} {:bar}” Some languages will demand that foobar come out as “{:bar} {:foo}” or some other combination. Is there sup…

---

## [Mapping locale to language name via the YML file](https://www.ruby-forum.com/t/mapping-locale-to-language-name-via-the-yml-file/181592)

<div class="topic-metadata">

**Author:** [@malesca](https://www.ruby-forum.com/u/malesca)\
**Replies:** 3\
**Last updated:** [January 17, 2010, 6:56pm UTC](https://www.ruby-forum.com/t/mapping-locale-to-language-name-via-the-yml-file/181592 "2010-01-17T18:56:16Z")

</div>

This is fairly obvious, but I thought I’d share since I haven’t seen quite this solution mentioned elsewhere. I wanted some way to map a locale (e.g. :en) to the language name (e.g. “English”) for a select box. Rather…

---

## [Globalize2 - virtual attributes to access field in a specific language directly](https://www.ruby-forum.com/t/globalize2-virtual-attributes-to-access-field-in-a-specific-language-directly/181583)

<div class="topic-metadata">

**Author:** [@hydrozen](https://www.ruby-forum.com/u/hydrozen)\
**Replies:** 2\
**Last updated:** [January 17, 2010, 4:05pm UTC](https://www.ruby-forum.com/t/globalize2-virtual-attributes-to-access-field-in-a-specific-language-directly/181583 "2010-01-17T16:05:24Z")

</div>

Hi, I just did a small extension to the translates method of globalize2 so that it defines a couple additional attributes to my model. For example, since my application supports french and english, when I do translat…

---

## [Ruby-cldr](https://www.ruby-forum.com/t/ruby-cldr/181714)

<div class="topic-metadata">

**Author:** [@Sven\_F](https://www.ruby-forum.com/u/Sven_F)\
**Replies:** 0\
**Last updated:** [January 16, 2010, 8:49pm UTC](https://www.ruby-forum.com/t/ruby-cldr/181714 "2010-01-16T20:49:07Z")

</div>

I’ve finally come around working on my cldr code a little bit. GitHub - ruby-i18n/ruby-cldr: Ruby library for exporting data from CLDR (Common Locale Data Repository) RubyGems.org | your community gem host The goals o…

---

## [Gettext 1.90 to 2.0.5](https://www.ruby-forum.com/t/gettext-1-90-to-2-0-5/181398)

<div class="topic-metadata">

**Author:** [@ledowong](https://www.ruby-forum.com/u/ledowong)\
**Replies:** 1\
**Last updated:** [January 11, 2010, 1:35pm UTC](https://www.ruby-forum.com/t/gettext-1-90-to-2-0-5/181398 "2010-01-11T13:35:35Z")

</div>

I upgrade our project from Rails 2.0.2 to Rails 2.3.5. We are using gettext 1.9x, so I follow this tutorial to upgrade the gettext plugin.: http://www.yotabanana.com/hiki/ruby-gettext-rails-migration.html base on the …

---

## [File upload using form\_remote tag](https://www.ruby-forum.com/t/file-upload-using-form-remote-tag/168628)

<div class="topic-metadata">

**Author:** [@shameermelethil](https://www.ruby-forum.com/u/shameermelethil)\
**Replies:** 1\
**Last updated:** [January 7, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/file-upload-using-form-remote-tag/168628 "2010-01-07T16:22:33Z")

</div>

Is it possible to upload files using form\_remote\_tag in rails 2.3.2. If please explain me the steps to follow. Thanks in advance Shameer Melethil

---

## [Changing :activerecord to :models in Rails yml files](https://www.ruby-forum.com/t/changing-activerecord-to-models-in-rails-yml-files/181019)

<div class="topic-metadata">

**Author:** [@josevalim](https://www.ruby-forum.com/u/josevalim)\
**Replies:** 17\
**Last updated:** [January 7, 2010, 9:02am UTC](https://www.ruby-forum.com/t/changing-activerecord-to-models-in-rails-yml-files/181019 "2010-01-07T09:02:37Z")

</div>

Hey folks, I want to propose changing the namespace in I18n files from :activerecord to :models. The reason is to be more agnostic since with ActiveModel it will appear several plugins that are similar to ActiveRecor…

---

## [Currency locale](https://www.ruby-forum.com/t/currency-locale/181172)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 6, 2010, 9:03pm UTC](https://www.ruby-forum.com/t/currency-locale/181172 "2010-01-06T21:03:07Z")

</div>

Hi Andrey, The API with t/translation methods is far better, thanks :slight\_smile: Important thing is ability to localize currencies. Locales need to convey informations about: number of digits after decimal separat…

---

## [Script to extract text from application](https://www.ruby-forum.com/t/script-to-extract-text-from-application/156827)

<div class="topic-metadata">

**Author:** [@tuktuk](https://www.ruby-forum.com/u/tuktuk)\
**Replies:** 2\
**Last updated:** [January 2, 2010, 6:22pm UTC](https://www.ruby-forum.com/t/script-to-extract-text-from-application/156827 "2010-01-02T18:22:36Z")

</div>

I accidentally posted this question in the Rails forum, but it might fit better here… I have a Rails application, that has grown quite large. At the moment all texts are placed inside the template files like this: Th…

---

## [Rails i18n or globalization plugin](https://www.ruby-forum.com/t/rails-i18n-or-globalization-plugin/180848)

<div class="topic-metadata">

**Author:** [@sathish](https://www.ruby-forum.com/u/sathish)\
**Replies:** 0\
**Last updated:** [December 30, 2009, 11:24am UTC](https://www.ruby-forum.com/t/rails-i18n-or-globalization-plugin/180848 "2009-12-30T11:24:53Z")

</div>

Hi,I have been trying to adopt the globalization plug-in or Using Rails I18n for my application to make it internationalization. In both of the I18n and globalization,I have figured out the translation was done in mos…

---

## [I18n full\_message testing problem](https://www.ruby-forum.com/t/i18n-full-message-testing-problem/179093)

<div class="topic-metadata">

**Author:** [@benol](https://www.ruby-forum.com/u/benol)\
**Replies:** 0\
**Last updated:** [November 17, 2009, 2:47pm UTC](https://www.ruby-forum.com/t/i18n-full-message-testing-problem/179093 "2009-11-17T14:47:11Z")

</div>

Hi. Rails version 2.3.4 ----------- Running a functional test: -------------- Exception: translation missing: pl, activerecord, errors, models, user, attributes, email, email\_short app/views/users/new.pl.html.erb:3 …

---

## [Error trying to translate a model name in a validation message](https://www.ruby-forum.com/t/error-trying-to-translate-a-model-name-in-a-validation-message/178438)

<div class="topic-metadata">

**Author:** [@pezdude](https://www.ruby-forum.com/u/pezdude)\
**Replies:** 0\
**Last updated:** [November 4, 2009, 5:11pm UTC](https://www.ruby-forum.com/t/error-trying-to-translate-a-model-name-in-a-validation-message/178438 "2009-11-04T17:11:26Z")

</div>

So far I’ve found internationalization with Rails to be a very pleasant experience. But I’ve run into trouble trying to translate model names and I need a little help. Here’s my fr.yml: fr: activerecord: models: p…

---

## [Very strange problem with Gettext and Haml](https://www.ruby-forum.com/t/very-strange-problem-with-gettext-and-haml/196987)

<div class="topic-metadata">

**Author:** [@slafochmed](https://www.ruby-forum.com/u/slafochmed)\
**Replies:** 1\
**Last updated:** [October 16, 2009, 8:47am UTC](https://www.ruby-forum.com/t/very-strange-problem-with-gettext-and-haml/196987 "2009-10-16T08:47:17Z")

</div>

Hi, I’m on Rails 2.3.3 and using Haml 2.0.9 for my templates and Gettext-Rails 2.0.4 for the translation. Haml works like a charm and gettext is also working like it should. But I cant get Gettext to parse Haml Files…

---

## [Telephone number validation and formatting](https://www.ruby-forum.com/t/telephone-number-validation-and-formatting/177158)

<div class="topic-metadata">

**Author:** [@raffil](https://www.ruby-forum.com/u/raffil)\
**Replies:** 0\
**Last updated:** [October 12, 2009, 5:22pm UTC](https://www.ruby-forum.com/t/telephone-number-validation-and-formatting/177158 "2009-10-12T17:22:55Z")

</div>

I’m working to build a telephone number validation and formatting method. I’m attaching an address\_helper I use for this. I’d like to get comments on it. The method is based on extending the country model by adding 4…

---

## [Error occurs while using savage beast plugin](https://www.ruby-forum.com/t/error-occurs-while-using-savage-beast-plugin/176619)

<div class="topic-metadata">

**Author:** [@preksha](https://www.ruby-forum.com/u/preksha)\
**Replies:** 0\
**Last updated:** [October 3, 2009, 9:29am UTC](https://www.ruby-forum.com/t/error-occurs-while-using-savage-beast-plugin/176619 "2009-10-03T09:29:53Z")

</div>

Hi all, I am using savage-beast plugin for forum…i have integrated code with my application as given in readme file of savage-beast but now when i try to run /script/server it gives me following error: =\> Booting Mon…

---

## [Problems switching language after search form resuls](https://www.ruby-forum.com/t/problems-switching-language-after-search-form-resuls/176573)

<div class="topic-metadata">

**Author:** [@mitch\_newbie](https://www.ruby-forum.com/u/mitch_newbie)\
**Replies:** 0\
**Last updated:** [October 2, 2009, 1:02pm UTC](https://www.ruby-forum.com/t/problems-switching-language-after-search-form-resuls/176573 "2009-10-02T13:02:51Z")

</div>

I have a form that allows the user to search for a manufacturer. It works fine. Now I am making the site in two languages French and English. I have the basics of I18ln working as suggested in Agile Web D. book. Howe…

---

## [Translatable columns and default language](https://www.ruby-forum.com/t/translatable-columns-and-default-language/175926)

<div class="topic-metadata">

**Author:** [@lis2](https://www.ruby-forum.com/u/lis2)\
**Replies:** 0\
**Last updated:** [September 23, 2009, 12:10am UTC](https://www.ruby-forum.com/t/translatable-columns-and-default-language/175926 "2009-09-23T00:10:09Z")

</div>

Hello. I use plugin translatable\_column. In admin panel user can add title in two languages(english and german) In application I wish that if language is german and the title in german isn\`t added, rails should show …

---

## [Problem with Iconv](https://www.ruby-forum.com/t/problem-with-iconv/174371)

<div class="topic-metadata">

**Author:** [@yankees26](https://www.ruby-forum.com/u/yankees26)\
**Replies:** 0\
**Last updated:** [August 25, 2009, 9:17pm UTC](https://www.ruby-forum.com/t/problem-with-iconv/174371 "2009-08-25T21:17:58Z")

</div>

Hello! Here is my code: require ‘iconv’ result = Iconv.iconv(‘ascii//translit//IGNORE’, ‘utf-8’, “zaÅ¼Ã³Å‚Ä‡ gÄ™Å›lÄ… jaÅºÅ„”) puts result.to\_s.gsub(/\[^\\x00-\\x7F\]+/, ‘’).gsub(/\[^\\w\_ -\]+/i, ‘’) Result (Mac OS X Le…

---

## [Translate Pages](https://www.ruby-forum.com/t/translate-pages/174154)

<div class="topic-metadata">

**Author:** [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Replies:** 0\
**Last updated:** [August 21, 2009, 12:23pm UTC](https://www.ruby-forum.com/t/translate-pages/174154 "2009-08-21T12:23:47Z")

</div>

Hi Guys, PROBLEMS: Our website supports both Chinese and English. We found that there are many cases need different ways of translation. a. For the views, we can translate words easily using the “\_(‘hello world’)” f…

---

## [Translating missing for I18n in models after upgrading gem](https://www.ruby-forum.com/t/translating-missing-for-i18n-in-models-after-upgrading-gem/173550)

<div class="topic-metadata">

**Author:** [@bitonio2](https://www.ruby-forum.com/u/bitonio2)\
**Replies:** 1\
**Last updated:** [August 11, 2009, 1:38pm UTC](https://www.ruby-forum.com/t/translating-missing-for-i18n-in-models-after-upgrading-gem/173550 "2009-08-11T13:38:59Z")

</div>

Hi everyone, I deployed yesterday a new version of my website. For some features, I had to upgrade rubygems to 1.3.1 version. Here is my gem env : RubyGems Environment: RUBYGEMS VERSION: 1.3.1 RUBY VERSION: 1.8.6 (2…

---

## [Text\_field as date](https://www.ruby-forum.com/t/text-field-as-date/168700)

<div class="topic-metadata">

**Author:** [@pink-ink](https://www.ruby-forum.com/u/pink-ink)\
**Replies:** 0\
**Last updated:** [May 24, 2009, 4:54pm UTC](https://www.ruby-forum.com/t/text-field-as-date/168700 "2009-05-24T16:54:30Z")

</div>

Hi Ruby Comuniy! I have implemented i18n and when I set the locale to “de” everthing works fine, I mean date\_select shows the german date-format. The problem is, that I want to use a text\_field for date-input like: \<%…

---

## [Data in database in multiple languages (newbie)](https://www.ruby-forum.com/t/data-in-database-in-multiple-languages-newbie/168457)

<div class="topic-metadata">

**Author:** [@damaris](https://www.ruby-forum.com/u/damaris)\
**Replies:** 0\
**Last updated:** [May 20, 2009, 11:51pm UTC](https://www.ruby-forum.com/t/data-in-database-in-multiple-languages-newbie/168457 "2009-05-20T23:51:48Z")

</div>

Hi you all, I have an application where my data in the database is stored in one language (Spanish), where a record has “name”, “desc”, etc. However, I also have to show the user the data in English. I’ve read some st…

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

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