rubyonrailsin

A Ruby and Rails talk

Saturday, March 20, 2010


[Rails] Re: I18n and Rails 2.3.5

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

I figured out what was going on. I had defined a routes.yml to translate the routes and into this file I had a key "services: Services". So, it was overwriting the value of a services key (with children keys) that I had defined into another file. Thanks.



On Sat, Mar 20, 2010 at 11:35 PM, Rodrigo Felix <rodrigofelix@ufc.br> wrote:
Does anybody know if the word "services" can be a key into a i18n file? If I use "service" I can get the value, but when I use "services" a translation_mission error is showed. Really weird.




On Fri, Mar 19, 2010 at 6:34 PM, Rodrigo Felix <rodrigofelixdealmeida@gmail.com> wrote:
Has anybody faced any problem to use i18n on Rails 2.3.5? Sometimes when I call the t function, it works fine, but for some keys, it does not work and I have no clue why it is going on.

I do have a .yml with correct keys and values. For example, in this (http://dev.promine.com.br/promine) page, i18n is working properly, but in this (http://dev.promine.com.br/servicos) one, it isn't? Any suggestion about what is happening? Thanks in advance.

Rodrigo Felix


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment

Subscribe feeds via e-mail

Blog Archive