mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[GUI] Modernize XAML localization.
This commit is contained in:
@@ -42,7 +42,6 @@ using Aaru.Localization;
|
||||
using Aaru.Logging;
|
||||
using Avalonia.Platform.Storage;
|
||||
using CommunityToolkit.Mvvm.Input;
|
||||
using JetBrains.Annotations;
|
||||
using MsBox.Avalonia;
|
||||
using MsBox.Avalonia.Enums;
|
||||
using Console = Aaru.Gui.Views.Dialogs.Console;
|
||||
@@ -63,27 +62,10 @@ public sealed class ConsoleViewModel : ViewModelBase
|
||||
ClearCommand = new RelayCommand(Clear);
|
||||
}
|
||||
|
||||
[NotNull]
|
||||
public string Title => UI.Title_Console;
|
||||
|
||||
public ICommand ClearCommand { get; }
|
||||
public ICommand SaveCommand { get; }
|
||||
public ObservableCollection<LogEntry> Entries => ConsoleHandler.Entries;
|
||||
|
||||
[NotNull]
|
||||
public string DebugText => UI.Enable_debug_console;
|
||||
|
||||
[NotNull]
|
||||
public string SaveLabel => UI.ButtonLabel_Save;
|
||||
|
||||
[NotNull]
|
||||
public string ClearLabel => UI.ButtonLabel_Clear;
|
||||
|
||||
public string TimeLabel => UI.Title_Time;
|
||||
public string TypeLabel => UI.Title_Type;
|
||||
public string ModuleLabel => UI.Title_Module;
|
||||
public string MessageLabel => UI.Title_Message;
|
||||
|
||||
public bool DebugChecked
|
||||
{
|
||||
get => _debugChecked;
|
||||
|
||||
Reference in New Issue
Block a user