Saturday, November 12, 2011

get localeid in SharePoint How?


reference(Shailen Sukul )
Objective: Get the locale id out of the current context.
public int HarvestCurrentLCID(System.Web.HttpContext context)
{
return (int)Microsoft.SharePoint.WebControls.SPControl.GetContextWeb(context).Language;
}
Usage:
int localeID = HarvestCurrentLCID(System.Web.HttpContext.Current);
Keywords: Locale id Localization Termstore Term Termset Label

SPONSORS:

No comments:

Post a Comment