diff --git a/SkyTeam/App.xaml.cs b/SkyTeam/App.xaml.cs
index 3289b10..d1d331c 100644
--- a/SkyTeam/App.xaml.cs
+++ b/SkyTeam/App.xaml.cs
@@ -1,18 +1,18 @@
-using System.Windows;
+using BCrypt.Net;
using MySql.Data.MySqlClient;
-using BCrypt.Net;
+using System.Globalization;
+using System.Reflection;
+using System.Windows;
namespace SkyTeam
{
public partial class App : Application
{
-
// Beim Start der Anwendung einen Standard Admin-Benutzer erstellen, falls keiner existiert , selbGedacht.
-
- protected override void OnStartup(StartupEventArgs e)
+ public App()
{
- base.OnStartup(e);
- CreateDefaultAdmin();
+ Thread.CurrentThread.CurrentUICulture = new CultureInfo("de");
+ Thread.CurrentThread.CurrentUICulture = new CultureInfo("de");
}
private void CreateDefaultAdmin()
diff --git a/SkyTeam/HomePage.xaml b/SkyTeam/HomePage.xaml
index 88670b2..1934497 100644
--- a/SkyTeam/HomePage.xaml
+++ b/SkyTeam/HomePage.xaml
@@ -2,6 +2,7 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
+ xmlns:properties="clr-namespace:SkyTeam"
Title="NavigationPage"
Background="{DynamicResource PageBackground}">
@@ -19,8 +20,8 @@
-
-
+
+
@@ -30,28 +31,28 @@
@@ -62,17 +63,17 @@
-
-
+
+
-
-
+
@@ -83,16 +84,16 @@
-
-
+
+
-
-
+
+
@@ -101,7 +102,7 @@
diff --git a/SkyTeam/HomePage.xaml.cs b/SkyTeam/HomePage.xaml.cs
index ce5ab6c..cc9081f 100644
--- a/SkyTeam/HomePage.xaml.cs
+++ b/SkyTeam/HomePage.xaml.cs
@@ -8,7 +8,6 @@ namespace SkyTeam
public NavigationPage()
{
InitializeComponent();
-
}
private void HomeButton_Click(object sender, RoutedEventArgs e)
diff --git a/SkyTeam/MainWindow.xaml b/SkyTeam/MainWindow.xaml
index 1873a94..054404e 100644
--- a/SkyTeam/MainWindow.xaml
+++ b/SkyTeam/MainWindow.xaml
@@ -4,7 +4,6 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:SkyTeam"
- mc:Ignorable="d"
Title="Sky Team Airlines"
Height="700"
Width="1100"
diff --git a/SkyTeam/Resources.Designer.cs b/SkyTeam/Resources.Designer.cs
new file mode 100644
index 0000000..b6612e3
--- /dev/null
+++ b/SkyTeam/Resources.Designer.cs
@@ -0,0 +1,198 @@
+//------------------------------------------------------------------------------
+//
+// Dieser Code wurde von einem Tool generiert.
+// Laufzeitversion:4.0.30319.42000
+//
+// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
+// der Code erneut generiert wird.
+//
+//------------------------------------------------------------------------------
+
+namespace SkyTeam {
+ using System;
+
+
+ ///
+ /// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
+ ///
+ // Diese Klasse wurde von der StronglyTypedResourceBuilder automatisch generiert
+ // -Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert.
+ // Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen
+ // mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ public class Resources {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources() {
+ }
+
+ ///
+ /// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ public static global::System.Resources.ResourceManager ResourceManager {
+ get {
+ if (object.ReferenceEquals(resourceMan, null)) {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SkyTeam.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
+ /// Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ public static global::System.Globalization.CultureInfo Culture {
+ get {
+ return resourceCulture;
+ }
+ set {
+ resourceCulture = value;
+ }
+ }
+
+ ///
+ /// Sucht eine lokalisierte Zeichenfolge, die Jetzt Flug buchen ähnelt.
+ ///
+ public static string BookFlightButton {
+ get {
+ return ResourceManager.GetString("BookFlightButton", resourceCulture);
+ }
+ }
+
+ ///
+ /// Sucht eine lokalisierte Zeichenfolge, die Sichere und komfortable Flüge weltweit ähnelt.
+ ///
+ public static string HeaderSubtitle {
+ get {
+ return ResourceManager.GetString("HeaderSubtitle", resourceCulture);
+ }
+ }
+
+ ///
+ /// Sucht eine lokalisierte Zeichenfolge, die Sky Team Airlines ähnelt.
+ ///
+ public static string HeaderTitle {
+ get {
+ return ResourceManager.GetString("HeaderTitle", resourceCulture);
+ }
+ }
+
+ ///
+ /// Sucht eine lokalisierte Zeichenfolge, die Sichere Datenverwaltung ähnelt.
+ ///
+ public static string ServiceDataSecurity {
+ get {
+ return ResourceManager.GetString("ServiceDataSecurity", resourceCulture);
+ }
+ }
+
+ ///
+ /// Sucht eine lokalisierte Zeichenfolge, die Vollständiger CRUD für Kunden, Flüge, Piloten ähnelt.
+ ///
+ public static string ServiceDataSecurityDesc {
+ get {
+ return ResourceManager.GetString("ServiceDataSecurityDesc", resourceCulture);
+ }
+ }
+
+ ///
+ /// Sucht eine lokalisierte Zeichenfolge, die Persönliche Kundenbetreuung ähnelt.
+ ///
+ public static string ServicePersonalSupport {
+ get {
+ return ResourceManager.GetString("ServicePersonalSupport", resourceCulture);
+ }
+ }
+
+ ///
+ /// Sucht eine lokalisierte Zeichenfolge, die Individuelle Flugplanung und maßgeschneiderte Lösungen ähnelt.
+ ///
+ public static string ServicePersonalSupportDesc {
+ get {
+ return ResourceManager.GetString("ServicePersonalSupportDesc", resourceCulture);
+ }
+ }
+
+ ///
+ /// Sucht eine lokalisierte Zeichenfolge, die Unsere Services ähnelt.
+ ///
+ public static string ServicesTitle {
+ get {
+ return ResourceManager.GetString("ServicesTitle", resourceCulture);
+ }
+ }
+
+ ///
+ /// Sucht eine lokalisierte Zeichenfolge, die Meine Buchungen ähnelt.
+ ///
+ public static string SidebarBookings {
+ get {
+ return ResourceManager.GetString("SidebarBookings", resourceCulture);
+ }
+ }
+
+ ///
+ /// Sucht eine lokalisierte Zeichenfolge, die Startseite ähnelt.
+ ///
+ public static string SidebarHome {
+ get {
+ return ResourceManager.GetString("SidebarHome", resourceCulture);
+ }
+ }
+
+ ///
+ /// Sucht eine lokalisierte Zeichenfolge, die Abmelden ähnelt.
+ ///
+ public static string SidebarLogout {
+ get {
+ return ResourceManager.GetString("SidebarLogout", resourceCulture);
+ }
+ }
+
+ ///
+ /// Sucht eine lokalisierte Zeichenfolge, die Einstellungen ähnelt.
+ ///
+ public static string SidebarSettings {
+ get {
+ return ResourceManager.GetString("SidebarSettings", resourceCulture);
+ }
+ }
+
+ ///
+ /// Sucht eine lokalisierte Zeichenfolge, die Sky Team Airlines bietet komfortable Veranstaltung von Privatjets für Geschäftsreisende. Unsere moderne Flotte mit den neuesten Businessjets garantiert Ihnen maximalen Komfort auf Ihren Flügen. ähnelt.
+ ///
+ public static string WelcomeDescription {
+ get {
+ return ResourceManager.GetString("WelcomeDescription", resourceCulture);
+ }
+ }
+
+ ///
+ /// Sucht eine lokalisierte Zeichenfolge, die Exklusive Flugservices für Privatjets ähnelt.
+ ///
+ public static string WelcomeSubtitle {
+ get {
+ return ResourceManager.GetString("WelcomeSubtitle", resourceCulture);
+ }
+ }
+
+ ///
+ /// Sucht eine lokalisierte Zeichenfolge, die Willkommen bei Sky Team Airlines ähnelt.
+ ///
+ public static string WelcomeTitle {
+ get {
+ return ResourceManager.GetString("WelcomeTitle", resourceCulture);
+ }
+ }
+ }
+}
diff --git a/SkyTeam/Resources.en.resx b/SkyTeam/Resources.en.resx
new file mode 100644
index 0000000..db3d0c2
--- /dev/null
+++ b/SkyTeam/Resources.en.resx
@@ -0,0 +1,165 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+
+
+
+ Safe and comfortable flights worldwide
+
+
+ Sky Team Airlines
+
+
+ Secure Data Management
+
+
+ Full management of customers, flights and pilots
+
+
+ Personal Customer Support
+
+
+ Individual flight planning and tailored solutions
+
+
+ Our Services
+
+
+ My Bookings
+
+
+ Home
+
+
+ Logout
+
+
+ Settings
+
+
+ Sky Team Airlines offers comfortable private jet services for business travelers. Our modern fleet with the latest business jets guarantees maximum comfort on your flights.
+
+
+ Exclusive private jet flight services
+
+
+ Welcome to Sky Team Airlines
+
+
\ No newline at end of file
diff --git a/SkyTeam/Resources.resx b/SkyTeam/Resources.resx
new file mode 100644
index 0000000..235567d
--- /dev/null
+++ b/SkyTeam/Resources.resx
@@ -0,0 +1,165 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ Jetzt Flug buchen
+
+
+ Sichere und komfortable Flüge weltweit
+
+
+ Sky Team Airlines
+
+
+ Sichere Datenverwaltung
+
+
+ Vollständiger CRUD für Kunden, Flüge, Piloten
+
+
+ Persönliche Kundenbetreuung
+
+
+ Individuelle Flugplanung und maßgeschneiderte Lösungen
+
+
+ Unsere Services
+
+
+ Meine Buchungen
+
+
+ Startseite
+
+
+ Abmelden
+
+
+ Einstellungen
+
+
+ Sky Team Airlines bietet komfortable Veranstaltung von Privatjets für Geschäftsreisende. Unsere moderne Flotte mit den neuesten Businessjets garantiert Ihnen maximalen Komfort auf Ihren Flügen.
+
+
+ Exklusive Flugservices für Privatjets
+
+
+ Willkommen bei Sky Team Airlines
+
+
\ No newline at end of file
diff --git a/SkyTeam/SettingsPage.xaml b/SkyTeam/SettingsPage.xaml
index b5cfde8..0dcc45d 100644
--- a/SkyTeam/SettingsPage.xaml
+++ b/SkyTeam/SettingsPage.xaml
@@ -101,6 +101,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -118,7 +148,6 @@
-
diff --git a/SkyTeam/SettingsPage.xaml.cs b/SkyTeam/SettingsPage.xaml.cs
index 72181bc..92b307d 100644
--- a/SkyTeam/SettingsPage.xaml.cs
+++ b/SkyTeam/SettingsPage.xaml.cs
@@ -1,9 +1,10 @@
-using System;
+using MySql.Data.MySqlClient;
+using System;
+using System.Globalization;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Navigation;
-using MySql.Data.MySqlClient;
namespace SkyTeam
{
@@ -91,5 +92,16 @@ namespace SkyTeam
SessionManager.CurrentUserId = 0;
NavigationService.Navigate(new LogInPage());
}
+
+ private void LanguageComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
+ {
+ if (LanguageComboBox.SelectedItem is ComboBoxItem selectedItem)
+ {
+ string culture = selectedItem.Tag.ToString();
+ Thread.CurrentThread.CurrentUICulture = new CultureInfo(culture);
+
+ NavigationService.Navigate(new SettingsPage());
+ }
+ }
}
}
\ No newline at end of file
diff --git a/SkyTeam/SkyTeam.csproj b/SkyTeam/SkyTeam.csproj
index 77273e6..41cc9d8 100644
--- a/SkyTeam/SkyTeam.csproj
+++ b/SkyTeam/SkyTeam.csproj
@@ -14,4 +14,19 @@
+
+
+ True
+ True
+ Resources.resx
+
+
+
+
+
+ PublicResXFileCodeGenerator
+ Resources.Designer.cs
+
+
+