locked
Getting incorrect language ID (LCID) RRS feed

  • Question

  • Hi,

    I am developing an an application to support multi-language in share-point 2013.

    I have installed language packs, when i change my display language from browser i am getting incorrect LCID

    for eg.

    Fro Russian language  it is returning 25 where it must return 1049

    SPContext.Current.Web.CurrentUser().LanguageSettings.PreferredDisplayLanguages.Item(0).LCID

    Please let me know how can i get accurate language ID

    Thanks,


    C Mahone

    Friday, May 2, 2014 9:55 AM

Answers

  • Hi,

    I got it. When we select Russian language it returns 0x0019 which is 25 (decimal). And when we select Russian (Russia) it returns 

    0x0419 = 1049(decimal) .

    Note that there is difference in Russian and Russian (Russia) language, and there is difference in culture name as well, 

    Russia - ru

    Russian(Russia) - ru-RU

    Below link contains information about national languages.

    http://www.microsoft.com/resources/msdn/goglobal/default.mspx  

    Thanks,



    C Mahone

    • Marked as answer by C Mahone Monday, May 5, 2014 8:02 AM
    Monday, May 5, 2014 8:02 AM

All replies

  • You can get the display language using below code

    varlcid =_spPageContextInfo.currentLanguage
    http://sharepoint.stackexchange.com/questions/6915/get-the-current-ui-language-with-ecmascript

    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

    Sunday, May 4, 2014 4:54 AM
  • Hi,

    I got it. When we select Russian language it returns 0x0019 which is 25 (decimal). And when we select Russian (Russia) it returns 

    0x0419 = 1049(decimal) .

    Note that there is difference in Russian and Russian (Russia) language, and there is difference in culture name as well, 

    Russia - ru

    Russian(Russia) - ru-RU

    Below link contains information about national languages.

    http://www.microsoft.com/resources/msdn/goglobal/default.mspx  

    Thanks,



    C Mahone

    • Marked as answer by C Mahone Monday, May 5, 2014 8:02 AM
    Monday, May 5, 2014 8:02 AM