[Rails] Interesting strangeness with I18n.t
Hi all,
I have a locale en.yml file like this: https://gist.github.com/1707858
If you launch a rails console and ask for:
irb(main):003:0> I18n.t("country.ES")
=> "Spain"
Cool. Expected response, but what if you do:
irb(main):004:0> I18n.t("country.NO")
=> "translation missing: en.country.NO"
Despite it exists (check it on the paste). I have tried to add a
"fake" country with code "YES", and shows the same problem as "NO".
Any other country code seems to be translated correctly.
Anyone can throw a bit of light onto this matter ?
Best regards and thanks in advance,
Rafael Fernández López
--
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home