More in this section

Forums / Developing with Sitefinity / Language names

Language names

3 posts, 1 answered
  1. Fernando
    Fernando avatar
    31 posts
    Registered:
    08 Jun 2009
    24 Feb 2010
    Link to this post
    Hi,

    Is there any way to get the Language name (English, español, etc.) using the sitefinity's APIs and the language code (127, 10, etc.)?

    Thanks,
    Fernando Melo
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    24 Feb 2010
    Link to this post
    Hi Fernando,

    You can use the CultureInfo class which is built-in the .NET framework. Sitefinity uses this:
    System.Globalization.CultureInfo cultureInfo = new System.Globalization.CultureInfo(10);
    string nativeName = cultureInfo.NativeName;
    string englishName = cultureInfo.EnglishName;

    Regards,
    Radoslav Georgiev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
    Answered
  3. Fernando
    Fernando avatar
    31 posts
    Registered:
    08 Jun 2009
    24 Feb 2010
    Link to this post
    Ok, Thanks,
Register for webinar
3 posts, 1 answered