Hi!
I was wondering if maybe the number group separator is wrong for de-AT (Austrian German).
In the "kendo.culture-de-AT.min.js" file the number group separator is defined as " " (blank space), but in Windows I am used to have the same character as in de-DE (German German), which is a "." (period).
I am not sure what the "real" standard is, but I have attached a screenshot of the Windows settings dialog for default date/number formats.
Best regards,
Kaan
4 Answers, 1 is accepted
I was not able to observe the same separator " " when I used the de-AT culture in an example.
Please refer to the screenshot demonstrating that when the de-AT culture is set the grouping separator is "." and the decimal separator is ",":
https://www.ibm.com/support/knowledgecenter/SSS28S_8.2.0/XFDL_Specification/i_xfdl_r_formats_de_AT.html
Please check if the culture files are loaded correctly.
If additional assistance is needed, please send a runnable example so I can investigate further.
Regards,
Stefan
Telerik by Progress
Hi Stefan!
Thank you for the link to the specification. The IBM spec for de-AT defines the "." (period) character as the general grouping separator for decimals. This is also what I am used to from Windows/Excel etc.
But in the kendo.culture.de-AT.min.js file (Kendo UI version 2016.3.914) the grouping separator for general and percentage decimals is defined as " " (blank):
kendo.cultures["de-AT"] = {
name: "de-AT",
numberFormat: {
pattern: ["-n"],
decimals: 2,
",": " ",
".": ",",
groupSize: [3],
percent: {
pattern: ["-n%", "n%"],
decimals: 2,
",": " ",
".": ",",
groupSize: [3],
symbol: "%"
},
currency: {
name: "Euro",
abbr: "EUR",
pattern: ["-n $", "n $"],
decimals: 2,
",": ".",
".": ",",
groupSize: [3],
symbol: "€"
}
}
Here I have also pasted the definitions of "kendo.culture.de-DE.min.js" for comparison:
kendo.cultures["de-DE"] = {
name: "de-DE",
numberFormat: {
pattern: ["-n"],
decimals: 2,
",": ".",
".": ",",
groupSize: [3],
percent: {
pattern: ["-n %", "n %"],
decimals: 2,
",": ".",
".": ",",
groupSize: [3],
symbol: "%"
},
currency: {
name: "Euro",
abbr: "EUR",
pattern: ["-n $", "n $"],
decimals: 2,
",": ".",
".": ",",
groupSize: [3],
symbol: "€"
}
}
I hope you understand the matter now. I am still not sure if the group separator for de-AT is right or wrong in Kendo UI, and therefore would be thankful if you could check this and let me know.
Best regards,
Kaan
Thank you for the additional information.
My example was consisting only of currency and percent where the separator is ".".
After consulting with the developers' team I can confirm that this is correct based on the Unicode Common Locale Data Repository, where the group separator for plain numbers for that culture is indeed " ":
http://cldr.unicode.org/
The ". " separator for plain numbers was changed.
Regards,
Stefan
Telerik by Progress
Hello Stefan,
Thank you for the clarification.
Yes, Kendo is doing de-AT correct according to the Unicode standard: http://www.unicode.org/cldr/charts/30/by_type/numbers.symbols.html#Symbols_
It seems like Windows is not using the Unicode standard for plain numbers (see screenshot).
Best regards,
Kaan