de-AT number group separator wrong?

5 posts, 1 answers
  1. Kaan
    Kaan avatar
    46 posts
    Member since:
    May 2016

    Posted 07 Dec 2016 Link to this post

    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

  2. Stefan
    Admin
    Stefan avatar
    1025 posts

    Posted 09 Dec 2016 Link to this post

    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.
  3. Kaan
    Kaan avatar
    46 posts
    Member since:
    May 2016

    Posted 12 Dec 2016 in reply to Stefan Link to this post

    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

  4. Answer
    Stefan
    Admin
    Stefan avatar
    1025 posts

    Posted 14 Dec 2016 Link to this post

    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 visualization (charts) and form elements.
  5. Kaan
    Kaan avatar
    46 posts
    Member since:
    May 2016

    Posted 14 Dec 2016 in reply to Stefan Link to this post

    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

Back to Top