Opened 7 years ago

Closed 7 years ago

#4224 closed defect (fixed)

German word for January

Reported by: Oli-Wan Owned by: rails-dev@…
Priority: trivial Milestone:
Component: website Version:
Keywords: language translation de calendar January Cc:

Description

Someone seems to have changed the German translation of "January" from "Januar" to "Jänner". That is Austrian (de-at), not German. The history page (with the language preference set to "de" in my browser as well as in my OSM profile) now says "Jänner" for edits made in January.

Change History (5)

comment:1 Changed 7 years ago by Tom Hughes

The only place that "Jänner" appears in our code is in "vendor/rails-locales/de-AT.yml" which, as you can probably guess is the Austrian translation...

Not sure why you would be seeing it when you have de selected rather than de-AT.

comment:2 Changed 7 years ago by Tom Hughes

I'm definitely seeing the same effect as you, which is odd, as it seems to work from the console:

irb(main):010:0> I18n.l(DateTime?.now - 1.month, :format => :long, :locale => "de") => "Samstag, 14. Januar 2012, 14:32 Uhr" irb(main):011:0> I18n.l(DateTime?.now - 1.month, :format => :long, :locale => "de-AT") => "Samstag, 14. Jänner 2012, 14:32 Uhr"

Suspect it must be choosing the wrong locale when matching user language preferences against the available locales.

comment:3 Changed 7 years ago by Tom Hughes

That should have been:

irb(main):010:0> I18n.l(DateTime.now - 1.month, :format => :long, :locale => "de")
=> "Samstag, 14. Januar 2012, 14:32 Uhr"
irb(main):011:0> I18n.l(DateTime.now - 1.month, :format => :long, :locale => "de-AT")
=> "Samstag, 14. Jänner 2012, 14:32 Uhr"

comment:4 Changed 7 years ago by Tom Hughes

It was indeed a locale selection issue, and it should now be fixed.

comment:5 Changed 7 years ago by Tom Hughes

Resolution: fixed
Status: newclosed

Looks like I forgot to actually close this.

Note: See TracTickets for help on using tickets.