Use the below property to get the currentculture in Resource file
public static string "PropertyName"
{
get
{
return SPUtility.GetLocalizedString("$Resources:resourcefilename,PropertyName", "resourcefilename", Convert.ToUInt32(System.Globalization.CultureInfo.CurrentCulture.LCID));
}
}
public static string "PropertyName"
{
get
{
return SPUtility.GetLocalizedString("$Resources:resourcefilename,PropertyName", "resourcefilename", Convert.ToUInt32(System.Globalization.CultureInfo.CurrentCulture.LCID));
}
}
No comments:
Post a Comment