Translations

This commit is contained in:
seerge
2023-04-11 01:25:39 +02:00
parent e82dab5e7c
commit b2a01a8bdc
16 changed files with 2733 additions and 142 deletions

View File

@@ -1,5 +1,6 @@
using Microsoft.Win32;
using System.Diagnostics;
using System.Globalization;
using System.Management;
using Tools;
@@ -30,9 +31,16 @@ namespace GHelper
public static void Main()
{
Thread.CurrentThread.CurrentCulture = CultureInfo.CurrentCulture;
Thread.CurrentThread.CurrentUICulture = CultureInfo.CurrentUICulture;
//Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("zh");
//Thread.CurrentThread.CurrentUICulture = CultureInfo.CreateSpecificCulture("zh");
if (Process.GetProcesses().Count(p => p.ProcessName == "GHelper") > 1)
{
MessageBox.Show("G-Helper is already running. Check system tray for an icon.", "App already running", MessageBoxButtons.OK);
MessageBox.Show(Properties.Strings.AppAlreadyRunningText, Properties.Strings.AppAlreadyRunning, MessageBoxButtons.OK);
Application.Exit();
return;
}
@@ -44,7 +52,7 @@ namespace GHelper
}
catch
{
DialogResult dialogResult = MessageBox.Show("Can't connect to ASUS ACPI. Application can't function without it. Try to install Asus System Controll Interface", "Startup Error", MessageBoxButtons.YesNo);
DialogResult dialogResult = MessageBox.Show(Properties.Strings.ACPIError, Properties.Strings.StartupError, MessageBoxButtons.YesNo);
if (dialogResult == DialogResult.Yes)
{
Process.Start(new ProcessStartInfo("https://www.asus.com/support/FAQ/1047338/") { UseShellExecute = true });
@@ -55,6 +63,8 @@ namespace GHelper
}
Logger.WriteLine("------------");
Logger.WriteLine("App launched: " + config.GetModel());
@@ -92,6 +102,8 @@ namespace GHelper
SettingsToggle();
}
Application.Run();