From 3b636ddb6f8f5f598311f74ccb92220ced27ec7f Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 13 Oct 2019 10:53:08 +0100 Subject: [PATCH] Don't try and commas to the trace size It breaks pluralisation lookups in the locale and in any case adding a comma every three digits is locale specific. Fixes #2388 --- app/views/traces/_trace.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/traces/_trace.html.erb b/app/views/traces/_trace.html.erb index ceeb4d88d..1fde78790 100644 --- a/app/views/traces/_trace.html.erb +++ b/app/views/traces/_trace.html.erb @@ -12,7 +12,7 @@ <%= link_to trace.name, :controller => "traces", :action => "show", :display_name => trace.user.display_name, :id => trace.id %> ... <% if trace.inserted %> - (<%= t ".count_points", :count => trace.size.to_s.gsub(/(\d)(?=(\d{3})+$)/, '\1,') %>) + (<%= t ".count_points", :count => trace.size %>) <% end %> ... <%= time_ago_in_words(trace.timestamp, :scope => :'datetime.distance_in_words_ago') %> <%= link_to_if trace.inserted?, t(".map"), { :controller => "site", :action => "index", :mlat => trace.latitude, :mlon => trace.longitude, :anchor => "map=14/#{trace.latitude}/#{trace.longitude}" }, { :title => t(".view_map") } %> / -- 2.39.5