문제

How can I get the selected language in the screenshot, from inside of a webpart?

alt text http://thomasstock.net/currentlanguage.png

I'm using SharePoint 2010. My webpart is a "visual web part" created in VS2010.

I'm trying things like SPContext.Current.Web.CurrentUser.RegionalSettings and SPContext.Current.Web.Language" but ofcourse these things have nothing to do with that setting. :-|

Can someone please help me? What property am I looking for.

도움이 되었습니까?

해결책

Use the System.Threading.Thread.CurrentThread.CurrentUICulture.LCID to get the current LCID

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top