Skip to content

Commit 6282b32

Browse files
committed
added translations engine (en,de)
1 parent 2284e21 commit 6282b32

18 files changed

+1376
-97
lines changed

PC_Component_Info/App.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
33
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
44
xmlns:local="clr-namespace:PC_Component_Info"
5+
xmlns:lang="clr-namespace:PC_Component_Info.Lang"
56
StartupUri="MainWindow.xaml">
67
<Application.Resources>
78

PC_Component_Info/App.xaml.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Configuration;
4-
using System.Data;
5-
using System.Linq;
6-
using System.Threading.Tasks;
7-
using System.Windows;
1+
using System.Windows;
82

93
namespace PC_Component_Info
104
{
@@ -13,5 +7,11 @@ namespace PC_Component_Info
137
/// </summary>
148
public partial class App : Application
159
{
10+
App()
11+
{
12+
// Set the culture of the application to the system culture
13+
//System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("en-EN");
14+
System.Threading.Thread.CurrentThread.CurrentUICulture = System.Globalization.CultureInfo.CurrentCulture;
15+
}
1616
}
1717
}

0 commit comments

Comments
 (0)