Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

German word for January #4224

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 5 comments
Closed

German word for January #4224

openstreetmap-trac opened this issue Jul 23, 2021 · 5 comments

Comments

@openstreetmap-trac
Copy link

Reporter: Oli-Wan
[Submitted to the original trac issue database at 5.17pm, Sunday, 12th February 2012]

Someone seems to have changed the German translation of "January" from "Januar" to "Jnner". 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 "Jnner" for edits made in January.

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 2.12pm, Tuesday, 14th February 2012]

The only place that "Jnner" 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.

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 2.33pm, Tuesday, 14th February 2012]

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. Jnner 2012, 14:32 Uhr"

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

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 2.34pm, Tuesday, 14th February 2012]

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. Jnner 2012, 14:32 Uhr"

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 3.40pm, Tuesday, 14th February 2012]

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

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 5.57pm, Saturday, 17th March 2012]

Looks like I forgot to actually close this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant