A Globalization Problem at Turkish Currency Formats.

2 posts, 0 answers
  1. ziyahan
    ziyahan avatar
    29 posts
    Member since:
    Dec 2014

    Posted 13 Jan 2015 Link to this post

    Hi;
    I have a trouble about formatting currencies.
    Our clienst want to see currency like this : 120.000,96
    However I cannot do this with anyway.

    I use the settings below  in my culture file:
     numberFormat: {
                pattern: ["-n"],
                decimals: 2,           
                ".": ".",
                 ",": ",",
                groupSize: [3],
                percent: {
                    pattern: ["-n %","n %"],
                    decimals: 2,                
                    ".": ".",
                    ",": ",",
                    groupSize: [3],
                    symbol: "%"
                },
                currency: {
                    pattern: ["($n)","$n"],
                    decimals: 2,
                    ".": ".",
                    ",": ",",
                    groupSize: [3],
                    symbol: "TL"
                }
            },
  2. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2894 posts

    Posted 15 Jan 2015 Link to this post

    Hi Emre,

    In the culture file that you provided the:

            >> string that separates the number groups (1,000,000) is "," (coma)
            ",": ","
            >> string that separates a number from the fractional point is "." (dot)
            ".": "."

    In the Turkish culture file, the string that separates the number groups is "." (dot) (code reference) and the string that separates a number from the fractional points is "," (coma) (code reference)

    Are you sure that you have loaded the Turkish culture file and have set kendo culture to "tr-TR" as explained in the following help topic?

    Regards,
    Alexander Valchev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top