feat(i18n): translate navigation and the speaker reminder
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2d88d17b22
commit
d906222a39
2 files changed
+9
-7
No files matched your search
@@ -3,6 +3,7 @@
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
|
||||
xmlns:pages="clr-namespace:Radiosender.Views.Pages"
|
||||
xmlns:l="clr-namespace:Radiosender.Views"
|
||||
Title="Radiosender"
|
||||
Width="1100" Height="700"
|
||||
MinWidth="800" MinHeight="500"
|
||||
@@ -22,18 +23,18 @@
|
||||
ScrollViewer.CanContentScroll="False" and let their lists scroll themselves. -->
|
||||
<ui:NavigationView x:Name="RootNavigation" Grid.Row="1" IsBackButtonVisible="Collapsed">
|
||||
<ui:NavigationView.MenuItems>
|
||||
<ui:NavigationViewItem Content="Sendeplan"
|
||||
<ui:NavigationViewItem Content="{l:Tr Main_NavSchedule}"
|
||||
Icon="{ui:SymbolIcon CalendarLtr24}"
|
||||
TargetPageType="{x:Type pages:SchedulePage}" />
|
||||
<ui:NavigationViewItem Content="Bibliothek"
|
||||
<ui:NavigationViewItem Content="{l:Tr Main_NavLibrary}"
|
||||
Icon="{ui:SymbolIcon MusicNote224}"
|
||||
TargetPageType="{x:Type pages:LibraryPage}" />
|
||||
<ui:NavigationViewItem Content="Import"
|
||||
<ui:NavigationViewItem Content="{l:Tr Main_NavImport}"
|
||||
Icon="{ui:SymbolIcon ArrowDownload24}"
|
||||
TargetPageType="{x:Type pages:ImportPage}" />
|
||||
</ui:NavigationView.MenuItems>
|
||||
<ui:NavigationView.FooterMenuItems>
|
||||
<ui:NavigationViewItem Content="Einstellungen"
|
||||
<ui:NavigationViewItem Content="{l:Tr Main_NavSettings}"
|
||||
Icon="{ui:SymbolIcon Settings24}"
|
||||
TargetPageType="{x:Type pages:SettingsPage}" />
|
||||
</ui:NavigationView.FooterMenuItems>
|
||||
|
||||
@@ -3,6 +3,7 @@ using NAudio.Wave;
|
||||
using NAudio.Wave.SampleProviders;
|
||||
using Radiosender.Controllers;
|
||||
using Radiosender.Models;
|
||||
using Radiosender.Services.Localization;
|
||||
using Radiosender.Services.Settings;
|
||||
using Radiosender.Views.Pages;
|
||||
using Wpf.Ui.Controls;
|
||||
@@ -42,9 +43,9 @@ public partial class MainWindow : FluentWindow
|
||||
PlayBing();
|
||||
_ = new Wpf.Ui.Controls.MessageBox
|
||||
{
|
||||
Title = "Gleich bist du dran.",
|
||||
Content = item.Title.Length > 0 ? $"{what} um {item.Start:HH:mm:ss}: {item.Title}" : $"{what} um {item.Start:HH:mm:ss}",
|
||||
CloseButtonText = "OK",
|
||||
Title = Loc.T("Main_ReminderTitle"),
|
||||
Content = item.Title.Length > 0 ? Loc.F("Main_ReminderTextTitled", what, item.Start, item.Title) : Loc.F("Main_ReminderText", what, item.Start),
|
||||
CloseButtonText = Loc.T("Main_Ok"),
|
||||
WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen,
|
||||
Topmost = true,
|
||||
}.ShowDialogAsync();
|
||||
|
||||
Reference in new issue
Block a user