List of localized months

I’m trying to print a list of localized month names in my rails app. I
set my locale to it-IT, created an it-IT.yml translation file with the
translated month names, but it doesn’t seem to work.

When I use date_select I can see the trasnlated months, therefore my yml
file and my locale should be ok, but when I try something like"%B") or Date::MONTHNAMES i always get the
english month names.

Can anyone help me?

Thanks in advance

On 13 Aug 2009, at 14:35, Serafino P. wrote:

Date’s strftime & Date’s MONTHNAME constants just aren’t localized
(I18n.localize has a localized strftime for you)


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs