summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2024-01-04 06:55:14 +0000
committerGo MAEDA <maeda@farend.jp>2024-01-04 06:55:14 +0000
commit1ab44859feac685719b1f8f4023fec6f89b78e08 (patch)
treed2a2f9753bdd3bf2bce21e3d74a5938a0d47bc9c /app
parent82fc543ea1254bab3a727a338964472ba4906727 (diff)
downloadredmine-1ab44859feac685719b1f8f4023fec6f89b78e08.tar.gz
redmine-1ab44859feac685719b1f8f4023fec6f89b78e08.zip
Support localized decimal separators for float values (#22024).
Patch by Liane Hampe (@liane_hampe). git-svn-id: https://svn.redmine.org/redmine/trunk@22592 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/helpers/application_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index ac7cc3c50..dcf1da35b 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -266,7 +266,7 @@ module ApplicationHelper
when Integer
object.to_s
when Float
- sprintf "%.2f", object
+ number_with_delimiter(sprintf('%.2f', object), delimiter: nil)
when User, Group
html ? link_to_principal(object) : object.to_s
when Project