Forum: Rails I18n translating NO (norway)

8a2de74362a8ee5f9c5e86b1ba0b1640?d=identicon&s=25 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
9a183854c4b3cade3d5dd067f457ecfe?d=identicon&s=25 Mateo Murphy (Guest)
on 2010-09-09 18:23
(Received via mailing list)
I believe you simply have to quote the NO
7e565a1681dc0137f43826aa840686af?d=identicon&s=25 Andrés Mejía (Guest)
on 2010-09-09 18:24
(Received via mailing list)
Give more details.
4a551074ddba4460f95d011c47190d0e?d=identicon&s=25 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".
8a2de74362a8ee5f9c5e86b1ba0b1640?d=identicon&s=25 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
Bc286538c93aa6e88d2c4d5234ca41e7?d=identicon&s=25 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
This topic is locked and can not be replied to.