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

A Globalization Problem at Turkish Currency Formats.

1 Answer 197 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
ziyahan
Top achievements
Rank 1
ziyahan asked on 13 Jan 2015, 08:27 AM
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"
            }
        },

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 15 Jan 2015, 08:35 AM
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!
 
Tags
General Discussions
Asked by
ziyahan
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or