Project

General

Profile

Actions

Feature #22024

closed

Support localized decimal separators for float values

Added by Rafael Neves about 8 years ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
I18n
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

Hi.I´m using redmine 2.6.2. I have created a custom field wich type is float. I want to use comma as decimal separator.

But when i set locale to , pt or pt-BR, for instance, if the user inputs a
float like '95,70' or '500,25' in a form input, numerical
validation will yield an 'invalid_number' error, even though this is a
valid format in Brazil.

Only works if i use dot as decimal separator... but it is not the right way to do it.

Is that a newer version of redmine that fix it ?

How we that uses comma as decimal separator deals with with number formats in redmine?

Thanks!


Files

support-localized-decimal-separator.patch (3.87 KB) support-localized-decimal-separator.patch Liane Hampe, 2023-09-05 18:25
22024-v2.patch (3.83 KB) 22024-v2.patch Go MAEDA, 2023-12-30 10:14
22024-v3.patch (7.03 KB) 22024-v3.patch Go MAEDA, 2024-01-01 11:26

Related issues

Related to Redmine - Feature #21677: Support localized decimal separator for hours in the web UIClosedGo MAEDA

Actions
Related to Redmine - Feature #36183: Dynamic decimal separator, according to country settingClosed

Actions
Related to Redmine - Defect #6182: Localized decimal numbersClosed2010-08-20

Actions
Related to Redmine - Feature #39997: Add an option to render values of Integer- and Float-format custom fields with thousands delimitersNew

Actions
Related to Redmine - Feature #25012: Allow both '.' and ',' decimal symbols for input of float custom fieldsClosed

Actions
Actions

Also available in: Atom PDF