Mehrsprachigkeit mit Resx-Ressourcen und Sprachwechsel hinzugefügt

This commit is contained in:
2026-02-13 11:44:52 +01:00
parent 57735cdf93
commit b4d70c4825
10 changed files with 610 additions and 27 deletions

View File

@@ -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 @@
<StackPanel Orientation="Horizontal">
<Ellipse Width="36" Height="36" Fill="White" Margin="0,0,10,0"/>
<StackPanel>
<TextBlock Text="Sky Team Airlines" FontSize="20" FontWeight="Bold" Foreground="White"/>
<TextBlock Text="Sichere und komfortable Flüge weltweit" FontSize="12" Foreground="White"/>
<TextBlock Text="{x:Static properties:Resources.HeaderTitle}" FontSize="20" FontWeight="Bold" Foreground="White"/>
<TextBlock Text="{x:Static properties:Resources.HeaderSubtitle}" FontSize="12" Foreground="White"/>
</StackPanel>
</StackPanel>
</Border>
@@ -30,28 +31,28 @@
<Button x:Name="HomeButton" Height="50" Margin="5" Click="HomeButton_Click" Background="{DynamicResource CardBackground}" BorderThickness="0">
<StackPanel Orientation="Horizontal">
<iconPacks:PackIconMaterial Kind="Home" Width="20" Margin="0,0,10,0" Foreground="{DynamicResource PrimaryText}"/>
<TextBlock Text="Home" FontWeight="Bold" Foreground="{DynamicResource PrimaryText}"/>
<TextBlock Text="{x:Static properties:Resources.SidebarHome}" FontWeight="Bold" Foreground="{DynamicResource PrimaryText}"/>
</StackPanel>
</Button>
<Button x:Name="BookingsButton" Height="50" Margin="5" Click="BookingsButton_Click" Background="Transparent" BorderThickness="0">
<StackPanel Orientation="Horizontal">
<iconPacks:PackIconMaterial Kind="Airplane" Width="20" Margin="0,0,10,0" Foreground="{DynamicResource PrimaryText}"/>
<TextBlock Text="Meine Buchungen" Foreground="{DynamicResource PrimaryText}"/>
<TextBlock Text="{x:Static properties:Resources.SidebarBookings}" Foreground="{DynamicResource PrimaryText}"/>
</StackPanel>
</Button>
<Button x:Name="SettingsButton" Height="50" Margin="5" Click="SettingsButton_Click" Background="Transparent" BorderThickness="0">
<StackPanel Orientation="Horizontal">
<iconPacks:PackIconMaterial Kind="Cog" Width="20" Margin="0,0,10,0" Foreground="{DynamicResource PrimaryText}"/>
<TextBlock Text="Einstellungen" Foreground="{DynamicResource PrimaryText}"/>
<TextBlock Text="{x:Static properties:Resources.SidebarSettings}" Foreground="{DynamicResource PrimaryText}"/>
</StackPanel>
</Button>
<Button x:Name="LogoutButton" Height="50" Margin="5" Background="#FFEBEB" BorderBrush="#FFB71C1C" Foreground="#D32F2F" FontWeight="Bold" Click="LogoutButton_Click">
<StackPanel Orientation="Horizontal">
<iconPacks:PackIconMaterial Kind="Logout" Width="20" Margin="0,0,10,0"/>
<TextBlock Text="Abmelden"/>
<TextBlock Text="{x:Static properties:Resources.SidebarLogout}"/>
</StackPanel>
</Button>
</StackPanel>
@@ -62,17 +63,17 @@
<StackPanel Orientation="Horizontal" Margin="0,0,0,30">
<iconPacks:PackIconMaterial Kind="AirplaneTakeoff" Width="48" Height="48" Foreground="{DynamicResource PrimaryText}" Margin="0,0,15,0"/>
<StackPanel>
<TextBlock Text="Willkommen bei Sky Team Airlines" FontSize="28" FontWeight="Bold" Foreground="{DynamicResource PrimaryText}"/>
<TextBlock Text="Exklusive Flugservices für Privatjets" FontSize="16" Foreground="{DynamicResource SecondaryText}"/>
<TextBlock Text="{x:Static properties:Resources.WelcomeTitle}" FontSize="28" FontWeight="Bold" Foreground="{DynamicResource PrimaryText}"/>
<TextBlock Text="{x:Static properties:Resources.WelcomeSubtitle}" FontSize="16" Foreground="{DynamicResource SecondaryText}"/>
</StackPanel>
</StackPanel>
<Border Background="{DynamicResource CardBackground}" Padding="25" CornerRadius="8" Margin="0,0,0,25">
<TextBlock Text="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."
<TextBlock Text="{x:Static properties:Resources.WelcomeDescription}"
FontSize="14" LineHeight="22" TextWrapping="Wrap" Foreground="{DynamicResource PrimaryText}"/>
</Border>
<TextBlock Text="Unsere Services" FontSize="20" FontWeight="Bold" Foreground="{DynamicResource PrimaryText}" Margin="0,0,15,0"/>
<TextBlock Text="{x:Static properties:Resources.ServicesTitle}" FontSize="20" FontWeight="Bold" Foreground="{DynamicResource PrimaryText}" Margin="0,0,15,0"/>
<Grid>
<Grid.ColumnDefinitions>
@@ -83,16 +84,16 @@
<Border Grid.Column="0" Margin="0,0,15,0" Padding="20" Background="{DynamicResource CardBackground}" CornerRadius="8">
<StackPanel>
<iconPacks:PackIconMaterial Kind="AccountGroup" Width="32" Height="32" Foreground="#1E88E5"/>
<TextBlock Text="Persönliche Kundenbetreuung" FontSize="16" FontWeight="Bold" Foreground="{DynamicResource PrimaryText}" Margin="0,10,0,5"/>
<TextBlock Text="Dedizierte Flugplanung und individuelle Bedürfnisse" FontSize="13" Foreground="{DynamicResource SecondaryText}" TextWrapping="Wrap"/>
<TextBlock Text="{x:Static properties:Resources.ServicePersonalSupport}" FontSize="16" FontWeight="Bold" Foreground="{DynamicResource PrimaryText}" Margin="0,10,0,5"/>
<TextBlock Text="{x:Static properties:Resources.ServicePersonalSupportDesc}" FontSize="13" Foreground="{DynamicResource SecondaryText}" TextWrapping="Wrap"/>
</StackPanel>
</Border>
<Border Grid.Column="1" Padding="20" Background="{DynamicResource CardBackground}" CornerRadius="8">
<StackPanel>
<iconPacks:PackIconMaterial Kind="Database" Width="32" Height="32" Foreground="#388E3C"/>
<TextBlock Text="Sichere Datenverwaltung" FontSize="16" FontWeight="Bold" Foreground="{DynamicResource PrimaryText}" Margin="0,10,0,5"/>
<TextBlock Text="Vollständiger CRUD für Kunden, Flüge, Piloten" FontSize="13" Foreground="{DynamicResource SecondaryText}" TextWrapping="Wrap"/>
<TextBlock Text="{x:Static properties:Resources.ServiceDataSecurity}" FontSize="16" FontWeight="Bold" Foreground="{DynamicResource PrimaryText}" Margin="0,10,0,5"/>
<TextBlock Text="{x:Static properties:Resources.ServiceDataSecurityDesc}" FontSize="13" Foreground="{DynamicResource SecondaryText}" TextWrapping="Wrap"/>
</StackPanel>
</Border>
</Grid>
@@ -101,7 +102,7 @@
<Button Width="200" Height="50" Background="#FF1E88E5" Foreground="White" FontSize="16" FontWeight="Bold" Click="BookFlightButton_Click">
<StackPanel Orientation="Horizontal">
<iconPacks:PackIconMaterial Kind="Airplane" Width="24" Height="24" Margin="0,0,12,0"/>
<TextBlock Text="Jetzt Flug buchen"/>
<TextBlock Text="{x:Static properties:Resources.BookFlightButton}"/>
</StackPanel>
</Button>
</StackPanel>