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 [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to