How can I localize DevExpress.XtraEditors.DateEdit without specifying CurrentCulture?
Currently I know that I can localize it by specifying CurrentCulture, But it will cause the date format to change.
This is my code:
public static void SetCurrentUICulture(string name)
{
if (string.IsNullOrEmpty(name))
{
name = "zh-CN";
}
Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(name);
// Thread.CurrentThread.CurrentCulture = new CultureInfo(name);
}
Is there any other way to do this?