CultureInfo ci if string IsNullOrEmpty Locale ci new CultureInfo Local

1
2
3
4
5
6
7
CultureInfo ci;
if (!string.IsNullOrEmpty(Locale))
ci = new CultureInfo(Locale);
else
ci = new CultureInfo("ru");
System.Threading.Thread.CurrentThread.CurrentUICulture = ci;
System.Threading.Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(ci.Name);