From: Tom Hughes Date: Wed, 15 Apr 2020 21:42:41 +0000 (+0100) Subject: Localise formatting of point count for traces X-Git-Tag: live~2766 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/6ad0340b052c606fdbb68bb820a438737295668f Localise formatting of point count for traces Fixes #2592 --- diff --git a/app/views/traces/show.html.erb b/app/views/traces/show.html.erb index 19d1b06b8..f7517c802 100644 --- a/app/views/traces/show.html.erb +++ b/app/views/traces/show.html.erb @@ -22,7 +22,7 @@ <% if @trace.inserted? %> <%= t ".points" %> - <%= @trace.size.to_s.gsub(/(\d)(?=(\d{3})+$)/, '\1,') %> + <%= number_with_delimiter(@trace.size) %> <%= t ".start_coordinates" %>
<%= @trace.latitude %>; <%= @trace.longitude %>
(<%= link_to t(".map"), :controller => "site", :action => "index", :mlat => @trace.latitude, :mlon => @trace.longitude, :anchor => "map=14/#{@trace.latitude}/#{@trace.longitude}" %> / <%= link_to t(".edit"), :controller => "site", :action => "edit", :gpx => @trace.id, :anchor => "map=14/#{@trace.latitude}/#{@trace.longitude}" %>)