Forum: Rails I18n translating NO (norway)

Posted by Joaquin Rivera padron (joahking)
on 2010-09-09 18:17
(Received via mailing list)
hi there
I have an app that keeps country codes to translate the country names, 
but
Norway does not works, mainly because its country_code is NO and that is
reserved I guess.

how can I fix that?

thanks in advance

greetins
joaquin
Posted by Mateo Murphy (Guest)
on 2010-09-09 18:23
(Received via mailing list)
I believe you simply have to quote the NO
Posted by Andrés Mejía (Guest)
on 2010-09-09 18:24
(Received via mailing list)
Give more details.
Posted by Henrik --- (malesca)
on 2010-09-09 18:26
(Received via mailing list)
Yeah, that's a classic YAML gotcha.
  foo: no
sets foo to false.
  foo: "no"
sets foo to "no".
Posted by Joaquin Rivera padron (joahking)
on 2010-09-09 18:28
(Received via mailing list)
hi,
I ment this:
en:
  countries:
     #long list of country codes
     NO: Norway
     # and so on

but yes, replacing it with "NO" did the trick, thanks a lot

jk

2010/9/9 Henrik Nyh <henrik@nyh.se>

> >
> >> greetins
> >> For more options, visit this group at
> > http://groups.google.com/group/rails-i18n?hl=en.
> For more options, visit this group at
> http://groups.google.com/group/rails-i18n?hl=en.
>
>


--
www.least-significant-bit.com
Posted by Trond Lossius (Guest)
on 2010-09-10 11:38
(Received via mailing list)
Hi,

Norwegian codes are no-NB or no-NN depending on bokmål or nynorsk. This 
works for me.

Cheers,
Trond
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.