public static int LCID(string cultureName) { var culture = CultureInfo.GetCultureInfo(cultureName); return culture == null ? 0 : culture.LCID; }