feat(i18n): translate navigation and the speaker reminder

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
fraujulianandClaude Opus 5.5 committed 2026-11-26 09:22:36 +01:00
1 parent 2d88d17b22
commit d906222a39
2 files changed
+9 -7

No files matched your search

+5 -4
View File
@@ -3,6 +3,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml" xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
xmlns:pages="clr-namespace:Radiosender.Views.Pages" xmlns:pages="clr-namespace:Radiosender.Views.Pages"
xmlns:l="clr-namespace:Radiosender.Views"
Title="Radiosender" Title="Radiosender"
Width="1100" Height="700" Width="1100" Height="700"
MinWidth="800" MinHeight="500" MinWidth="800" MinHeight="500"
@@ -22,18 +23,18 @@
ScrollViewer.CanContentScroll="False" and let their lists scroll themselves. --> ScrollViewer.CanContentScroll="False" and let their lists scroll themselves. -->
<ui:NavigationView x:Name="RootNavigation" Grid.Row="1" IsBackButtonVisible="Collapsed"> <ui:NavigationView x:Name="RootNavigation" Grid.Row="1" IsBackButtonVisible="Collapsed">
<ui:NavigationView.MenuItems> <ui:NavigationView.MenuItems>
<ui:NavigationViewItem Content="Sendeplan" <ui:NavigationViewItem Content="{l:Tr Main_NavSchedule}"
Icon="{ui:SymbolIcon CalendarLtr24}" Icon="{ui:SymbolIcon CalendarLtr24}"
TargetPageType="{x:Type pages:SchedulePage}" /> TargetPageType="{x:Type pages:SchedulePage}" />
<ui:NavigationViewItem Content="Bibliothek" <ui:NavigationViewItem Content="{l:Tr Main_NavLibrary}"
Icon="{ui:SymbolIcon MusicNote224}" Icon="{ui:SymbolIcon MusicNote224}"
TargetPageType="{x:Type pages:LibraryPage}" /> TargetPageType="{x:Type pages:LibraryPage}" />
<ui:NavigationViewItem Content="Import" <ui:NavigationViewItem Content="{l:Tr Main_NavImport}"
Icon="{ui:SymbolIcon ArrowDownload24}" Icon="{ui:SymbolIcon ArrowDownload24}"
TargetPageType="{x:Type pages:ImportPage}" /> TargetPageType="{x:Type pages:ImportPage}" />
</ui:NavigationView.MenuItems> </ui:NavigationView.MenuItems>
<ui:NavigationView.FooterMenuItems> <ui:NavigationView.FooterMenuItems>
<ui:NavigationViewItem Content="Einstellungen" <ui:NavigationViewItem Content="{l:Tr Main_NavSettings}"
Icon="{ui:SymbolIcon Settings24}" Icon="{ui:SymbolIcon Settings24}"
TargetPageType="{x:Type pages:SettingsPage}" /> TargetPageType="{x:Type pages:SettingsPage}" />
</ui:NavigationView.FooterMenuItems> </ui:NavigationView.FooterMenuItems>
+4 -3
View File
@@ -3,6 +3,7 @@ using NAudio.Wave;
using NAudio.Wave.SampleProviders; using NAudio.Wave.SampleProviders;
using Radiosender.Controllers; using Radiosender.Controllers;
using Radiosender.Models; using Radiosender.Models;
using Radiosender.Services.Localization;
using Radiosender.Services.Settings; using Radiosender.Services.Settings;
using Radiosender.Views.Pages; using Radiosender.Views.Pages;
using Wpf.Ui.Controls; using Wpf.Ui.Controls;
@@ -42,9 +43,9 @@ public partial class MainWindow : FluentWindow
PlayBing(); PlayBing();
_ = new Wpf.Ui.Controls.MessageBox _ = new Wpf.Ui.Controls.MessageBox
{ {
Title = "Gleich bist du dran.", Title = Loc.T("Main_ReminderTitle"),
Content = item.Title.Length > 0 ? $"{what} um {item.Start:HH:mm:ss}: {item.Title}" : $"{what} um {item.Start:HH:mm:ss}", Content = item.Title.Length > 0 ? Loc.F("Main_ReminderTextTitled", what, item.Start, item.Title) : Loc.F("Main_ReminderText", what, item.Start),
CloseButtonText = "OK", CloseButtonText = Loc.T("Main_Ok"),
WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen, WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen,
Topmost = true, Topmost = true,
}.ShowDialogAsync(); }.ShowDialogAsync();