Skip to content

Commit

Permalink
Merge pull request #8 from andreasbalzer/users/andreas/xna-language
Browse files Browse the repository at this point in the history
AneMe: Change xna language to English if system not configured to German
  • Loading branch information
tomwendel authored Sep 22, 2019
2 parents 3b2cb29 + b8a6987 commit 0c7685e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions XnaPlugin/XnaPlugin/RenderWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,11 @@ protected override void Initialize()
camera = new Camera(Window);
previousKeyboardState = Keyboard.GetState();

Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("de");
Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("de");
if (!string.Equals(Thread.CurrentThread.CurrentCulture.TwoLetterISOLanguageName, "de", StringComparison.InvariantCultureIgnoreCase))
{
Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en");
Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("en");
}

base.Initialize();
}
Expand Down

0 comments on commit 0c7685e

Please sign in to comment.