# Rails I18n

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

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

---

## [UTF8 vs Latin1 String comparison in MySQL?](https://www.ruby-forum.com/t/utf8-vs-latin1-string-comparison-in-mysql/168387)

<div class="topic-metadata">

**Author:** [@wolframarnold](https://www.ruby-forum.com/u/wolframarnold)\
**Replies:** 1\
**Last updated:** [May 20, 2009, 2:55pm UTC](https://www.ruby-forum.com/t/utf8-vs-latin1-string-comparison-in-mysql/168387 "2009-05-20T14:55:50Z")

</div>

I’m running into a surprising twist in MySql string compare. Try this: select “AmÃ©rica” = “America”; ±-----------------------+ | “AmÃ©rica” = “America” | ±-----------------------+ | 1 | ±---…

---

## [Multilingual model content](https://www.ruby-forum.com/t/multilingual-model-content/167716)

<div class="topic-metadata">

**Author:** [@roa](https://www.ruby-forum.com/u/roa)\
**Replies:** 1\
**Last updated:** [May 20, 2009, 9:54am UTC](https://www.ruby-forum.com/t/multilingual-model-content/167716 "2009-05-20T09:54:23Z")

</div>

Hi I’m looking for some insight in a small problem I have. I need multilingual input in my models. Lets say you have a Product model. That product contains title, description and price. The price is allways the same,…

---

## [Converting UTF-8 to entities like &#x525B;](https://www.ruby-forum.com/t/converting-utf-8-to-entities-like-x525b/167562)

<div class="topic-metadata">

**Author:** [@jianlin](https://www.ruby-forum.com/u/jianlin)\
**Replies:** 1\
**Last updated:** [May 9, 2009, 2:16pm UTC](https://www.ruby-forum.com/t/converting-utf-8-to-entities-like-x525b/167562 "2009-05-09T14:16:12Z")

</div>

I was trying to convert UTF-8 content into a series of entities like 剛 so that whatever the page encoding is, the characters would show… so I used something like this: \<% begin t = ‘’ s = Iconv.conv(“UTF-32”, “UTF…

---

## [Uninitialized constant Iconv](https://www.ruby-forum.com/t/uninitialized-constant-iconv/167090)

<div class="topic-metadata">

**Author:** [@supertiti](https://www.ruby-forum.com/u/supertiti)\
**Replies:** 0\
**Last updated:** [May 3, 2009, 7:01pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-iconv/167090 "2009-05-03T19:01:21Z")

</div>

Hi there, I’m having an issue with a RoR website : when trying to save a text change into the database i get the error below Strange thing is that i imported the database from production where it is working well, und…

---

## [Argument Error](https://www.ruby-forum.com/t/argument-error/165408)

<div class="topic-metadata">

**Author:** [@antonk](https://www.ruby-forum.com/u/antonk)\
**Replies:** 1\
**Last updated:** [April 13, 2009, 7:03pm UTC](https://www.ruby-forum.com/t/argument-error/165408 "2009-04-13T19:03:53Z")

</div>

I used this guide: Rails Internationalization (I18n) API — Ruby on Rails Guides to localize my sample application i’ve set config/environment.rb, controllers/application.rb as it is written in the article #views/home…

---

## [Localization problem in nested-attributes validation](https://www.ruby-forum.com/t/localization-problem-in-nested-attributes-validation/165055)

<div class="topic-metadata">

**Author:** [@benni](https://www.ruby-forum.com/u/benni)\
**Replies:** 0\
**Last updated:** [April 8, 2009, 5:58pm UTC](https://www.ruby-forum.com/t/localization-problem-in-nested-attributes-validation/165055 "2009-04-08T17:58:35Z")

</div>

Hey, I recently run into a problem with the new feature for activerecord: nested attributes. When the nested object (Activist) is invalid, the error messages are shown, but the object name is noch translated. (My pro…

---

## [Locale currency only works for displaying numbers?](https://www.ruby-forum.com/t/locale-currency-only-works-for-displaying-numbers/163837)

<div class="topic-metadata">

**Author:** [@raimon](https://www.ruby-forum.com/u/raimon)\
**Replies:** 0\
**Last updated:** [March 25, 2009, 11:24am UTC](https://www.ruby-forum.com/t/locale-currency-only-works-for-displaying-numbers/163837 "2009-03-25T11:24:34Z")

</div>

Hello, Using a locale I can format the same number for displaying it: database: 1900.58 en layout: 1,900.58 cat layout: 1.900,58 this is ok … but how I can do the reverse of it, when the user submits via form a nu…

---

## [Problem with running functional tests( ActionView::Template)](https://www.ruby-forum.com/t/problem-with-running-functional-tests-actionview-template/153290)

<div class="topic-metadata">

**Author:** [@kirankinuforu](https://www.ruby-forum.com/u/kirankinuforu)\
**Replies:** 1\
**Last updated:** [March 23, 2009, 8:48pm UTC](https://www.ruby-forum.com/t/problem-with-running-functional-tests-actionview-template/153290 "2009-03-23T20:48:34Z")

</div>

Hi, I am trying to run functional tests in my application but I am getting following error when I am trying to the tests: Error: test\_profile\_member\_card\_visitor\_viewing\_public(MembersControllerTest): ActionView::T…

---

## [Guides on ActiveRecord error I18n seem to be WRONG](https://www.ruby-forum.com/t/guides-on-activerecord-error-i18n-seem-to-be-wrong/160929)

<div class="topic-metadata">

**Author:** [@absolute-beginner](https://www.ruby-forum.com/u/absolute-beginner)\
**Replies:** 4\
**Last updated:** [March 21, 2009, 11:08pm UTC](https://www.ruby-forum.com/t/guides-on-activerecord-error-i18n-seem-to-be-wrong/160929 "2009-03-21T23:08:46Z")

</div>

Hi everyone. I was trying to customize AR validation error messages and came across this kind of message lookup order, which EVERY I18n guide in existence seems to be giving: activerecord.errors.messages.models.user.…

---

## [Localizing images](https://www.ruby-forum.com/t/localizing-images/160525)

<div class="topic-metadata">

**Author:** [@zeba-momin](https://www.ruby-forum.com/u/zeba-momin)\
**Replies:** 1\
**Last updated:** [March 19, 2009, 12:06am UTC](https://www.ruby-forum.com/t/localizing-images/160525 "2009-03-19T00:06:43Z")

</div>

Hi, I’m using rails 2.2.2 and i18n for localization… I want to know…how do I localize the text which are a part of images…??? Currently I’m offering English and German as the language options… I have made exact copi…

---

## [I18n error with Rails 2.2.2](https://www.ruby-forum.com/t/i18n-error-with-rails-2-2-2/160237)

<div class="topic-metadata">

**Author:** [@zeba-momin](https://www.ruby-forum.com/u/zeba-momin)\
**Replies:** 1\
**Last updated:** [March 18, 2009, 8:48pm UTC](https://www.ruby-forum.com/t/i18n-error-with-rails-2-2-2/160237 "2009-03-18T20:48:36Z")

</div>

hi, I’m using i18n with Rails 2.2.2 to internationalize my rails application. I’ve followed the steps as specified at: But …I get the following error when I try to run it: You have a nil object when you didn’t expe…

---

## [Custom error messages](https://www.ruby-forum.com/t/custom-error-messages/163241)

<div class="topic-metadata">

**Author:** [@s-andringa](https://www.ruby-forum.com/u/s-andringa)\
**Replies:** 1\
**Last updated:** [March 18, 2009, 4:15pm UTC](https://www.ruby-forum.com/t/custom-error-messages/163241 "2009-03-18T16:15:12Z")

</div>

I’ve been trying to have a translated custom error message for when the format of a user’s email address is invalid. I’m running rails 2.2.2 and trying to save the translations to the key activerecord.errors.models.us…

---

## [Translate model name when validation fails](https://www.ruby-forum.com/t/translate-model-name-when-validation-fails/162404)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 2\
**Last updated:** [March 18, 2009, 3:59pm UTC](https://www.ruby-forum.com/t/translate-model-name-when-validation-fails/162404 "2009-03-18T15:59:07Z")

</div>

Let’s say I want to submit a user. Currently if the user submission fails, I get the name “user”, but I would like to translate it into other languages. I can make the translation work for its attributes but not the m…

---

## [Creating list of values LOV](https://www.ruby-forum.com/t/creating-list-of-values-lov/196908)

<div class="topic-metadata">

**Author:** [@preethi](https://www.ruby-forum.com/u/preethi)\
**Replies:** 0\
**Last updated:** [March 4, 2009, 10:52am UTC](https://www.ruby-forum.com/t/creating-list-of-values-lov/196908 "2009-03-04T10:52:20Z")

</div>

Hi, I want to select some users from ‘n’ number of user, where, right now I’m using textboxes which take search criteria and populating a list box. I want to replace the whole thing with an LOV(list of values) featur…

---

## [Loading several locales files](https://www.ruby-forum.com/t/loading-several-locales-files/156311)

<div class="topic-metadata">

**Author:** [@micktaiwan](https://www.ruby-forum.com/u/micktaiwan)\
**Replies:** 1\
**Last updated:** [March 2, 2009, 12:14am UTC](https://www.ruby-forum.com/t/loading-several-locales-files/156311 "2009-03-02T00:14:20Z")

</div>

Hi, If I put my 2 locales en and fr in one file (config/locales/en.yml) english an french locales are loaded and I can switch between the two. But if I put the french local in a separate fr.yml file, then I get “tran…

---

## [Has\_many :through, expects "through" model to be belongs\_to](https://www.ruby-forum.com/t/has-many-through-expects-through-model-to-be-belongs-to/161640)

<div class="topic-metadata">

**Author:** [@preethi](https://www.ruby-forum.com/u/preethi)\
**Replies:** 0\
**Last updated:** [February 28, 2009, 7:20am UTC](https://www.ruby-forum.com/t/has-many-through-expects-through-model-to-be-belongs-to/161640 "2009-02-28T07:20:46Z")

</div>

Hi, I’m using has\_many and through relationship between two models Profile and User Profile.rb has\_and\_belongs\_to\_many :users belongs\_to :community User.rb has\_and\_belongs\_to\_many :profiles has\_many :communities, :…

---

## [Polymorphic associations has\_many :through](https://www.ruby-forum.com/t/polymorphic-associations-has-many-through/196903)

<div class="topic-metadata">

**Author:** [@preethi](https://www.ruby-forum.com/u/preethi)\
**Replies:** 0\
**Last updated:** [February 27, 2009, 3:55pm UTC](https://www.ruby-forum.com/t/polymorphic-associations-has-many-through/196903 "2009-02-27T15:55:19Z")

</div>

Hi, I’m facing an issue in polymorphic associations when i try to to :through relationship. I’ve three models:profile,gbluser,community profile.rb belongs\_to :node ,:polymorphic =\> true belongs\_to :community,:class\_…

---

## [Trying to do simple model I18n, not succeeding](https://www.ruby-forum.com/t/trying-to-do-simple-model-i18n-not-succeeding/161080)

<div class="topic-metadata">

**Author:** [@richp](https://www.ruby-forum.com/u/richp)\
**Replies:** 1\
**Last updated:** [February 23, 2009, 4:56pm UTC](https://www.ruby-forum.com/t/trying-to-do-simple-model-i18n-not-succeeding/161080 "2009-02-23T16:56:42Z")

</div>

Basically, all my tables look like this: create\_table “countries”, :force =\> true do |t| t.string “name\_en” t.string “name\_ja” end If the locale is set to ‘en’, I want Country.name to return Country.name\_en. Is the…

---

## [Parms variable](https://www.ruby-forum.com/t/parms-variable/160311)

<div class="topic-metadata">

**Author:** [@vetrivel](https://www.ruby-forum.com/u/vetrivel)\
**Replies:** 0\
**Last updated:** [February 14, 2009, 7:35am UTC](https://www.ruby-forum.com/t/parms-variable/160311 "2009-02-14T07:35:35Z")

</div>

I have doutes on params variable in rails. How to convert params to hash in rails.

---

## [Problem in before\_filter](https://www.ruby-forum.com/t/problem-in-before-filter/159848)

<div class="topic-metadata">

**Author:** [@preethi](https://www.ruby-forum.com/u/preethi)\
**Replies:** 0\
**Last updated:** [February 9, 2009, 12:34pm UTC](https://www.ruby-forum.com/t/problem-in-before-filter/159848 "2009-02-09T12:34:22Z")

</div>

Hi, I’ve a session data that is generated when a user logs in. I’m trying to access that session data, in before\_filter, in a different controller for passing parameter to the before\_filter function. before\_filter :o…

---

## [Posted form fields becomes \[Binary Data\] insted of strings](https://www.ruby-forum.com/t/posted-form-fields-becomes-binary-data-insted-of-strings/159640)

<div class="topic-metadata">

**Author:** [@bikle](https://www.ruby-forum.com/u/bikle)\
**Replies:** 1\
**Last updated:** [February 7, 2009, 3:21pm UTC](https://www.ruby-forum.com/t/posted-form-fields-becomes-binary-data-insted-of-strings/159640 "2009-02-07T15:21:07Z")

</div>

Hi every one, I’m having problems with my Rails forms. When I submit a form that holds strings containing letters like Ã¥,Ã¤ or Ã¶ then the strings in the params variable are converted into \[Binary Data\]. Does anyone …

---

## [How to glob with international or unicode file names?](https://www.ruby-forum.com/t/how-to-glob-with-international-or-unicode-file-names/117187)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 1\
**Last updated:** [February 2, 2009, 5:03pm UTC](https://www.ruby-forum.com/t/how-to-glob-with-international-or-unicode-file-names/117187 "2009-02-02T17:03:16Z")

</div>

with the Dir\[" path "\] or Dir.glob is it possible to glob the filenames with unicode or international characters in it? Right now it is returning ???.mp3 to test it, you can grab some international characters at h…

---

## [I18n with Active record](https://www.ruby-forum.com/t/i18n-with-active-record/158712)

<div class="topic-metadata">

**Author:** [@tinucleatus](https://www.ruby-forum.com/u/tinucleatus)\
**Replies:** 0\
**Last updated:** [January 27, 2009, 6:16am UTC](https://www.ruby-forum.com/t/i18n-with-active-record/158712 "2009-01-27T06:16:00Z")

</div>

Hello all, I am working on a new app where I need to implement internationalization. But the thing is a bit complicated. That is, initially there will be a few language translations available but later the user needs…

---

## [How to refresh Image through ajax request](https://www.ruby-forum.com/t/how-to-refresh-image-through-ajax-request/157924)

<div class="topic-metadata">

**Author:** [@sauravsuman012](https://www.ruby-forum.com/u/sauravsuman012)\
**Replies:** 0\
**Last updated:** [January 16, 2009, 4:34pm UTC](https://www.ruby-forum.com/t/how-to-refresh-image-through-ajax-request/157924 "2009-01-16T16:34:40Z")

</div>

Hi all , I am very new for ruby. I am using Ajax Request(Rmagick in controller) for changing image on my DIV but the problem is it refresh for first time only then after i have to refresh the browser always. If anybod…

---

## [Need XSLT help](https://www.ruby-forum.com/t/need-xslt-help/157916)

<div class="topic-metadata">

**Author:** [@yankees26](https://www.ruby-forum.com/u/yankees26)\
**Replies:** 0\
**Last updated:** [January 16, 2009, 3:52pm UTC](https://www.ruby-forum.com/t/need-xslt-help/157916 "2009-01-16T15:52:56Z")

</div>

is there any tool which will generate XSLT for converting from XML to fixed lenght Text format.I mean is there any IDE which will let us drag and drop the contents of XML and set some properties and give us the XSLT c…

---

## [How to use onsubmit in remote\_form\_for.....?](https://www.ruby-forum.com/t/how-to-use-onsubmit-in-remote-form-for/157872)

<div class="topic-metadata">

**Author:** [@vikas](https://www.ruby-forum.com/u/vikas)\
**Replies:** 0\
**Last updated:** [January 16, 2009, 6:09am UTC](https://www.ruby-forum.com/t/how-to-use-onsubmit-in-remote-form-for/157872 "2009-01-16T06:09:21Z")

</div>

I want to check whether textfield is empty or not at onsubmit event of form, but it is not working. Can any one tell me how to check empty textfield on remote\_form\_for’s onsubmit event??? my code is ---------------\> …

---

## [Some hyperlink dont work in Safari](https://www.ruby-forum.com/t/some-hyperlink-dont-work-in-safari/157745)

<div class="topic-metadata">

**Author:** [@flashit](https://www.ruby-forum.com/u/flashit)\
**Replies:** 1\
**Last updated:** [January 15, 2009, 9:08am UTC](https://www.ruby-forum.com/t/some-hyperlink-dont-work-in-safari/157745 "2009-01-15T09:08:05Z")

</div>

I am working on a consumer review web site http://www.consupo.com. For some reason, the links on this page http://www.consupo.com/cases/cases\_by\_category/restaurants/D doesn’t work on safari. It works fine on IE and…

---

## [I18n available Transalation Databases](https://www.ruby-forum.com/t/i18n-available-transalation-databases/157626)

<div class="topic-metadata">

**Author:** [@croese](https://www.ruby-forum.com/u/croese)\
**Replies:** 0\
**Last updated:** [January 13, 2009, 8:28pm UTC](https://www.ruby-forum.com/t/i18n-available-transalation-databases/157626 "2009-01-13T20:28:59Z")

</div>

Hi Folks, i have a little Problem, i want my application to autogenerate a liste of available languages/translation databases, somewhere on the net somebody mentioned the use of I18n.candidates, unfortunatly that does…

---

## [Automatically detect client's locale setting](https://www.ruby-forum.com/t/automatically-detect-clients-locale-setting/155321)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 1\
**Last updated:** [January 13, 2009, 8:25pm UTC](https://www.ruby-forum.com/t/automatically-detect-clients-locale-setting/155321 "2009-01-13T20:25:43Z")

</div>

Hi, Does I18n provide any easy feature to detect the client’s browser locale?

---

## [Nested Sentance translation](https://www.ruby-forum.com/t/nested-sentance-translation/157164)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 0\
**Last updated:** [January 8, 2009, 1:17am UTC](https://www.ruby-forum.com/t/nested-sentance-translation/157164 "2009-01-08T01:17:58Z")

</div>

I want to have a sentence that contains elements i already have translations for. I already have: \<%= t ‘nested’ %\> \<%= t ‘be\_cool’ %\> This is my sentance: “This is an example of where nested translations would be …

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

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