I'm using kendo Telerik.UI.for.AspNet.Mvc5 version 2016.2.607 in .net 452
i have my culture type in web.config set as:
<globalization uiCulture="de" culture="de-DE" />
if i use the following code to localize my website, it works fine (see 'first.png')
<
script
src
=
"@Url.Content("
~/Scripts/kendo/2016.2.607/cultures/kendo.culture." + System.Globalization.CultureInfo.CurrentCulture.Name + ".min.js")"></
script
>
<
script
type
=
"text/javascript"
>
$(document).ready(function () {
kendo.culture("@System.Globalization.CultureInfo.CurrentCulture.Name");
});
</
script
>
if i remove that code and use @Html.Kendo().Culture() instead, i en-US date values (see 'second.png')
if i do a view source, the @Html.Kendo().Culture() seems to be working fine, see below.
<
script
>kendo.cultures["de-DE"]={name:"de-DE",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:"€"}},calendars:{standard:{days:{names:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],namesAbbr:["So","Mo","Di","Mi","Do","Fr","Sa"],namesShort:["So","Mo","Di","Mi","Do","Fr","Sa"]},months:{names:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],namesAbbr:["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"]},AM:[""],PM:[""],patterns:{d:"dd.MM.yyyy",D:"dddd, d. MMMM yyyy",F:"dddd, d. MMMM yyyy HH:mm:ss",g:"dd.MM.yyyy HH:mm",G:"dd.MM.yyyy HH:mm:ss",m:"d. MMMM",M:"d. MMMM",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"HH:mm",T:"HH:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM yyyy",Y:"MMMM yyyy"},"/":".",":":":",firstDay:1}}};</
script
>
what am i missing?
Hello,
With numbers of 10 digits and more, I have a formatting issue even using kendo.toString() in jquery or DisplayFormat through field decoration on Class ViewModel.
For exemple, 2 458 200 256 using kendo.toString(number, "#,###.###;(- #,###.###);0") will return 24 582 00256 which is totally wrong.
Before upgrade everthing was working correctly. If I want to correctly format number, I need to use kendo.toString(number, "#,###,###,###.###;(- #,###,###,###.###);0");
Globalization example in Kendo UI Web framework at following link http://demos.telerik.com/kendo-ui/globalization/index
This example only changes control culture and changes values format. Any working example for validation and field label change based on culture?
My application will have multiple language support so I will have to change field labels and validation based on language. Any help, suggestion or working example would be appreciated.
Seems to be decimal separator is not right for de-CH culture. As far we can see, inside the "kendo.culture.de-CH.min.js" file, we have definition that decimal separator is "," (comma), BUT should be "."(point) .
In attached screen shot you can find some details. Version of Kendo UI is 2015.2.805
Could you, please, check it?
Thanks.
In version 2015.3.930, it looks like the calendar.firstDay property is set to 1 (Monday) instead of 0 (Sunday) in the en-US culture definition. This is causing calendar and date picker widgets to start with Monday instead of Sunday. You can test this by running the following in your browser console:
kendo.culture(
"en-US"
);
kendo.culture().calendar.firstDay;
// Returns 1 (Monday)
For now, the quick fix is just to change this in the kendo.culture.en-US.min.js file.
Hi,
I was trying to globalize the Datepicker in a kendo grid in the filter row(option set)
I added the de-DE language package.
Setting the culture option of the Datepicker didn'tt work(dojo)
Whereas in fiddle it worked.
Although it worked in fiddle I could not made it run in my code.
Could you please help and give a running dojo, thanks.
I'm using the js message files bundled in Kendo UI v2015.1.429 and changing them dynamically
I'm currently using:
- kendo.messages.de-DE.min.js
- kendo.messages.en-US.min.js
- kendo.messages.es-ES.min.js
- kendo.messages.fr-FR.min.js
- kendo.messages.it-IT.min.js
- kendo.messages.ru-RU.min.js
Everything works fine, except for kendo.messages.it-IT.min.js that does not update the UI and this is obviously my own native language :)
Can you please check if there is any issue with it? I've also tried the updated once on github but no way.
Thanks,
Enrico