From 6ad0340b052c606fdbb68bb820a438737295668f Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 15 Apr 2020 22:42:41 +0100 Subject: [PATCH] Localise formatting of point count for traces Fixes #2592 --- app/views/traces/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}" %>) -- 2.39.5