Skip to content

Commit

Permalink
Change default format string for decimal datatype #967
Browse files Browse the repository at this point in the history
  • Loading branch information
KremnevDmitry committed Feb 10, 2023
1 parent 627322d commit 277c3f7
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ offsetDateTimeFormat=dd/MM/yyyy HH:mm Z
#Number formats
integerFormat=#,##0
doubleFormat=#,##0.###
decimalFormat=#,##0.##
decimalFormat=#,##0.00

# Number separators
numberDecimalSeparator=.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class TestFormatStringsRegistry extends FormatStringsRegistryImpl {
TestFormatStringsRegistry() {
setFormatStrings(Locale.ENGLISH, new FormatStrings(
'.' as char, ',' as char,
'#,##0', '#,##0.###', '#,##0.##',
'#,##0', '#,##0.###', '#,##0.00',
'dd/MM/yyyy', 'dd/MM/yyyy HH:mm', 'dd/MM/yyyy HH:mm', 'HH:mm', 'HH:mm',
'True', 'False'))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public class ValueFormatEditor extends StandardEditor<ReportValueFormat> {
"##,##0",
"#,##0.###",
"#,##0.##",
"#,##0.00",
"dd/MM/yyyy HH:mm",
"${image:WxH}",
"${bitmap:WxH}",
Expand Down
2 changes: 1 addition & 1 deletion jmix-translations/content/io/jmix/core/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ offsetDateTimeFormat=dd/MM/yyyy HH:mm Z
#Number formats
integerFormat=#,##0
doubleFormat=#,##0.###
decimalFormat=#,##0.##
decimalFormat=#,##0.00

# Number separators
numberDecimalSeparator=.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ offsetDateTimeFormat=dd/MM/yyyy HH:mm Z
#Number formats
integerFormat=#,##0
doubleFormat=#,##0.###
decimalFormat=#,##0.##
decimalFormat=#,##0.00

# Number separators
numberDecimalSeparator=.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ offsetDateTimeFormat= dd.MM.yyyy HH:mm Z
#Number formats
integerFormat= #,##0
doubleFormat= #,##0.###
decimalFormat= #,##0.##
decimalFormat= #,##0.00

# Number separators
numberDecimalSeparator= ,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ offsetDateTimeFormat=dd/MM/yyyy HH:mm Z
#Number formats
integerFormat=#,##0
doubleFormat=#,##0.###
decimalFormat=#,##0.##
decimalFormat=#,##0.00

# Number separators
numberDecimalSeparator=,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ offsetDateTimeFormat=dd/MM/yyyy HH:mm Z
#Number formats
integerFormat = #,##0
doubleFormat = #,##0.###
decimalFormat = #,##0.##
decimalFormat = #,##0.00

# Number separators
numberDecimalSeparator = ,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ offsetDateTimeFormat=dd/MM/yyyy HH:mm Z
#Number formats
integerFormat=#,##0
doubleFormat=#,##0.###
decimalFormat=#,##0.##
decimalFormat=#,##0.00

# Number separators
numberDecimalSeparator=,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ offsetDateTimeFormat=dd/MM/yyyy HH:mm Z
#Number formats
integerFormat=#,##0
doubleFormat=#,##0.###
decimalFormat=#,##0.##
decimalFormat=#,##0.00

# Number separators
numberDecimalSeparator=.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ offsetDateTimeFormat=dd/MM/yyyy HH:mm Z
#Number formats
integerFormat=#,##0
doubleFormat=#,##0.###
decimalFormat=#,##0.##
decimalFormat=#,##0.00

# Number separators
numberDecimalSeparator=,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ timeFormat=HH:mm
#Number formats
integerFormat=#,##0
doubleFormat=#,##0.###
decimalFormat=#,##0.##
decimalFormat=#,##0.00

# Number separators
numberDecimalSeparator=.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void setupTest() {

formatStringsRegistry.setFormatStrings(Locale.ENGLISH, new FormatStrings(
'.', ',',
"#,##0", "#,##0.###", "#,##0.##",
"#,##0", "#,##0.###", "#,##0.00",
"dd/MM/yyyy", "dd/MM/yyyy HH:mm", "dd/MM/yyyy HH:mm Z", "HH:mm", "HH:mm Z",
"True", "False"));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public void init(ContextRefreshedEvent event) {

formatStringsRegistry.setFormatStrings(Locale.ENGLISH, new FormatStrings(
'.', ',',
"#,##0", "#,##0.###", "#,##0.##",
"#,##0", "#,##0.###", "#,##0.00",
"dd/MM/yyyy", "dd/MM/yyyy HH:mm", "dd/MM/yyyy HH:mm Z", "HH:mm", "HH:mm Z",
"True", "False"));
}
Expand Down

0 comments on commit 277c3f7

Please sign in to comment.