diff --git a/DS4Windows/DS4Forms/DS4Form.cs b/DS4Windows/DS4Forms/DS4Form.cs index 236a0d0..635b3e4 100644 --- a/DS4Windows/DS4Forms/DS4Form.cs +++ b/DS4Windows/DS4Forms/DS4Form.cs @@ -89,7 +89,7 @@ namespace DS4Windows public DS4Form(string[] args) { Global.Load(); - Program.SetCulture(UseLang); + this.setCulture(UseLang); InitializeComponent(); ThemeUtil.SetTheme(lvDebug); @@ -430,6 +430,16 @@ namespace DS4Windows } } + private void setCulture(string culture) + { + try + { + Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo(culture); + CultureInfo.DefaultThreadCurrentUICulture = CultureInfo.GetCultureInfo(culture); + } + catch { /* Skip setting culture that we cannot set */ } + } + private void populateHoverTextDict() { hoverTextDict.Clear(); diff --git a/DS4Windows/Program.cs b/DS4Windows/Program.cs index 6f2eaad..8436793 100644 --- a/DS4Windows/Program.cs +++ b/DS4Windows/Program.cs @@ -120,16 +120,6 @@ namespace DS4Windows threadComEvent.Close(); } - public static void SetCulture(string culture) - { - try - { - Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo(culture); - CultureInfo.DefaultThreadCurrentUICulture = CultureInfo.GetCultureInfo(culture); - } - catch { /* Skip setting culture that we cannot set */ } - } - private static void createControlService() { controlThread = new Thread(() => { rootHub = new ControlService(); });