# Rails I18n

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

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

---

## [Passing a dynamic class to translate](https://www.ruby-forum.com/t/passing-a-dynamic-class-to-translate/156617)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 1\
**Last updated:** [January 4, 2009, 8:56pm UTC](https://www.ruby-forum.com/t/passing-a-dynamic-class-to-translate/156617 "2009-01-04T20:56:49Z")

</div>

I have a single form that can be used for multiple models, in my view i origionally had “Add a New #{@element.class}” how can i write a dynamic i18n translate call? I want to do something like \<%= t ‘removed\_email\_ad…

---

## [Different view based on different model](https://www.ruby-forum.com/t/different-view-based-on-different-model/156830)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 1\
**Last updated:** [January 4, 2009, 8:56pm UTC](https://www.ruby-forum.com/t/different-view-based-on-different-model/156830 "2009-01-04T20:56:21Z")

</div>

I have a view that looks like this “Add a New #{@element.class}” where my class can be “definition”, “phrase”, etc. I want to do something like \<%= t ‘removed\_email\_address@domain.invalid’%\> so when @element is a “ph…

---

## [I18n plugin for merb](https://www.ruby-forum.com/t/i18n-plugin-for-merb/156339)

<div class="topic-metadata">

**Author:** [@madiba](https://www.ruby-forum.com/u/madiba)\
**Replies:** 0\
**Last updated:** [December 25, 2008, 12:08am UTC](https://www.ruby-forum.com/t/i18n-plugin-for-merb/156339 "2008-12-25T00:08:24Z")

</div>

Hello. I have been writing a i18n/l10n plugin for merb. Today I get knew about the merging betwean the merb and rails. I’m not entiry sure but while I looked through rails api it seems that I have more richer API then…

---

## [Easy Puzzle Mountain problem](https://www.ruby-forum.com/t/easy-puzzle-mountain-problem/90345)

<div class="topic-metadata">

**Author:** [@wtt](https://www.ruby-forum.com/u/wtt)\
**Replies:** 21\
**Last updated:** [December 21, 2008, 6:11am UTC](https://www.ruby-forum.com/t/easy-puzzle-mountain-problem/90345 "2008-12-21T06:11:38Z")

</div>

Hello everyone, Did you guys work on UTF-8 before? If so, could you take a look at the problem below. I’d like to hear your thoughts about tackling this kind of problems. It is about the software internalization. I c…

---

## [Auto detect URL](https://www.ruby-forum.com/t/auto-detect-url/155506)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 2\
**Last updated:** [December 12, 2008, 8:27pm UTC](https://www.ruby-forum.com/t/auto-detect-url/155506 "2008-12-12T20:27:37Z")

</div>

Is it possible to read the URL that someone uses to access your site. For example: I own, www.english.com and www.chinese.com and only have one rails site. Is it possible, when a user accessing my rails site from eng…

---

## [Postgresql search](https://www.ruby-forum.com/t/postgresql-search/146877)

<div class="topic-metadata">

**Author:** [@8bits](https://www.ruby-forum.com/u/8bits)\
**Replies:** 1\
**Last updated:** [October 27, 2008, 7:34pm UTC](https://www.ruby-forum.com/t/postgresql-search/146877 "2008-10-27T19:34:14Z")

</div>

What do you think is the best plugin to make a heavily-trafficked postgre database searchable?

---

## [About I18n performance in rails 2.2](https://www.ruby-forum.com/t/about-i18n-performance-in-rails-2-2/147274)

<div class="topic-metadata">

**Author:** [@edgarjs](https://www.ruby-forum.com/u/edgarjs)\
**Replies:** 1\
**Last updated:** [October 27, 2008, 7:29pm UTC](https://www.ruby-forum.com/t/about-i18n-performance-in-rails-2-2/147274 "2008-10-27T19:29:48Z")

</div>

Hello, I’m trying the new I18n feature that will be included in Rails 2.2 But I have a doubt running in my head: What’s faster(better, more performance)?: Put a I18n.load\_translations in an initializer that loads al…

---

## [Building translation terminology by evaluating mouse event](https://www.ruby-forum.com/t/building-translation-terminology-by-evaluating-mouse-event/150135)

<div class="topic-metadata">

**Author:** [@learner](https://www.ruby-forum.com/u/learner)\
**Replies:** 2\
**Last updated:** [October 6, 2008, 9:43pm UTC](https://www.ruby-forum.com/t/building-translation-terminology-by-evaluating-mouse-event/150135 "2008-10-06T21:43:24Z")

</div>

Hi, I would like to program a tool for translators. The tool should make it easy to build a translation terminology. The workflow is as follow: highlight a word in a text through a mouse-click and the highlighted wor…

---

## [Unicode number to UTF-8 character](https://www.ruby-forum.com/t/unicode-number-to-utf-8-character/149804)

<div class="topic-metadata">

**Author:** [@simon1](https://www.ruby-forum.com/u/simon1)\
**Replies:** 0\
**Last updated:** [September 30, 2008, 12:54am UTC](https://www.ruby-forum.com/t/unicode-number-to-utf-8-character/149804 "2008-09-30T00:54:54Z")

</div>

All, Say if I have a hex number 041C, how can I convert it into UTF-8 in rails. Regards, newB

---

## [UTF-8 in rails](https://www.ruby-forum.com/t/utf-8-in-rails/147885)

<div class="topic-metadata">

**Author:** [@difei](https://www.ruby-forum.com/u/difei)\
**Replies:** 1\
**Last updated:** [September 15, 2008, 10:34am UTC](https://www.ruby-forum.com/t/utf-8-in-rails/147885 "2008-09-15T10:34:40Z")

</div>

Greetings all, Just hours ago I found the :with options of helpers like validates\_format\_of seems UTF-8 compatible (for instance, “/.{2}/” matches exactly two UTF-8 characters instead of a length 2 UTF-8 string). I a…

---

## [Time Problem](https://www.ruby-forum.com/t/time-problem/148193)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 0\
**Last updated:** [September 10, 2008, 9:44am UTC](https://www.ruby-forum.com/t/time-problem/148193 "2008-09-10T09:44:15Z")

</div>

Hi, In my application I have to correct the time stamp on event discussion posts. Perhaps they are not observing DST? In any case, they are slow by one hour. how to do this ? I have following type of code and I have…

---

## [How can i use AR to save french and japanese?](https://www.ruby-forum.com/t/how-can-i-use-ar-to-save-french-and-japanese/196801)

<div class="topic-metadata">

**Author:** [@feeling3\_4](https://www.ruby-forum.com/u/feeling3_4)\
**Replies:** 0\
**Last updated:** [September 9, 2008, 4:24pm UTC](https://www.ruby-forum.com/t/how-can-i-use-ar-to-save-french-and-japanese/196801 "2008-09-09T16:24:25Z")

</div>

hi, all i had a strange problem that i can not use ActiveRecord to save french and japanese. i use Tmail and mms2r to parse a mail, and i have a mail model in the db, the mail model has a txt\_body column. After i ha…

---

## [Layout](https://www.ruby-forum.com/t/layout/147392)

<div class="topic-metadata">

**Author:** [@vanight](https://www.ruby-forum.com/u/vanight)\
**Replies:** 1\
**Last updated:** [September 1, 2008, 7:06pm UTC](https://www.ruby-forum.com/t/layout/147392 "2008-09-01T19:06:27Z")

</div>

Hi I have one main layout and I would like that the left menu change depending on the controller. How can I do it ? Thanks

---

## [How to capitalize UTF8 string without downcasing](https://www.ruby-forum.com/t/how-to-capitalize-utf8-string-without-downcasing/132475)

<div class="topic-metadata">

**Author:** [@janfoeh](https://www.ruby-forum.com/u/janfoeh)\
**Replies:** 2\
**Last updated:** [August 12, 2008, 11:34pm UTC](https://www.ruby-forum.com/t/how-to-capitalize-utf8-string-without-downcasing/132475 "2008-08-12T23:34:39Z")

</div>

What is the best way to capitalize the first character of a UTF8 string? String#capitalize downcases the rest of the string which is unacceptable since there can be capitals in the middle of the string. (“see New York…

---

## [Best way to make multilanguage program](https://www.ruby-forum.com/t/best-way-to-make-multilanguage-program/144178)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 0\
**Last updated:** [July 26, 2008, 8:06am UTC](https://www.ruby-forum.com/t/best-way-to-make-multilanguage-program/144178 "2008-07-26T08:06:54Z")

</div>

In rails 2.2 there will bi new system to translate aplications. But if I start now deviloping a big program, what is the best way to make a multilanguage progrman thinking about future? It will be in 3 languges, engli…

---

## [Can't get Globalize running](https://www.ruby-forum.com/t/cant-get-globalize-running/143102)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 0\
**Last updated:** [July 15, 2008, 9:41am UTC](https://www.ruby-forum.com/t/cant-get-globalize-running/143102 "2008-07-15T09:41:41Z")

</div>

Hey people, I just imported a rails project to my freshly installed NetBeans (used to use Eclipse before) and tried to “reintegrate” Globalize. I tried it by simply typing “rake globalize:setup” while in projects fold…

---

## [Parse haml for gettext: RubyLex Error](https://www.ruby-forum.com/t/parse-haml-for-gettext-rubylex-error/143017)

<div class="topic-metadata">

**Author:** [@benni](https://www.ruby-forum.com/u/benni)\
**Replies:** 0\
**Last updated:** [July 14, 2008, 3:35pm UTC](https://www.ruby-forum.com/t/parse-haml-for-gettext-rubylex-error/143017 "2008-07-14T15:35:25Z")

</div>

hey I would like to bring the newest versions of haml(2.0.1), rails(2.1.0) and gettext(1.91.0) in my current project together. But in the moment, I failure on parsing the haml-files to update my po-files. This is the …

---

## [L10n of numbers?](https://www.ruby-forum.com/t/l10n-of-numbers/125255)

<div class="topic-metadata">

**Author:** [@Isak\_H](https://www.ruby-forum.com/u/Isak_H)\
**Replies:** 4\
**Last updated:** [July 2, 2008, 8:00pm UTC](https://www.ruby-forum.com/t/l10n-of-numbers/125255 "2008-07-02T20:00:34Z")

</div>

I need to localize numbers in text fields and have been looking at the various L10n plugins that claim to have number support. Support seems to mean that the plugin includes a Number#to\_localized\_string method, which …

---

## [GetText works in local but not in my VPS](https://www.ruby-forum.com/t/gettext-works-in-local-but-not-in-my-vps/139200)

<div class="topic-metadata">

**Author:** [@senn](https://www.ruby-forum.com/u/senn)\
**Replies:** 0\
**Last updated:** [June 1, 2008, 7:25pm UTC](https://www.ruby-forum.com/t/gettext-works-in-local-but-not-in-my-vps/139200 "2008-06-01T19:25:57Z")

</div>

Hi, Im using gettext in one of my projects. It works perfect in my local machine but when I upload it to my VPS, it doesnt work… I can generate both po and mo files, but when I go to the browser… it doesnt translate…

---

## [About map.inflected\_resource](https://www.ruby-forum.com/t/about-map-inflected-resource/139119)

<div class="topic-metadata">

**Author:** [@z4n9ief](https://www.ruby-forum.com/u/z4n9ief)\
**Replies:** 0\
**Last updated:** [May 31, 2008, 12:15am UTC](https://www.ruby-forum.com/t/about-map-inflected-resource/139119 "2008-05-31T00:15:31Z")

</div>

Hi, In the routes.rb Typo file (readable at: http://svn.typosphere.org/typo/branches/rails2/config/routes.rb) we can see those line: map.inflected\_resource(:authors, :path\_prefix =\> ‘/articles’) map.inflected\_resour…

---

## [URL and params with %E4](https://www.ruby-forum.com/t/url-and-params-with-e4/138853)

<div class="topic-metadata">

**Author:** [@emeratius](https://www.ruby-forum.com/u/emeratius)\
**Replies:** 0\
**Last updated:** [May 28, 2008, 11:32am UTC](https://www.ruby-forum.com/t/url-and-params-with-e4/138853 "2008-05-28T11:32:18Z")

</div>

I got an url I like http://localhost:3000/article?text?n�sta When I read the parameter params\[:text\] I only get nÃ¤a. It deletes the two characters after %E4. In my log i can see the parameter: Parameters: {“text”=\>“…

---

## [Globalize and render\_component: infinite loop?](https://www.ruby-forum.com/t/globalize-and-render-component-infinite-loop/68153)

<div class="topic-metadata">

**Author:** [@sellittf](https://www.ruby-forum.com/u/sellittf)\
**Replies:** 2\
**Last updated:** [May 26, 2008, 11:13pm UTC](https://www.ruby-forum.com/t/globalize-and-render-component-infinite-loop/68153 "2008-05-26T23:13:40Z")

</div>

Hi, I just installed Globalize and I’m very excited about it! Using it with the default map.connect ‘:controller/:action/:id’ in config/routes.rb, there is no problem, but so far I set map.connect ‘:locale/:controll…

---

## [Gloc bug?](https://www.ruby-forum.com/t/gloc-bug/77671)

<div class="topic-metadata">

**Author:** [@temesta](https://www.ruby-forum.com/u/temesta)\
**Replies:** 9\
**Last updated:** [May 2, 2008, 9:21pm UTC](https://www.ruby-forum.com/t/gloc-bug/77671 "2008-05-02T21:21:50Z")

</div>

Hi, I use Gloc plugin to create some localisation and it works great on my local webbrick server. Unfortunately It doesn’t work anymore when I upload the gloc dir to vendor/plugins on my host. I always get this error…

---

## [GetText on Struct](https://www.ruby-forum.com/t/gettext-on-struct/136477)

<div class="topic-metadata">

**Author:** [@boblgum](https://www.ruby-forum.com/u/boblgum)\
**Replies:** 0\
**Last updated:** [May 2, 2008, 2:31pm UTC](https://www.ruby-forum.com/t/gettext-on-struct/136477 "2008-05-02T14:31:40Z")

</div>

hi @ll is it possible to mark whole struct for translation? something like: MyStrct = Struct.new(:code, :msg) SOME\_CONSTANT = N\_(MyStrct.new(“1515”, “Message to translate”)) … puts \_(SOME\_CONSTANT) may be u have a …

---

## [Problems using Gettext 1.90.0 update\_pofiles](https://www.ruby-forum.com/t/problems-using-gettext-1-90-0-update-pofiles/135986)

<div class="topic-metadata">

**Author:** [@vaughanjackson](https://www.ruby-forum.com/u/vaughanjackson)\
**Replies:** 2\
**Last updated:** [May 1, 2008, 7:57pm UTC](https://www.ruby-forum.com/t/problems-using-gettext-1-90-0-update-pofiles/135986 "2008-05-01T19:57:05Z")

</div>

Hi, I’m a newbie to Ruby and Rails. I am following Sascha E.'s tutorial on Gettext at Peak Obsession. This tutorial describes a step in which update\_pofiles is used to generate the .pot and .po files from .rb and .rh…

---

## [Gettext Validation/Error localization problems](https://www.ruby-forum.com/t/gettext-validation-error-localization-problems/136204)

<div class="topic-metadata">

**Author:** [@max-lapshin](https://www.ruby-forum.com/u/max-lapshin)\
**Replies:** 1\
**Last updated:** [April 30, 2008, 7:27pm UTC](https://www.ruby-forum.com/t/gettext-validation-error-localization-problems/136204 "2008-04-30T19:27:29Z")

</div>

Is there a way to turn off ruby-gettext’s feature that localizes the default validation/error messages in models? If I use gettext in my application, it breaks almost all of my unit tests. From http://www.yotabanana.…

---

## [How to make stacked bar using open flash chart?](https://www.ruby-forum.com/t/how-to-make-stacked-bar-using-open-flash-chart/135568)

<div class="topic-metadata">

**Author:** [@rays](https://www.ruby-forum.com/u/rays)\
**Replies:** 2\
**Last updated:** [April 23, 2008, 1:05pm UTC](https://www.ruby-forum.com/t/how-to-make-stacked-bar-using-open-flash-chart/135568 "2008-04-23T13:05:43Z")

</div>

As we see from http://www.pullmonkey.com/open-flash-chart/, open flash chart don’t support stacked bar. Is there any way to work around with open flash chart or any other better idea about stacked bar using in RoR? T…

---

## [Ajax and FireFox](https://www.ruby-forum.com/t/ajax-and-firefox/64974)

<div class="topic-metadata">

**Author:** [@Naga\_harish\_K](https://www.ruby-forum.com/u/Naga_harish_K)\
**Replies:** 2\
**Last updated:** [April 9, 2008, 12:25am UTC](https://www.ruby-forum.com/t/ajax-and-firefox/64974 "2008-04-09T00:25:44Z")

</div>

Hi all, I have created a new application 1month ago. In that application i have a link Add New. This link is given using Ajax(\<%= link\_to\_remote( ‘Add New’, :update =\> “abc”, :url =\>{ :controller=\>“xyz”,:action =\> …

---

## [Page not displaying](https://www.ruby-forum.com/t/page-not-displaying/130450)

<div class="topic-metadata">

**Author:** [@ranjan](https://www.ruby-forum.com/u/ranjan)\
**Replies:** 0\
**Last updated:** [February 28, 2008, 11:37am UTC](https://www.ruby-forum.com/t/page-not-displaying/130450 "2008-02-28T11:37:34Z")

</div>

Hi, I have following db schema: Seminars (id, …) has\_many :seminars\_presentations has\_many presentations, :through =\> seminar\_presentations Presentations (id, …) has\_many :seminar\_presentations has\_many :seminars,…

---

## [No unicode in rails console](https://www.ruby-forum.com/t/no-unicode-in-rails-console/128975)

<div class="topic-metadata">

**Author:** [@greenbox](https://www.ruby-forum.com/u/greenbox)\
**Replies:** 5\
**Last updated:** [February 27, 2008, 4:49pm UTC](https://www.ruby-forum.com/t/no-unicode-in-rails-console/128975 "2008-02-27T16:49:03Z")

</div>

I’m unable to enter characters like Ã© (in CafÃ©) into script/console but they work just fine in the regular terminal. I can’t seem to find anyone ever having an issue with this out there. I’d be so grateful for any …

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

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