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

sv-SE locale displays nodes Lon & lat without separator #4150

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

sv-SE locale displays nodes Lon & lat without separator #4150

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

Comments

@openstreetmap-trac
Copy link

Reporter: emj
[Submitted to the original trac issue database at 3.08pm, Friday, 16th December 2011]

  1. set local sv

  2. goto http://www.openstreetmap.org/browse/node/666041980

  3. it displays like this:

Koordinater: 593171204, 180332574

it should display like this:

Koordinater: 59,3171204, 18,0332574

This does not affect other locales that use "," such as fr. I tested about 32 locales and I've only seen this bug on the sv locale.

The code being run is line 7 in app/views/browse/_node_details.html.erb:

number_with_delimiter(node_details.lat)

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 3.49pm, Sunday, 18th December 2011]

The causes this are quite complicated, and the real root problem is that we have have an "sv" translation but rails was an "sv-SE" translation, which is going to be a little tricky to deal with.

We should at least be falling back to the english rules though, which we would do but for a bug in the i18n gem which is fixed here:

ruby-i18n/i18n@3746542

Unfortunately there hasn't been a new release since then so I'll have to try and monkey patch it.

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 5.21pm, Sunday, 18th December 2011]

This should be fixed now, and will be deployed shortly.

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