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

Telerik.Culture.getCultureInfo("en-UK") throws error "The parameter is incorrect"

4 Answers 132 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Fatiha
Top achievements
Rank 1
Fatiha asked on 11 Mar 2015, 11:00 AM
Hello Telerik,

I am integrating a RadDatePicker in my windows 8 app(winjs), and it use to work correctly with cultures "es-ES", "de-DE", "fr-FR". However when I try to integrate "en-UK" culture the function Telerik.Culture.getCultureInfo("en-UK")  throws the exception "WinRTError: The parameter is incorrect" :

More details :

getCultureInfo:function(o,r){
var p=kendo.cultures;
if(r===m){
//the exception is thrown at the level of the following instruction 
r=d(r,o)
}
if(p[o]&&p[o].twentyFourHour===r){
return p[o]
}
......
}
Is it a known issues ? any suggestions on how to fix it are more than welcome

Telerik tool  : RadControls_for_Windows_8_HTML_2013_3_1105






4 Answers, 1 is accepted

Sort by
0
Martin Yankov
Telerik team
answered on 16 Mar 2015, 08:34 AM
Hi Fatiha,

Thank you for contacting Telerik Support.

The correct string for the United Kingdom's culture info is "en-GB". You can check the ISO Language Code Table here.

Try getting the culture info with this string and let me know if you still have problems.

Regards,
Martin Yankov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Fatiha
Top achievements
Rank 1
answered on 16 Mar 2015, 09:47 AM
Hello,

Thank you for your reply, indeed I ve fixed it that day by giving  the right parameter which is 'en-GB'.
However, in the doc of the same function, you give 'en-UK' as an example (see attached screenshot), please consider to update it.

Link to doc : http://www.telerik.com/help/windows-8-html/common-culture-support.html

Thank you.
Fatiha
0
Martin Yankov
Telerik team
answered on 19 Mar 2015, 08:45 AM
Hello Fatiha,

I am glad you were able to figure this out yourself. Thank you for reporting this. I apologize for the misleading documentation and will report this to our technical writers.

Regards,
Martin Yankov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Fatiha
Top achievements
Rank 1
answered on 20 Mar 2015, 10:29 AM
Thank you.

Regards,
Fatiha
Tags
DatePicker
Asked by
Fatiha
Top achievements
Rank 1
Answers by
Martin Yankov
Telerik team
Fatiha
Top achievements
Rank 1
Share this question
or