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

5 posts, 0 answers
  1. Fatiha
    Fatiha avatar
    3 posts
    Member since:
    Oct 2013

    Posted 11 Mar 2015 Link to this post

    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






  2. Martin Yankov
    Admin
    Martin Yankov avatar
    177 posts

    Posted 16 Mar 2015 Link to this post

    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.

     
  3. Fatiha
    Fatiha avatar
    3 posts
    Member since:
    Oct 2013

    Posted 16 Mar 2015 in reply to Martin Yankov Link to this post

    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
  4. Martin Yankov
    Admin
    Martin Yankov avatar
    177 posts

    Posted 19 Mar 2015 Link to this post

    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.

     
  5. Fatiha
    Fatiha avatar
    3 posts
    Member since:
    Oct 2013

    Posted 20 Mar 2015 in reply to Martin Yankov Link to this post

    Thank you.

    Regards,
    Fatiha
Back to Top