Fixed issue #184
This commit is contained in:
1 parent
d19a6408b2
commit
cb74048c90
1 file changed
+3
-2
@@ -8,7 +8,7 @@ using System.Windows;
|
|||||||
using System.Windows.Markup;
|
using System.Windows.Markup;
|
||||||
using HandyControl.Controls;
|
using HandyControl.Controls;
|
||||||
using HandyControl.Data;
|
using HandyControl.Data;
|
||||||
|
using System.Threading;
|
||||||
namespace HandyControl.Tools
|
namespace HandyControl.Tools
|
||||||
{
|
{
|
||||||
public class ConfigHelper : INotifyPropertyChanged
|
public class ConfigHelper : INotifyPropertyChanged
|
||||||
@@ -43,6 +43,7 @@ namespace HandyControl.Tools
|
|||||||
public void SetLang(string lang)
|
public void SetLang(string lang)
|
||||||
{
|
{
|
||||||
Application.Current.Dispatcher.Thread.CurrentUICulture = new CultureInfo(lang);
|
Application.Current.Dispatcher.Thread.CurrentUICulture = new CultureInfo(lang);
|
||||||
|
Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture;
|
||||||
Lang = XmlLanguage.GetLanguage(lang);
|
Lang = XmlLanguage.GetLanguage(lang);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -66,4 +67,4 @@ namespace HandyControl.Tools
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user