[OpenStreetMap] #4150: sv-SE locale displays nodes Lon & lat without separator

OpenStreetMap trac at openstreetmap.org
Sun Dec 18 00:26:24 GMT 2011


#4150: sv-SE locale displays nodes Lon & lat without separator
--------------------------+-------------------------------------------------
 Reporter:  emj           |       Owner:  rails-dev@…                
     Type:  defect        |      Status:  new                        
 Priority:  minor         |   Milestone:                             
Component:  website       |     Version:                             
 Keywords:  i18n swedish  |  
--------------------------+-------------------------------------------------
 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)

-- 
Ticket URL: <https://trac.openstreetmap.org/ticket/4150>
OpenStreetMap <http://www.openstreetmap.org/>
OpenStreetMap is a free editable map of the whole world



More information about the rails-dev mailing list