2
Vote

GetStandardImage default language

description

Currently GetStandardImage(x,y) only work when a Sharepoint English installation. Instead of using 1033 as default path it would be great to use the current SPWeb language.

Something like that:

public static ImageDefinition GetStandardImage(int x, int y)
{
        return GetStandardImage(x, y, Convert.ToInt32(SPContext.Current.Web.Language));
}

comments

omlin wrote Jun 26, 2012 at 9:31 AM

There is an overload to GetStandardImage, which receives LCID parameter, so you can pass SPContext.Current.Web.Locale.LCID there.