Any way to get current user UI language without .NET code ?
-
Wednesday, February 08, 2012 10:08 AM
Hi all,
I need to get the current user language, but I cannot use .NET code.
So is there any way to get it via jquery/javascript/ajax/webservices or is there a way to get the value via SharePoint Designer ?
EDIT: I found a blogpost that described it, but I can't get it to work: var lcid =_spPageContextInfo.currentLanguage;
What I am trying to do is filter a list based on user language.
http://marijnsomers.blogspot.com || @marijnsomers
- Edited by Marijn SomersMicrosoft Community Contributor Wednesday, February 08, 2012 10:17 AM
Answers
-
Thursday, February 09, 2012 12:04 AM
javascript:alert(_spPageContextInfo.currentLanguage)
put that into your browser address bar after your SharePoint page is loaded - you should get a message box showing you the language lcid for the site.
current language for me is 1033, which is en-US
http://msdn.microsoft.com/en-us/goglobal/bb964664
jliu - http://johnliu.net - http://sharepointgurus.net
- Marked As Answer by Marijn SomersMicrosoft Community Contributor Thursday, February 09, 2012 7:55 AM
All Replies
-
Thursday, February 09, 2012 12:04 AM
javascript:alert(_spPageContextInfo.currentLanguage)
put that into your browser address bar after your SharePoint page is loaded - you should get a message box showing you the language lcid for the site.
current language for me is 1033, which is en-US
http://msdn.microsoft.com/en-us/goglobal/bb964664
jliu - http://johnliu.net - http://sharepointgurus.net
- Marked As Answer by Marijn SomersMicrosoft Community Contributor Thursday, February 09, 2012 7:55 AM
-
Thursday, February 09, 2012 7:55 AMAwesomesauce!
http://marijnsomers.blogspot.com || @marijnsomers