There are "optimizations" in YAML for YES and NO. Define it this way:
en:
countries:
DE: "Germany"
"NO": "Norway"
US: "USA"
and it should work for you.
-Rob
On Mar 31, 2012, at 7:19 AM, Sven Schwyn wrote:
> Hi
>
> I''ve tried this on a virgin Rails 3.2.2 app. If you put the
translations
> for country names in the locale file using the 2 letter ISO code, it
> looks something like this:
>
> en:
> countries:
> DE: "Germany"
> NO: "Norway"
> US: "USA"
>
> This works fine - but for Norway :-)
>
> I18n.t :''countries.DE'' # => "Germany"
> I18n.t :''countries.NO'' # => "translation
missing: en.countries.NO"
>
> Case doesn''t matter, the same happens with
:''countries.no''.
>
> Any idea what could be the cause for this problem?
>
> Thanks!
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
>
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.