Fixed issue #184

This commit is contained in:
Mahdi Hosseini authored and GitHub committed 2019-09-28 21:19:43 +03:30
1 parent d19a6408b2
commit cb74048c90
1 file changed
+3 -2
@@ -8,7 +8,7 @@ using System.Windows;
using System.Windows.Markup;
using HandyControl.Controls;
using HandyControl.Data;
using System.Threading;
namespace HandyControl.Tools
{
public class ConfigHelper : INotifyPropertyChanged
@@ -43,6 +43,7 @@ namespace HandyControl.Tools
public void SetLang(string lang)
{
Application.Current.Dispatcher.Thread.CurrentUICulture = new CultureInfo(lang);
Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture;
Lang = XmlLanguage.GetLanguage(lang);
}
@@ -66,4 +67,4 @@ namespace HandyControl.Tools
}
#endif
}
}
}