Skip to content

Commit

Permalink
TR Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HamzaYslmn committed Apr 11, 2023
2 parents 0779d15 + 08e1ed5 commit dfa4fe8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/Keyboard.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions app/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,14 @@ static class Program
public static void Main()
{

Thread.CurrentThread.CurrentCulture = CultureInfo.CurrentCulture;
Thread.CurrentThread.CurrentUICulture = CultureInfo.CurrentUICulture;
if (CultureInfo.CurrentUICulture.ToString().Contains("zh-"))
Thread.CurrentThread.CurrentUICulture = CultureInfo.CreateSpecificCulture("zh");
else
Thread.CurrentThread.CurrentUICulture = CultureInfo.CurrentUICulture;

//Thread.CurrentThread.CurrentUICulture = CultureInfo.CreateSpecificCulture("zh");
Debug.WriteLine(CultureInfo.CurrentUICulture);

//Thread.CurrentThread.CurrentUICulture = CultureInfo.CreateSpecificCulture("zh-hans");

if (Process.GetProcesses().Count(p => p.ProcessName == "GHelper") > 1)
{
Expand Down
4 changes: 2 additions & 2 deletions app/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dfa4fe8

Please sign in to comment.