This is a migrated thread and some comments may be shown as answers.

de-AT number group separator wrong?

4 Answers 219 Views
Globalization
This is a migrated thread and some comments may be shown as answers.
Kaan
Top achievements
Rank 1
Kaan asked on 07 Dec 2016, 02:04 PM

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

Sort by
0
Stefan
Telerik team
answered on 09 Dec 2016, 12:07 PM
Hello Kaan,

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
Kendo UI is ready for Visual Studio 2017 RC! Learn more.
0
Kaan
Top achievements
Rank 1
answered on 12 Dec 2016, 12:30 PM

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

0
Accepted
Stefan
Telerik team
answered on 14 Dec 2016, 10:45 AM
Hello 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
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data (charts) and form elements.
0
Kaan
Top achievements
Rank 1
answered on 14 Dec 2016, 02:32 PM

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

Tags
Globalization
Asked by
Kaan
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Kaan
Top achievements
Rank 1
Share this question
or