Add safe localization support
Adds English/Chinese localization infrastructure with en-US as default, zh-CN as optional language, safe fallback behavior, settings integration, localized notifications, and expanded test coverage.
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ui:ThemesDictionary Theme="Dark"/>
|
||||
<ui:ControlsDictionary/>
|
||||
<ResourceDictionary Source="Locales/en-US.xaml"/>
|
||||
<ResourceDictionary Source="Themes/FluentDark.xaml"/>
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
<helpers:BytesToMbConverter x:Key="BytesToMbConverter"/>
|
||||
|
||||
@@ -220,10 +220,12 @@ namespace ThreadPilot
|
||||
{
|
||||
var settingsService = this.ServiceProvider.GetRequiredService<IApplicationSettingsService>();
|
||||
var themeService = this.ServiceProvider.GetRequiredService<IThemeService>();
|
||||
var localizationService = this.ServiceProvider.GetRequiredService<ILocalizationService>();
|
||||
|
||||
Task.Run(async () => await settingsService.LoadSettingsAsync()).GetAwaiter().GetResult();
|
||||
var settings = settingsService.Settings;
|
||||
loadedSettings = settings;
|
||||
localizationService.ApplyLanguage(settings.Language);
|
||||
effectiveStartMinimized = startMinimized || settings.StartMinimized;
|
||||
var useDarkTheme = settings.HasUserThemePreference
|
||||
? settings.UseDarkTheme
|
||||
|
||||
@@ -0,0 +1,529 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:sys="clr-namespace:System;assembly=mscorlib">
|
||||
|
||||
<!-- MainWindow / General -->
|
||||
<sys:String x:Key="MainWindow_Title">ThreadPilot - Process & Power Plan Manager</sys:String>
|
||||
<sys:String x:Key="MainWindow_ElevationWarningTitle">Administrator Privileges Recommended</sys:String>
|
||||
<sys:String x:Key="MainWindow_ElevationWarningDescription">ThreadPilot is running with limited privileges. Some features may not be available.</sys:String>
|
||||
<sys:String x:Key="MainWindow_ElevationWarningRequired">Administrator access is required for:</sys:String>
|
||||
<sys:String x:Key="MainWindow_ElevationWarningPowerPlans">• Modifying power plan configurations</sys:String>
|
||||
<sys:String x:Key="MainWindow_ElevationWarningAffinity">• Changing process CPU affinity and priority</sys:String>
|
||||
<sys:String x:Key="MainWindow_ElevationWarningTweaks">• Applying system-level optimizations and tweaks</sys:String>
|
||||
<sys:String x:Key="MainWindow_ElevationWarningProtected">• Managing protected processes</sys:String>
|
||||
<sys:String x:Key="MainWindow_ContinueWithoutElevation">Continue Without Elevation</sys:String>
|
||||
<sys:String x:Key="MainWindow_RequestElevation">Request Elevation</sys:String>
|
||||
|
||||
<!-- MainWindow Navigation -->
|
||||
<sys:String x:Key="MainWindow_NavProcess">Process Management</sys:String>
|
||||
<sys:String x:Key="MainWindow_NavMasks">CPU Masks</sys:String>
|
||||
<sys:String x:Key="MainWindow_NavPower">Power Plans</sys:String>
|
||||
<sys:String x:Key="MainWindow_NavRules">Rules</sys:String>
|
||||
<sys:String x:Key="MainWindow_NavDiagnostics">Diagnostics</sys:String>
|
||||
<sys:String x:Key="MainWindow_NavActivity">ThreadPilot Activity</sys:String>
|
||||
<sys:String x:Key="MainWindow_NavTweaks">Tweaks</sys:String>
|
||||
<sys:String x:Key="MainWindow_NavSettings">Settings</sys:String>
|
||||
|
||||
<!-- MainWindow Overlays -->
|
||||
<sys:String x:Key="MainWindow_StartupMinimizedSuggestionTitle">Startup minimized</sys:String>
|
||||
<sys:String x:Key="MainWindow_StartupMinimizedSuggestionDescription">Enable Startup minimized when you want ThreadPilot to start silently in the tray on future Windows sign-ins.</sys:String>
|
||||
<sys:String x:Key="MainWindow_Recommended">Recommended</sys:String>
|
||||
<sys:String x:Key="MainWindow_DontShowAgain">Don't show again</sys:String>
|
||||
<sys:String x:Key="MainWindow_OpenSettings">Open Settings</sys:String>
|
||||
|
||||
<!-- LogViewerView -->
|
||||
<sys:String x:Key="LogViewerView_Title">ThreadPilot Activity</sys:String>
|
||||
<sys:String x:Key="LogViewerView_Subtitle">Shows actions performed by ThreadPilot, including applied rules, affinity changes, priority changes, power plan changes, settings changes, tweaks, optimizations, and safe failure messages.</sys:String>
|
||||
<sys:String x:Key="LogViewerView_Search">Search:</sys:String>
|
||||
<sys:String x:Key="LogViewerView_CategoryLabel">Category:</sys:String>
|
||||
<sys:String x:Key="LogViewerView_LevelLabel">Level:</sys:String>
|
||||
<sys:String x:Key="LogViewerView_From">From:</sys:String>
|
||||
<sys:String x:Key="LogViewerView_To">To:</sys:String>
|
||||
<sys:String x:Key="LogViewerView_Refresh">Refresh</sys:String>
|
||||
<sys:String x:Key="LogViewerView_ClearDisplay">Clear Display</sys:String>
|
||||
<sys:String x:Key="LogViewerView_ExportActivity">Export Activity</sys:String>
|
||||
<sys:String x:Key="LogViewerView_CleanupDiagnostics">Cleanup Diagnostic Files</sys:String>
|
||||
<sys:String x:Key="LogViewerView_OpenFolder">Open Diagnostic Folder</sys:String>
|
||||
|
||||
<!-- LogViewerView Grid Headers -->
|
||||
<sys:String x:Key="LogViewerView_HeaderTime">Time</sys:String>
|
||||
<sys:String x:Key="LogViewerView_HeaderStatus">Status</sys:String>
|
||||
<sys:String x:Key="LogViewerView_HeaderCategory">Category</sys:String>
|
||||
<sys:String x:Key="LogViewerView_HeaderMessage">Message</sys:String>
|
||||
<sys:String x:Key="LogViewerView_HeaderDetails">Details</sys:String>
|
||||
<sys:String x:Key="LogViewerView_HeaderId">ID</sys:String>
|
||||
<sys:String x:Key="LogViewerView_ContextMenuCopy">Copy Entry</sys:String>
|
||||
<sys:String x:Key="LogViewerView_ContextMenuRefresh">Refresh</sys:String>
|
||||
<sys:String x:Key="LogViewerView_NoEntries">No log entries to display</sys:String>
|
||||
<sys:String x:Key="LogViewerView_NoEntriesTip">Adjust filters or refresh logs to load recent ThreadPilot activity.</sys:String>
|
||||
|
||||
<!-- LogViewerView Details -->
|
||||
<sys:String x:Key="LogViewerView_DetailsTitle">Activity Details</sys:String>
|
||||
<sys:String x:Key="LogViewerView_Timestamp">Timestamp:</sys:String>
|
||||
<sys:String x:Key="LogViewerView_Status">Status:</sys:String>
|
||||
<sys:String x:Key="LogViewerView_Category">Category:</sys:String>
|
||||
<sys:String x:Key="LogViewerView_Message">Message:</sys:String>
|
||||
<sys:String x:Key="LogViewerView_Details">Details:</sys:String>
|
||||
<sys:String x:Key="LogViewerView_CorrelationId">Correlation ID:</sys:String>
|
||||
<sys:String x:Key="LogViewerView_NoEntrySelected">No log entry selected</sys:String>
|
||||
<sys:String x:Key="LogViewerView_Files">Files:</sys:String>
|
||||
<sys:String x:Key="LogViewerView_Size">Size:</sys:String>
|
||||
<sys:String x:Key="LogViewerView_DebugDiagnostics">Debug Diagnostics</sys:String>
|
||||
<sys:String x:Key="LogViewerView_MaxSize">Max Size (MB):</sys:String>
|
||||
<sys:String x:Key="LogViewerView_Retention">Retention (Days):</sys:String>
|
||||
<sys:String x:Key="LogViewerView_SaveSettings">Save Settings</sys:String>
|
||||
|
||||
<!-- MasksView -->
|
||||
<sys:String x:Key="MasksView_Title">CPU Masks</sys:String>
|
||||
<sys:String x:Key="MasksView_Subtitle">Create reusable CPU affinity presets for per-process use.</sys:String>
|
||||
<sys:String x:Key="MasksView_EditingClarification">Selecting a mask here only edits the preset. It does not change CPU affinity until you apply it to a process or save it in a process rule.</sys:String>
|
||||
<sys:String x:Key="MasksView_New">New</sys:String>
|
||||
<sys:String x:Key="MasksView_Delete">Delete</sys:String>
|
||||
<sys:String x:Key="MasksView_Duplicate">Duplicate Mask</sys:String>
|
||||
<sys:String x:Key="MasksView_Info">Mask Information</sys:String>
|
||||
<sys:String x:Key="MasksView_Name">Name:</sys:String>
|
||||
<sys:String x:Key="MasksView_Description">Description:</sys:String>
|
||||
<sys:String x:Key="MasksView_Enabled">Enabled</sys:String>
|
||||
<sys:String x:Key="MasksView_DefaultPreset">Default preset</sys:String>
|
||||
<sys:String x:Key="MasksView_DefaultPresetTip">Pre-selected when ThreadPilot needs a fallback mask or when creating per-process rules. It does not apply CPU affinity automatically.</sys:String>
|
||||
<sys:String x:Key="MasksView_DisableTip">Disable to temporarily hide this mask</sys:String>
|
||||
<sys:String x:Key="MasksView_SelectCpus">Select CPUs</sys:String>
|
||||
<sys:String x:Key="MasksView_SelectCpusTip">Toggle CPUs to edit this mask preset. Changes are saved automatically and do not affect running processes. All Cores is the protected default preset.</sys:String>
|
||||
<sys:String x:Key="MasksView_SavedAutomatically">Mask names, descriptions, CPU selections, and options are saved automatically.</sys:String>
|
||||
<sys:String x:Key="MasksView_CreateNewTooltip">Create a new CPU mask</sys:String>
|
||||
<sys:String x:Key="MasksView_DeleteTooltip">Delete selected mask</sys:String>
|
||||
<sys:String x:Key="MasksView_CpusHeader">CPUs</sys:String>
|
||||
<sys:String x:Key="MasksView_Cpu">CPU</sys:String>
|
||||
|
||||
<!-- PerformanceView -->
|
||||
<sys:String x:Key="PerformanceView_OptionalDiagnostics">Optional Diagnostics</sys:String>
|
||||
<sys:String x:Key="PerformanceView_DiagnosticsDesc">Diagnostics are optional and intended for troubleshooting. For in-game overlays and detailed performance graphs, use dedicated tools.</sys:String>
|
||||
<sys:String x:Key="PerformanceView_QuickTips">Quick tips:</sys:String>
|
||||
<sys:String x:Key="PerformanceView_Tip1">1. Open diagnostics only when you need a focused troubleshooting snapshot.</sys:String>
|
||||
<sys:String x:Key="PerformanceView_Tip2">2. Review hotspots only as a hint before creating automation rules.</sys:String>
|
||||
<sys:String x:Key="PerformanceView_Tip3">3. Stop live metrics when you are done troubleshooting.</sys:String>
|
||||
<sys:String x:Key="PerformanceView_Continue">Continue to Diagnostics</sys:String>
|
||||
|
||||
<sys:String x:Key="PerformanceView_ActiveProcesses">Active Processes</sys:String>
|
||||
<sys:String x:Key="PerformanceView_TopConsumersDesc">Top CPU and memory consumers with one-click rule creation.</sys:String>
|
||||
<sys:String x:Key="PerformanceView_SearchPlaceholder">Search processes by name</sys:String>
|
||||
<sys:String x:Key="PerformanceView_RuleBackedOnly">Rule-backed only</sys:String>
|
||||
<sys:String x:Key="PerformanceView_ActionableOnly">Actionable only</sys:String>
|
||||
<sys:String x:Key="PerformanceView_RuleImpact">Rule Impact</sys:String>
|
||||
<sys:String x:Key="PerformanceView_CreateRuleButton">Create/Update Rule from Selection</sys:String>
|
||||
<sys:String x:Key="PerformanceView_CreateRuleTooltip">Create or update an automation rule from the selected hotspot process</sys:String>
|
||||
|
||||
<sys:String x:Key="PerformanceView_Timeline">Stability Timeline</sys:String>
|
||||
<sys:String x:Key="PerformanceView_ClearHistory">Clear History</sys:String>
|
||||
<sys:String x:Key="PerformanceView_ClearHistoryTooltip">Clear the displayed metrics and timeline history</sys:String>
|
||||
<sys:String x:Key="PerformanceView_CoreSnapshot">Core Snapshot</sys:String>
|
||||
<sys:String x:Key="PerformanceView_CoreSnapshotDesc">Per-core utilization for quick imbalance checks.</sys:String>
|
||||
<sys:String x:Key="PerformanceView_ToggleCore">Toggle Core Panel</sys:String>
|
||||
<sys:String x:Key="PerformanceView_ToggleProcess">Toggle Process Panel</sys:String>
|
||||
<sys:String x:Key="PerformanceView_StartLive">Start Live Metrics</sys:String>
|
||||
<sys:String x:Key="PerformanceView_StartLiveTooltip">Start live metrics collection for this dashboard</sys:String>
|
||||
<sys:String x:Key="PerformanceView_StopLive">Stop Live Metrics</sys:String>
|
||||
<sys:String x:Key="PerformanceView_StopLiveTooltip">Pause live metrics collection; background automation is separate</sys:String>
|
||||
<sys:String x:Key="PerformanceView_Refresh">Refresh</sys:String>
|
||||
<sys:String x:Key="PerformanceView_RefreshTooltip">Refresh the current dashboard snapshot</sys:String>
|
||||
|
||||
<sys:String x:Key="PerformanceView_GlobalPowerPlan">Global Power Plan</sys:String>
|
||||
<sys:String x:Key="PerformanceView_MemoryUsed">Memory Used</sys:String>
|
||||
<sys:String x:Key="PerformanceView_CpuPercent">CPU %</sys:String>
|
||||
<sys:String x:Key="PerformanceView_MemPercent">Mem %</sys:String>
|
||||
<sys:String x:Key="PerformanceView_Threads">Threads</sys:String>
|
||||
<sys:String x:Key="PerformanceView_Events">Events</sys:String>
|
||||
<sys:String x:Key="PerformanceView_Severity">Severity</sys:String>
|
||||
<sys:String x:Key="PerformanceView_Detail">Detail</sys:String>
|
||||
<sys:String x:Key="PerformanceView_Time">Time</sys:String>
|
||||
<sys:String x:Key="PerformanceView_Category">Category</sys:String>
|
||||
<sys:String x:Key="PerformanceView_Process">Process</sys:String>
|
||||
<sys:String x:Key="PerformanceView_SelectedHotspot">Selected hotspot process</sys:String>
|
||||
<sys:String x:Key="PerformanceView_Metrics">Metrics</sys:String>
|
||||
<sys:String x:Key="PerformanceView_Processes">Processes</sys:String>
|
||||
|
||||
<!-- PowerPlanView -->
|
||||
<sys:String x:Key="PowerPlanView_Title">Power Plans</sys:String>
|
||||
<sys:String x:Key="PowerPlanView_Subtitle">Manage the active Windows power plan and import custom .pow profiles</sys:String>
|
||||
<sys:String x:Key="PowerPlanView_WindowsPowerPlans">Windows Power Plans</sys:String>
|
||||
<sys:String x:Key="PowerPlanView_SelectActiveTip">Select the Windows plan to make active.</sys:String>
|
||||
<sys:String x:Key="PowerPlanView_SetActive">Set as Active Windows Plan</sys:String>
|
||||
<sys:String x:Key="PowerPlanView_SetActiveTooltip">Change the active Windows power plan to the selected plan</sys:String>
|
||||
<sys:String x:Key="PowerPlanView_Refresh">Refresh Plans</sys:String>
|
||||
<sys:String x:Key="PowerPlanView_RefreshTooltip">Refresh the list of available power plans</sys:String>
|
||||
<sys:String x:Key="PowerPlanView_CustomPowerPlans">Custom Power Plans</sys:String>
|
||||
<sys:String x:Key="PowerPlanView_LocalPlansTip">Local .pow files ready to import into Windows.</sys:String>
|
||||
<sys:String x:Key="PowerPlanView_ImportSelected">Import Selected .pow</sys:String>
|
||||
<sys:String x:Key="PowerPlanView_ImportSelectedTooltip">Import the selected custom .pow file into Windows</sys:String>
|
||||
<sys:String x:Key="PowerPlanView_AddFile">Add .pow File</sys:String>
|
||||
<sys:String x:Key="PowerPlanView_AddFileTooltip">Add a new custom power plan file to the custom library</sys:String>
|
||||
<sys:String x:Key="PowerPlanView_Delete">Delete</sys:String>
|
||||
<sys:String x:Key="PowerPlanView_Active">Active</sys:String>
|
||||
|
||||
<!-- ProcessPowerPlanAssociationView -->
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_Title">Rules & Automation</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_Subtitle">Automation monitoring watches process start/stop events and applies configured power plan, CPU mask, and priority rules.</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_RuleEditor">Rule Editor</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_EditorSubtitle">Create a rule from an executable or running process to automate power plan, CPU mask, and priority behavior.</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_ExecutableMatch">Executable Match:</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_MatchByPath">Match by Path</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_MatchByPathTooltip">Match processes by full path instead of just executable name</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_Browse">Browse for Executable</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_BrowseTooltip">Click to select an executable file (.exe) from your computer</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_ExecutableHelp">Choose an executable. Match by path is more precise; matching by name applies to any process with that executable name.</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_UseRunningProcess">Use Running Process:</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_UseRunningProcessTooltip">Select a currently running process to use its executable</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_UseSelectedProcess">Use Selected Process</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_UseSelectedProcessTooltip">Use the executable from the selected running process</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_RulePowerPlan">Rule Power Plan (global switch):</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_RulePowerPlanHelp">When this rule matches, Windows switches the global active power plan.</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_RuleCpuMask">Rule CPU Mask:</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_RuleCpuMaskHelp">Optional: Select a CPU mask to apply when this process starts</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_RulePriority">Rule Priority</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_RulePriorityHelp">Optional: Select the process priority to apply when this process starts</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_AssociationPriority">Association Priority:</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_AssociationPriorityHelp">Higher priority associations take precedence when multiple match</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_AddRule">Add Rule</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_UpdateRule">Update Selected Rule</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_UpdateRuleTooltip">Update the selected association</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_ClearSelection">Clear Selection</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_ClearSelectionTooltip">Clear the selected executable</sys:String>
|
||||
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_CurrentRules">Current Rules</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_RulesDescription">Define per-process rules. Power plans are global; masks and priorities apply to matching processes.</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_Remove">Remove</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_RemoveTooltip">Remove the selected association</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_DefaultPowerPlan">Default Power Plan (fallback when no rule matches)</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_DefaultPowerPlanHelp">Power plan to use when no associated processes are running:</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_SetDefault">Set Default Power Plan</sys:String>
|
||||
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_SettingsTitle">Automation Monitoring Settings</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_EnableWmi">Enable Event-Based Automation (WMI)</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_EnableFallback">Enable Automation Fallback Polling</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_PollingInterval">Polling Interval (seconds):</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_ChangeDelay">Power Plan Change Delay (ms):</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_PreventDuplicates">Prevent Duplicate Power Plan Changes</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_SaveConfig">Save Configuration</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_NoRules">No automation rules yet</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_Status">Status:</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_StartAutomation">Start Automation Monitoring</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_StopAutomation">Stop Automation Monitoring</sys:String>
|
||||
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_AppliedToMatching">Applied to each matching process when the automation rule runs.</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_AppliedOnlyToMatching">Applied only to matching processes; it does not change the global Windows power plan.</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_SelectedExecutable">Selected Executable:</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_DescriptionLabel">Description:</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_AutomationService">Automation Service</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_RulesHeader">Rules</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_Executable">Executable</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_PowerPlan">Power Plan</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_CpuMask">CPU Mask</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_Priority">Priority</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_Description">Description</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_ProcessPriority">Process Priority:</sys:String>
|
||||
|
||||
<!-- ProcessView -->
|
||||
<sys:String x:Key="ProcessView_Title">Process Management</sys:String>
|
||||
<sys:String x:Key="ProcessView_Subtitle">Search, filter, and control active process configurations</sys:String>
|
||||
<sys:String x:Key="ProcessView_SearchPlaceholder">Search processes by name</sys:String>
|
||||
<sys:String x:Key="ProcessView_HideSystem">Hide Windows system processes</sys:String>
|
||||
<sys:String x:Key="ProcessView_HideSystemShort">Hide System Processes</sys:String>
|
||||
<sys:String x:Key="ProcessView_HideLowCpu">Hide processes with very low CPU usage</sys:String>
|
||||
<sys:String x:Key="ProcessView_HideIdle">Hide Idle Processes</sys:String>
|
||||
<sys:String x:Key="ProcessView_VisibleWindowsOnly">Show only applications with visible windows</sys:String>
|
||||
<sys:String x:Key="ProcessView_ActiveAppsOnly">Active Apps Only</sys:String>
|
||||
<sys:String x:Key="ProcessView_LockList">Lock process list</sys:String>
|
||||
<sys:String x:Key="ProcessView_LockListTooltip">Pause process list refresh and sorting updates while you work with the current list. Background monitoring and saved-rule auto-apply continue while ThreadPilot is running.</sys:String>
|
||||
<sys:String x:Key="ProcessView_SortBy">Sort by:</sys:String>
|
||||
<sys:String x:Key="ProcessView_SortByTooltip">Choose how to sort the process list</sys:String>
|
||||
|
||||
<sys:String x:Key="ProcessView_SelectedProcess">Selected Process</sys:String>
|
||||
<sys:String x:Key="ProcessView_NoProcessSelected">No process selected</sys:String>
|
||||
<sys:String x:Key="ProcessView_SelectProcessTip">Select a process from the table to enable affinity, priority, power plan, and rule actions.</sys:String>
|
||||
<sys:String x:Key="ProcessView_PowerPlanPending">Power Plan / Pending Settings</sys:String>
|
||||
<sys:String x:Key="ProcessView_PowerPlanTooltip">Choose the power plan to activate manually or include with quick apply</sys:String>
|
||||
<sys:String x:Key="ProcessView_SetPowerPlan">Set Power Plan</sys:String>
|
||||
<sys:String x:Key="ProcessView_SetPowerPlanTooltip">Activate the selected Windows power plan</sys:String>
|
||||
|
||||
<sys:String x:Key="ProcessView_PendingCoreMask">Pending core mask</sys:String>
|
||||
<sys:String x:Key="ProcessView_StageMaskTooltip">Select a mask to stage it. This does not change OS affinity until Apply Affinity is clicked.</sys:String>
|
||||
<sys:String x:Key="ProcessView_ApplyAffinity">Apply Affinity</sys:String>
|
||||
<sys:String x:Key="ProcessView_ApplyAffinityTooltip">Apply the pending core mask to the selected process and verify the Windows affinity state</sys:String>
|
||||
<sys:String x:Key="ProcessView_ApplyAffinitySaveRule">Apply Affinity and Save as Rule</sys:String>
|
||||
<sys:String x:Key="ProcessView_ApplyAffinitySaveRuleTooltip">Save current process settings as a rule. These settings will be automatically applied when this process starts in the future.</sys:String>
|
||||
|
||||
<sys:String x:Key="ProcessView_SetCpuPriority">Set CPU Priority</sys:String>
|
||||
<sys:String x:Key="ProcessView_ApplyPriorityTooltip">Apply the selected priority to the process</sys:String>
|
||||
<sys:String x:Key="ProcessView_EnforcePriorityRegistry">Enforce Priority by Registry</sys:String>
|
||||
<sys:String x:Key="ProcessView_EnforcePriorityRegistryTooltip">Apply priority through Windows registry. Process must be restarted for changes to take effect. This setting persists across system reboots.</sys:String>
|
||||
<sys:String x:Key="ProcessView_SetPriority">Set Priority</sys:String>
|
||||
<sys:String x:Key="ProcessView_RealtimeBlockedHelp">Realtime priority is blocked by ThreadPilot because it can make Windows unstable or unresponsive.</sys:String>
|
||||
<sys:String x:Key="ProcessView_RealtimeBlocked">Realtime (blocked)</sys:String>
|
||||
|
||||
<sys:String x:Key="ProcessView_DisableIdleServer">Disable Idle Server</sys:String>
|
||||
<sys:String x:Key="ProcessView_DisableIdleServerTooltip">Prevents the system from entering idle state while this process is running. Useful for games and performance-critical applications.</sys:String>
|
||||
|
||||
<sys:String x:Key="ProcessView_ProfileRule">Profile / Rule</sys:String>
|
||||
<sys:String x:Key="ProcessView_ProfileNamePlaceholder">Enter a profile name to save or load settings</sys:String>
|
||||
<sys:String x:Key="ProcessView_SaveProfile">Save Profile</sys:String>
|
||||
<sys:String x:Key="ProcessView_SaveProfileTooltip">Save current CPU affinity and priority as a reusable profile</sys:String>
|
||||
<sys:String x:Key="ProcessView_LoadProfile">Load Profile</sys:String>
|
||||
<sys:String x:Key="ProcessView_LoadProfileTooltip">Load a previously saved profile</sys:String>
|
||||
<sys:String x:Key="ProcessView_SaveCurrentRule">Save Current Settings as Rule</sys:String>
|
||||
|
||||
<sys:String x:Key="ProcessView_LastAction">Last ThreadPilot action:</sys:String>
|
||||
<sys:String x:Key="ProcessView_Refresh">Refresh</sys:String>
|
||||
<sys:String x:Key="ProcessView_RefreshTooltip">Refresh the process list</sys:String>
|
||||
<sys:String x:Key="ProcessView_LoadMore">Load More</sys:String>
|
||||
<sys:String x:Key="ProcessView_LoadMoreTooltip">Load more processes</sys:String>
|
||||
|
||||
<sys:String x:Key="ProcessView_ColProcessName">Process Name</sys:String>
|
||||
<sys:String x:Key="ProcessView_ColWindowTitle">Window Title</sys:String>
|
||||
<sys:String x:Key="ProcessView_ColCpuUsage">CPU Usage</sys:String>
|
||||
<sys:String x:Key="ProcessView_ColMemory">Memory Usage</sys:String>
|
||||
|
||||
<sys:String x:Key="ProcessView_AffinityStagedTooltip">Affinity staged in the UI. It is not applied until Apply Affinity is clicked.</sys:String>
|
||||
<sys:String x:Key="ProcessView_AffinityCurrentTooltip">Affinity currently reported by Windows for the selected process</sys:String>
|
||||
<sys:String x:Key="ProcessView_CpuSelectionPreviewTooltip">Read-only preview of current or pending CPU selection</sys:String>
|
||||
<sys:String x:Key="ProcessView_OpenMasksTabTooltip">Open CPU Masks tab to create a new custom mask</sys:String>
|
||||
<sys:String x:Key="ProcessView_HyperThreadingTooltip">Shows whether Hyper-Threading (Intel) or SMT (AMD) is present and active on this system</sys:String>
|
||||
|
||||
<sys:String x:Key="ProcessView_CopyProcessInfo">Copy Process Info</sys:String>
|
||||
<sys:String x:Key="ProcessView_OpenLocation">Open Executable Location</sys:String>
|
||||
<sys:String x:Key="ProcessView_ClearCpuSets">Clear CPU Sets</sys:String>
|
||||
<sys:String x:Key="ProcessView_ApplyPendingSettings">Apply Pending Settings</sys:String>
|
||||
<sys:String x:Key="ProcessView_ApplyPendingSettingsTooltip">Apply the pending affinity and selected power plan to the selected process</sys:String>
|
||||
<sys:String x:Key="ProcessView_RulesAppliedOnlyWhenConfigured">Rules and changes are applied by ThreadPilot only when configured.</sys:String>
|
||||
|
||||
<sys:String x:Key="ProcessView_PriorityAboveNormal">Above Normal</sys:String>
|
||||
<sys:String x:Key="ProcessView_PriorityBelowNormal">Below Normal</sys:String>
|
||||
<sys:String x:Key="ProcessView_PriorityHigh">High</sys:String>
|
||||
<sys:String x:Key="ProcessView_PriorityIdle">Idle</sys:String>
|
||||
<sys:String x:Key="ProcessView_PriorityLow">Low</sys:String>
|
||||
<sys:String x:Key="ProcessView_PriorityNormal">Normal</sys:String>
|
||||
<sys:String x:Key="ProcessView_PriorityRealtime">Realtime</sys:String>
|
||||
<sys:String x:Key="ProcessView_PriorityBatch">Batch</sys:String>
|
||||
<sys:String x:Key="ProcessView_PriorityCustom">Custom</sys:String>
|
||||
|
||||
<sys:String x:Key="ProcessView_HasWindow">Has Window</sys:String>
|
||||
<sys:String x:Key="ProcessView_Window">Window</sys:String>
|
||||
<sys:String x:Key="ProcessView_PID">PID</sys:String>
|
||||
<sys:String x:Key="ProcessView_ID">ID</sys:String>
|
||||
<sys:String x:Key="ProcessView_MemoryMb">Memory (MB)</sys:String>
|
||||
<sys:String x:Key="ProcessView_Affinity">Affinity</sys:String>
|
||||
<sys:String x:Key="ProcessView_Priority">Priority</sys:String>
|
||||
<sys:String x:Key="ProcessView_Rules">Rules</sys:String>
|
||||
<sys:String x:Key="ProcessView_Name">Name</sys:String>
|
||||
<sys:String x:Key="ProcessView_SetMemoryPriority">Set Memory Priority</sys:String>
|
||||
<sys:String x:Key="ProcessView_PriorityVeryLow">Very Low</sys:String>
|
||||
<sys:String x:Key="ProcessView_PriorityMedium">Medium</sys:String>
|
||||
<sys:String x:Key="ProcessView_RefreshInfo">Refresh Process Info</sys:String>
|
||||
|
||||
<!-- SettingsView -->
|
||||
<sys:String x:Key="SettingsView_Title">Application Settings</sys:String>
|
||||
<sys:String x:Key="SettingsView_Subtitle">Configure notifications, system tray, and application behavior</sys:String>
|
||||
<sys:String x:Key="SettingsView_Notifications">Notifications</sys:String>
|
||||
<sys:String x:Key="SettingsView_EnableNotifications">Enable notifications</sys:String>
|
||||
<sys:String x:Key="SettingsView_NotificationLevel">Notification Level</sys:String>
|
||||
<sys:String x:Key="SettingsView_NotificationLevelAll">All</sys:String>
|
||||
<sys:String x:Key="SettingsView_NotificationLevelWarningsErrors">Warnings/Errors only</sys:String>
|
||||
<sys:String x:Key="SettingsView_NotificationLevelSilent">Silent</sys:String>
|
||||
<sys:String x:Key="SettingsView_EnableBalloon">Enable balloon notifications (system tray)</sys:String>
|
||||
<sys:String x:Key="SettingsView_EnableToast">Enable toast notifications (Windows 10+)</sys:String>
|
||||
<sys:String x:Key="SettingsView_NotificationTypes">Notification Types</sys:String>
|
||||
<sys:String x:Key="SettingsView_NotifyPowerPlan">Power plan changes</sys:String>
|
||||
<sys:String x:Key="SettingsView_NotifyProcess">Process monitoring events</sys:String>
|
||||
<sys:String x:Key="SettingsView_NotifyError">Error notifications</sys:String>
|
||||
<sys:String x:Key="SettingsView_NotifySuccess">Success notifications</sys:String>
|
||||
<sys:String x:Key="SettingsView_Duration">Duration (ms):</sys:String>
|
||||
<sys:String x:Key="SettingsView_TestNotification">Test Notification</sys:String>
|
||||
|
||||
<sys:String x:Key="SettingsView_SystemTray">System Tray</sys:String>
|
||||
<sys:String x:Key="SettingsView_ShowTrayIcon">Show tray icon</sys:String>
|
||||
<sys:String x:Key="SettingsView_MinimizeToTray">Minimize to tray</sys:String>
|
||||
<sys:String x:Key="SettingsView_CloseToTray">Close to tray (instead of exit)</sys:String>
|
||||
<sys:String x:Key="SettingsView_StartMinimized">Start minimized</sys:String>
|
||||
<sys:String x:Key="SettingsView_QuickApply">Enable pending settings apply from tray</sys:String>
|
||||
<sys:String x:Key="SettingsView_MonitoringControl">Enable automation monitoring controls from tray</sys:String>
|
||||
<sys:String x:Key="SettingsView_DetailedTooltips">Show detailed tooltips</sys:String>
|
||||
|
||||
<sys:String x:Key="SettingsView_BasicPreferences">Basic Preferences</sys:String>
|
||||
<sys:String x:Key="SettingsView_Autostart">Autostart</sys:String>
|
||||
<sys:String x:Key="SettingsView_StartWithWindows">Start with Windows</sys:String>
|
||||
<sys:String x:Key="SettingsView_AutostartDescription">Automatically start ThreadPilot when Windows starts</sys:String>
|
||||
<sys:String x:Key="SettingsView_LowImpactMode">Low impact mode in background</sys:String>
|
||||
<sys:String x:Key="SettingsView_LowImpactDescription">Lower ThreadPilot's process priority while minimized or hidden to tray.</sys:String>
|
||||
|
||||
<sys:String x:Key="SettingsView_Appearance">Appearance</sys:String>
|
||||
<sys:String x:Key="SettingsView_UseDarkTheme">Use dark theme</sys:String>
|
||||
<sys:String x:Key="SettingsView_ThemeDescription">Applies a global Dark/Light theme across all tabs</sys:String>
|
||||
|
||||
<sys:String x:Key="SettingsView_Language">Language</sys:String>
|
||||
<sys:String x:Key="SettingsView_LanguageZhCn">简体中文 (Simplified Chinese)</sys:String>
|
||||
<sys:String x:Key="SettingsView_LanguageEnUs">English (English)</sys:String>
|
||||
<sys:String x:Key="SettingsView_LanguageDescription">Applies a global display language across the entire application interface.</sys:String>
|
||||
|
||||
<sys:String x:Key="SettingsView_RulesAutomation">Rules & automation</sys:String>
|
||||
<sys:String x:Key="SettingsView_RuleAutoApply">Saved rule auto-apply</sys:String>
|
||||
<sys:String x:Key="SettingsView_ApplyOnStart">Apply saved rules when matching processes start</sys:String>
|
||||
<sys:String x:Key="SettingsView_ApplyOnStartDescription">Applies enabled saved rules while ThreadPilot is running. This does not install a Windows Service and does not use registry/IFEO persistence.</sys:String>
|
||||
<sys:String x:Key="SettingsView_EnableWmi">Enable WMI process events</sys:String>
|
||||
<sys:String x:Key="SettingsView_WmiDescription">Use Windows Management Instrumentation for process start/stop events</sys:String>
|
||||
<sys:String x:Key="SettingsView_EnableFallback">Enable fallback polling</sys:String>
|
||||
<sys:String x:Key="SettingsView_FallbackDescription">Use polling as backup when WMI process events fail</sys:String>
|
||||
<sys:String x:Key="SettingsView_PollingInterval">Polling interval (ms):</sys:String>
|
||||
<sys:String x:Key="SettingsView_FallbackPollingInterval">Fallback polling (ms):</sys:String>
|
||||
|
||||
<sys:String x:Key="SettingsView_Advanced">Advanced</sys:String>
|
||||
<sys:String x:Key="SettingsView_NotificationHistory">Enable notification history</sys:String>
|
||||
<sys:String x:Key="SettingsView_MaxHistory">Max history items:</sys:String>
|
||||
<sys:String x:Key="SettingsView_AutoHide">Auto-hide notifications</sys:String>
|
||||
<sys:String x:Key="SettingsView_NotificationSound">Enable notification sound</sys:String>
|
||||
<sys:String x:Key="SettingsView_DebugLogging">Enable debug logging</sys:String>
|
||||
<sys:String x:Key="SettingsView_PerformanceCounters">Enable performance counters</sys:String>
|
||||
|
||||
<sys:String x:Key="SettingsView_About">About</sys:String>
|
||||
<sys:String x:Key="SettingsView_Version">Version:</sys:String>
|
||||
<sys:String x:Key="SettingsView_Copyright">Copyright © 2026 PrimeBuild</sys:String>
|
||||
<sys:String x:Key="SettingsView_Translator">Translator: Ylimhs</sys:String>
|
||||
<sys:String x:Key="SettingsView_License">License: AGPLv3</sys:String>
|
||||
<sys:String x:Key="SettingsView_CheckUpdates">Check for updates</sys:String>
|
||||
<sys:String x:Key="SettingsView_UpdatesDescription">Checks on demand using the official GitHub Releases.</sys:String>
|
||||
|
||||
<sys:String x:Key="SettingsView_ResetDefaults">Reset to Defaults</sys:String>
|
||||
<sys:String x:Key="SettingsView_ExportConfig">Export Configuration</sys:String>
|
||||
<sys:String x:Key="SettingsView_ImportConfig">Import Configuration</sys:String>
|
||||
<sys:String x:Key="SettingsView_SaveSettings">Save Settings</sys:String>
|
||||
<sys:String x:Key="SettingsView_ThreadPilot">ThreadPilot</sys:String>
|
||||
|
||||
<!-- SettingsWindow -->
|
||||
<sys:String x:Key="SettingsWindow_Title">ThreadPilot Settings</sys:String>
|
||||
<sys:String x:Key="SettingsWindow_UnsavedTitle">Unsaved Settings</sys:String>
|
||||
<sys:String x:Key="SettingsWindow_UnsavedDescription">You have unsaved changes. Save before closing, discard the changes, or cancel to keep editing.</sys:String>
|
||||
<sys:String x:Key="SettingsWindow_Cancel">Cancel</sys:String>
|
||||
<sys:String x:Key="SettingsWindow_Discard">Discard</sys:String>
|
||||
<sys:String x:Key="SettingsWindow_Save">Save</sys:String>
|
||||
|
||||
<!-- SystemTweaksView -->
|
||||
<sys:String x:Key="SystemTweaksView_Title">System Tweaks & Optimizations</sys:String>
|
||||
<sys:String x:Key="SystemTweaksView_Subtitle">Configure Windows system optimizations and performance tweaks</sys:String>
|
||||
<sys:String x:Key="SystemTweaksView_RefreshAll">Refresh All</sys:String>
|
||||
<sys:String x:Key="SystemTweaksView_RefreshAllTooltip">Refresh all tweak states</sys:String>
|
||||
<sys:String x:Key="SystemTweaksView_TweakTooltip">Toggle this Windows tweak</sys:String>
|
||||
<sys:String x:Key="SystemTweaksView_Status">Status</sys:String>
|
||||
|
||||
<!-- SystemTweaks Names and Descriptions -->
|
||||
<sys:String x:Key="SystemTweak_CoreParking_Name">Core Parking</sys:String>
|
||||
<sys:String x:Key="SystemTweak_CoreParking_Desc">Controls CPU core parking for power management</sys:String>
|
||||
<sys:String x:Key="SystemTweak_CStates_Name">C-States</sys:String>
|
||||
<sys:String x:Key="SystemTweak_CStates_Desc">Controls CPU C-States for power management</sys:String>
|
||||
<sys:String x:Key="SystemTweak_SysMain_Name">SysMain Service</sys:String>
|
||||
<sys:String x:Key="SystemTweak_SysMain_Desc">Windows Superfetch/SysMain service for memory management</sys:String>
|
||||
<sys:String x:Key="SystemTweak_Prefetch_Name">Prefetch</sys:String>
|
||||
<sys:String x:Key="SystemTweak_Prefetch_Desc">Windows Prefetch feature for faster application loading</sys:String>
|
||||
<sys:String x:Key="SystemTweak_PowerThrottling_Name">Power Throttling</sys:String>
|
||||
<sys:String x:Key="SystemTweak_PowerThrottling_Desc">Windows Power Throttling for energy efficiency</sys:String>
|
||||
<sys:String x:Key="SystemTweak_Hpet_Name">HPET</sys:String>
|
||||
<sys:String x:Key="SystemTweak_Hpet_Desc">High Precision Event Timer for system timing</sys:String>
|
||||
<sys:String x:Key="SystemTweak_HighSchedulingCategory_Name">High Scheduling Category</sys:String>
|
||||
<sys:String x:Key="SystemTweak_HighSchedulingCategory_Desc">High scheduling priority for gaming applications</sys:String>
|
||||
<sys:String x:Key="SystemTweak_MenuShowDelay_Name">Menu Show Delay</sys:String>
|
||||
<sys:String x:Key="SystemTweak_MenuShowDelay_Desc">Delay before showing context menus</sys:String>
|
||||
|
||||
<!-- SystemTweaksViewModel Messages -->
|
||||
<sys:String x:Key="SystemTweaks_StatusReady">Ready</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_StatusRefreshing">Refreshing system tweaks...</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_StatusLastRefreshedFormat">Last refreshed: {0}</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_StatusRefreshFailed">Failed to refresh system tweaks</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_StatusRefreshFailedShort">Refresh failed</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_StatusTogglingFormat">Toggling {0}...</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_StatusEnabledFormat">{0} enabled successfully</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_StatusDisabledFormat">{0} disabled successfully</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_NotifyEnabledFormat">{0} has been enabled</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_NotifyDisabledFormat">{0} has been disabled</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_NotifyUpdatedTitle">System Tweak Updated</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_StatusToggleFailedFormat">Failed to toggle {0}</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_StatusEnableFailedFormat">Failed to enable {0}</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_StatusDisableFailedFormat">Failed to disable {0}</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_NotifyFailedTitle">System Tweak Failed</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_NotifyFailedFormat">Failed to {0} {1}</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_StatusErrorTogglingFormat">Error toggling {0}</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_NotifyErrorFormat">Error toggling {0}: {1}</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_WordEnable">enable</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_WordDisable">disable</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_WordEnabled">enabled</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_WordDisabled">disabled</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_StatusEnabled">Enabled</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_StatusDisabled">Disabled</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_StatusNotAvailable">Not Available</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_StatusLoading">Loading system tweaks...</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_StatusLoadedSuccess">System tweaks loaded successfully</sys:String>
|
||||
|
||||
<!-- SystemTray Context Menu & Status -->
|
||||
<sys:String x:Key="SystemTray_OpenDashboard">Open Dashboard</sys:String>
|
||||
<sys:String x:Key="SystemTray_OpenDiagnostics">Open Diagnostics</sys:String>
|
||||
<sys:String x:Key="SystemTray_PauseMonitoring">Pause Automation Monitoring</sys:String>
|
||||
<sys:String x:Key="SystemTray_ResumeMonitoring">Resume Automation Monitoring</sys:String>
|
||||
<sys:String x:Key="SystemTray_SystemStatus">System Status</sys:String>
|
||||
<sys:String x:Key="SystemTray_NoProcessSelected">No process selected</sys:String>
|
||||
<sys:String x:Key="SystemTray_SelectedProcessFormat">Selected: {0}</sys:String>
|
||||
<sys:String x:Key="SystemTray_ApplyPendingToSelected">Apply Pending Settings to Selected Process</sys:String>
|
||||
<sys:String x:Key="SystemTray_ApplyPendingToProcessFormat">Apply Pending Settings to {0}</sys:String>
|
||||
<sys:String x:Key="SystemTray_PowerPlans">🔋 Power Plans</sys:String>
|
||||
<sys:String x:Key="SystemTray_Profiles">📋 Profiles</sys:String>
|
||||
<sys:String x:Key="SystemTray_Settings">Settings</sys:String>
|
||||
<sys:String x:Key="SystemTray_Exit">Exit</sys:String>
|
||||
<sys:String x:Key="SystemTray_NoProfilesAvailable">No profiles available</sys:String>
|
||||
<sys:String x:Key="SystemTray_PowerPlanFormat">Power Plan: {0}</sys:String>
|
||||
<sys:String x:Key="SystemTray_StatusWmiError">Automation WMI Error</sys:String>
|
||||
<sys:String x:Key="SystemTray_StatusActive">Automation Active</sys:String>
|
||||
<sys:String x:Key="SystemTray_StatusDisabled">Automation Disabled</sys:String>
|
||||
<sys:String x:Key="SystemTray_Unknown">Unknown</sys:String>
|
||||
<sys:String x:Key="SystemTray_CpuRamStatusFormat">💻 CPU: {0:F1}% | RAM: {1:F1}% | {2}</sys:String>
|
||||
|
||||
<!-- ProcessOperationUserMessages -->
|
||||
<sys:String x:Key="ProcessOperationUserMessages_AccessDenied">Windows denied this change. The process may require administrator rights or may be protected.</sys:String>
|
||||
<sys:String x:Key="ProcessOperationUserMessages_AntiCheatProtectedLikely">The process appears protected by anti-cheat or process protection. ThreadPilot will not try to bypass it.</sys:String>
|
||||
<sys:String x:Key="ProcessOperationUserMessages_AdminClarification">Administrator mode may help with normal permission issues, but cannot bypass anti-cheat or protected process restrictions.</sys:String>
|
||||
<sys:String x:Key="ProcessOperationUserMessages_LegacyFallbackBlocked">This CPU selection cannot be safely represented by legacy affinity APIs on this topology. CPU Sets are required for this selection.</sys:String>
|
||||
<sys:String x:Key="ProcessOperationUserMessages_InvalidTopology">This CPU selection does not match the current CPU topology. Review or recreate the preset.</sys:String>
|
||||
<sys:String x:Key="ProcessOperationUserMessages_ProcessExited">The process exited before ThreadPilot could apply the change.</sys:String>
|
||||
<sys:String x:Key="ProcessOperationUserMessages_CpuSetsUnavailable">Windows CPU Sets are unavailable or rejected this selection. ThreadPilot will use a safe fallback only when possible.</sys:String>
|
||||
<sys:String x:Key="ProcessOperationUserMessages_HighPriorityWarning">High priority can improve responsiveness for some workloads but may reduce system responsiveness.</sys:String>
|
||||
<sys:String x:Key="ProcessOperationUserMessages_RealtimePriorityBlocked">Realtime priority is blocked by ThreadPilot because it can make Windows unstable or unresponsive.</sys:String>
|
||||
<sys:String x:Key="ProcessOperationUserMessages_PersistentLaunchTimePriorityNotice">Persistent launch-time priority may be supported for normal processes, but it does not bypass protected process or anti-cheat restrictions.</sys:String>
|
||||
<sys:String x:Key="ProcessOperationUserMessages_PersistentRulesDescription">Applies saved rules when a matching process starts. Some protected or anti-cheat processes may reject changes. Administrator mode can help with normal permission issues but cannot bypass protection.</sys:String>
|
||||
<sys:String x:Key="ProcessOperationUserMessages_PersistentRulesProtectedProcessWarning">The process appears protected by anti-cheat or process protection. ThreadPilot will not try to override it.</sys:String>
|
||||
|
||||
<!-- Notifications -->
|
||||
<sys:String x:Key="Notification_PowerPlanChangedTitle">Power Plan Changed</sys:String>
|
||||
<sys:String x:Key="Notification_PowerPlanChangedFormat">Power plan changed from '{0}' to '{1}'</sys:String>
|
||||
<sys:String x:Key="Notification_PowerPlanChangedProcessFormat">Power plan changed to '{0}' for process '{1}'</sys:String>
|
||||
<sys:String x:Key="Notification_ProcessMonitoringEnabled">Process Monitoring Enabled</sys:String>
|
||||
<sys:String x:Key="Notification_ProcessMonitoringDisabled">Process Monitoring Disabled</sys:String>
|
||||
<sys:String x:Key="Notification_CpuAffinityAppliedTitle">CPU Affinity Applied</sys:String>
|
||||
<sys:String x:Key="Notification_CpuAffinityAppliedFormat">CPU affinity set for '{0}': {1}</sys:String>
|
||||
<sys:String x:Key="Notification_GameBoostActivatedTitle">Game Boost Activated</sys:String>
|
||||
<sys:String x:Key="Notification_GameBoostActivatedFormat">Game Boost mode activated for {0}</sys:String>
|
||||
<sys:String x:Key="Notification_GameBoostDeactivatedTitle">Game Boost Deactivated</sys:String>
|
||||
<sys:String x:Key="Notification_GameBoostDeactivatedFormat">Game Boost mode deactivated after {0}</sys:String>
|
||||
<sys:String x:Key="Notification_ProcessMonitorErrorTitle">Process Monitor Error</sys:String>
|
||||
<sys:String x:Key="Notification_AffinityBlockedTitle">Affinity blocked</sys:String>
|
||||
<sys:String x:Key="Notification_PriorityBlockedTitle">Priority blocked</sys:String>
|
||||
|
||||
<!-- Elevation Service -->
|
||||
<sys:String x:Key="Elevation_RequestPromptText">ThreadPilot requires administrator privileges to manage process affinity and power plans.

Would you like to restart the application with administrator privileges?</sys:String>
|
||||
<sys:String x:Key="Elevation_RequestPromptTitle">Administrator Privileges Required</sys:String>
|
||||
<sys:String x:Key="Elevation_FailedText">Failed to restart with administrator privileges. Please manually run ThreadPilot as administrator.</sys:String>
|
||||
<sys:String x:Key="Elevation_FailedTitle">Elevation Failed</sys:String>
|
||||
<sys:String x:Key="Elevation_StatusRunning">Running with Administrator privileges</sys:String>
|
||||
<sys:String x:Key="Elevation_StatusLimited">Running with limited privileges</sys:String>
|
||||
|
||||
<!-- System Tweaks Errors -->
|
||||
<sys:String x:Key="SystemTweak_Error_QueryCoreParking">Could not query Core Parking value via powercfg</sys:String>
|
||||
<sys:String x:Key="SystemTweak_Error_QueryCStates">Could not query C-States value via powercfg</sys:String>
|
||||
<sys:String x:Key="SystemTweak_Error_PrefetchKeyNotFound">Prefetch registry key not found</sys:String>
|
||||
<sys:String x:Key="SystemTweak_Error_PowerThrottlingNotAvailable">Power Throttling not available on this system</sys:String>
|
||||
<sys:String x:Key="SystemTweak_Error_PriorityControlKeyNotFound">PriorityControl registry key not found</sys:String>
|
||||
<sys:String x:Key="SystemTweak_Error_DesktopKeyNotFound">Desktop registry key not found</sys:String>
|
||||
</ResourceDictionary>
|
||||
@@ -0,0 +1,529 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:sys="clr-namespace:System;assembly=mscorlib">
|
||||
|
||||
<!-- MainWindow / General -->
|
||||
<sys:String x:Key="MainWindow_Title">ThreadPilot - 进程与电源计划管理器</sys:String>
|
||||
<sys:String x:Key="MainWindow_ElevationWarningTitle">推荐以管理员权限运行</sys:String>
|
||||
<sys:String x:Key="MainWindow_ElevationWarningDescription">ThreadPilot 当前正以受限权限运行。某些功能可能无法使用。</sys:String>
|
||||
<sys:String x:Key="MainWindow_ElevationWarningRequired">需要管理员访问权限以执行以下操作:</sys:String>
|
||||
<sys:String x:Key="MainWindow_ElevationWarningPowerPlans">• 修改电源计划配置</sys:String>
|
||||
<sys:String x:Key="MainWindow_ElevationWarningAffinity">• 更改进程 CPU 关联性和优先级</sys:String>
|
||||
<sys:String x:Key="MainWindow_ElevationWarningTweaks">• 应用系统级优化和调整</sys:String>
|
||||
<sys:String x:Key="MainWindow_ElevationWarningProtected">• 管理受保护的进程</sys:String>
|
||||
<sys:String x:Key="MainWindow_ContinueWithoutElevation">不提升权限继续</sys:String>
|
||||
<sys:String x:Key="MainWindow_RequestElevation">请求权限提升</sys:String>
|
||||
|
||||
<!-- MainWindow Navigation -->
|
||||
<sys:String x:Key="MainWindow_NavProcess">进程管理</sys:String>
|
||||
<sys:String x:Key="MainWindow_NavMasks">CPU 掩码</sys:String>
|
||||
<sys:String x:Key="MainWindow_NavPower">电源计划</sys:String>
|
||||
<sys:String x:Key="MainWindow_NavRules">自动化规则</sys:String>
|
||||
<sys:String x:Key="MainWindow_NavDiagnostics">性能诊断</sys:String>
|
||||
<sys:String x:Key="MainWindow_NavActivity">活动日志</sys:String>
|
||||
<sys:String x:Key="MainWindow_NavTweaks">系统微调</sys:String>
|
||||
<sys:String x:Key="MainWindow_NavSettings">应用设置</sys:String>
|
||||
|
||||
<!-- MainWindow Overlays -->
|
||||
<sys:String x:Key="MainWindow_StartupMinimizedSuggestionTitle">启动时最小化</sys:String>
|
||||
<sys:String x:Key="MainWindow_StartupMinimizedSuggestionDescription">开启此项后,ThreadPilot 会在 Windows 登录时静默启动至系统托盘。</sys:String>
|
||||
<sys:String x:Key="MainWindow_Recommended">推荐</sys:String>
|
||||
<sys:String x:Key="MainWindow_DontShowAgain">不再显示</sys:String>
|
||||
<sys:String x:Key="MainWindow_OpenSettings">打开设置</sys:String>
|
||||
|
||||
<!-- LogViewerView -->
|
||||
<sys:String x:Key="LogViewerView_Title">ThreadPilot 活动日志</sys:String>
|
||||
<sys:String x:Key="LogViewerView_Subtitle">显示 ThreadPilot 执行的操作,包括已应用规则、关联性更改、优先级更改、电源计划更改、设置更改、调整、优化以及安全故障消息。</sys:String>
|
||||
<sys:String x:Key="LogViewerView_Search">搜索:</sys:String>
|
||||
<sys:String x:Key="LogViewerView_CategoryLabel">类别:</sys:String>
|
||||
<sys:String x:Key="LogViewerView_LevelLabel">级别:</sys:String>
|
||||
<sys:String x:Key="LogViewerView_From">从:</sys:String>
|
||||
<sys:String x:Key="LogViewerView_To">至:</sys:String>
|
||||
<sys:String x:Key="LogViewerView_Refresh">刷新</sys:String>
|
||||
<sys:String x:Key="LogViewerView_ClearDisplay">清除显示</sys:String>
|
||||
<sys:String x:Key="LogViewerView_ExportActivity">导出活动</sys:String>
|
||||
<sys:String x:Key="LogViewerView_CleanupDiagnostics">清理诊断文件</sys:String>
|
||||
<sys:String x:Key="LogViewerView_OpenFolder">打开诊断文件夹</sys:String>
|
||||
|
||||
<!-- LogViewerView Grid Headers -->
|
||||
<sys:String x:Key="LogViewerView_HeaderTime">时间</sys:String>
|
||||
<sys:String x:Key="LogViewerView_HeaderStatus">状态</sys:String>
|
||||
<sys:String x:Key="LogViewerView_HeaderCategory">类别</sys:String>
|
||||
<sys:String x:Key="LogViewerView_HeaderMessage">消息</sys:String>
|
||||
<sys:String x:Key="LogViewerView_HeaderDetails">详情</sys:String>
|
||||
<sys:String x:Key="LogViewerView_HeaderId">ID</sys:String>
|
||||
<sys:String x:Key="LogViewerView_ContextMenuCopy">复制条目</sys:String>
|
||||
<sys:String x:Key="LogViewerView_ContextMenuRefresh">刷新</sys:String>
|
||||
<sys:String x:Key="LogViewerView_NoEntries">没有要显示的日志条目</sys:String>
|
||||
<sys:String x:Key="LogViewerView_NoEntriesTip">调整过滤器或刷新日志以加载最近的 ThreadPilot 活动。</sys:String>
|
||||
|
||||
<!-- LogViewerView Details -->
|
||||
<sys:String x:Key="LogViewerView_DetailsTitle">活动详情</sys:String>
|
||||
<sys:String x:Key="LogViewerView_Timestamp">时间戳:</sys:String>
|
||||
<sys:String x:Key="LogViewerView_Status">状态:</sys:String>
|
||||
<sys:String x:Key="LogViewerView_Category">类别:</sys:String>
|
||||
<sys:String x:Key="LogViewerView_Message">消息:</sys:String>
|
||||
<sys:String x:Key="LogViewerView_Details">详情:</sys:String>
|
||||
<sys:String x:Key="LogViewerView_CorrelationId">相关性 ID:</sys:String>
|
||||
<sys:String x:Key="LogViewerView_NoEntrySelected">未选择日志条目</sys:String>
|
||||
<sys:String x:Key="LogViewerView_Files">文件:</sys:String>
|
||||
<sys:String x:Key="LogViewerView_Size">大小:</sys:String>
|
||||
<sys:String x:Key="LogViewerView_DebugDiagnostics">调试诊断</sys:String>
|
||||
<sys:String x:Key="LogViewerView_MaxSize">最大大小 (MB):</sys:String>
|
||||
<sys:String x:Key="LogViewerView_Retention">保留天数 (天):</sys:String>
|
||||
<sys:String x:Key="LogViewerView_SaveSettings">保存设置</sys:String>
|
||||
|
||||
<!-- MasksView -->
|
||||
<sys:String x:Key="MasksView_Title">CPU 掩码</sys:String>
|
||||
<sys:String x:Key="MasksView_Subtitle">创建可复用的 CPU 关联性预设以供每个进程使用。</sys:String>
|
||||
<sys:String x:Key="MasksView_EditingClarification">在此处选择掩码仅编辑预设。在将其应用于进程或保存在进程规则中之前,它不会更改 CPU 关联性。</sys:String>
|
||||
<sys:String x:Key="MasksView_New">新建</sys:String>
|
||||
<sys:String x:Key="MasksView_Delete">删除</sys:String>
|
||||
<sys:String x:Key="MasksView_Duplicate">复制掩码</sys:String>
|
||||
<sys:String x:Key="MasksView_Info">掩码信息</sys:String>
|
||||
<sys:String x:Key="MasksView_Name">名称:</sys:String>
|
||||
<sys:String x:Key="MasksView_Description">描述:</sys:String>
|
||||
<sys:String x:Key="MasksView_Enabled">已启用</sys:String>
|
||||
<sys:String x:Key="MasksView_DefaultPreset">默认预设</sys:String>
|
||||
<sys:String x:Key="MasksView_DefaultPresetTip">当 ThreadPilot 需要后备掩码或创建针对每个进程的规则时预先选择。它不会自动应用 CPU 关联性。</sys:String>
|
||||
<sys:String x:Key="MasksView_DisableTip">禁用以暂时隐藏此掩码</sys:String>
|
||||
<sys:String x:Key="MasksView_SelectCpus">选择 CPU 核心</sys:String>
|
||||
<sys:String x:Key="MasksView_SelectCpusTip">切换 CPU 以编辑此掩码预设。更改将自动保存,且不会影响正在运行的进程。“所有核心”是受保护的默认预设。</sys:String>
|
||||
<sys:String x:Key="MasksView_SavedAutomatically">掩码名称、描述、CPU 选择和选项会自动保存。</sys:String>
|
||||
<sys:String x:Key="MasksView_CreateNewTooltip">创建新的 CPU 掩码</sys:String>
|
||||
<sys:String x:Key="MasksView_DeleteTooltip">删除选定的掩码</sys:String>
|
||||
<sys:String x:Key="MasksView_CpusHeader">CPU 核心</sys:String>
|
||||
<sys:String x:Key="MasksView_Cpu">CPU</sys:String>
|
||||
|
||||
<!-- PerformanceView -->
|
||||
<sys:String x:Key="PerformanceView_OptionalDiagnostics">可选性能诊断</sys:String>
|
||||
<sys:String x:Key="PerformanceView_DiagnosticsDesc">诊断是可选的,仅用于故障排除。对于游戏内覆盖层和详细的性能图表,请使用专用工具。</sys:String>
|
||||
<sys:String x:Key="PerformanceView_QuickTips">快速提示:</sys:String>
|
||||
<sys:String x:Key="PerformanceView_Tip1">1. 仅在需要针对性的故障排除快照时才打开诊断。</sys:String>
|
||||
<sys:String x:Key="PerformanceView_Tip2">2. 在创建自动化规则之前,仅将热点查看作为提示。</sys:String>
|
||||
<sys:String x:Key="PerformanceView_Tip3">3. 故障排除完成后,停止实时指标收集。</sys:String>
|
||||
<sys:String x:Key="PerformanceView_Continue">继续前往诊断</sys:String>
|
||||
|
||||
<sys:String x:Key="PerformanceView_ActiveProcesses">活动进程</sys:String>
|
||||
<sys:String x:Key="PerformanceView_TopConsumersDesc">通过一键规则创建来监控 CPU 和内存的占用大户。</sys:String>
|
||||
<sys:String x:Key="PerformanceView_SearchPlaceholder">按名称搜索进程</sys:String>
|
||||
<sys:String x:Key="PerformanceView_RuleBackedOnly">仅限包含规则的</sys:String>
|
||||
<sys:String x:Key="PerformanceView_ActionableOnly">仅限可操作的</sys:String>
|
||||
<sys:String x:Key="PerformanceView_RuleImpact">规则影响</sys:String>
|
||||
<sys:String x:Key="PerformanceView_CreateRuleButton">基于选择创建/更新规则</sys:String>
|
||||
<sys:String x:Key="PerformanceView_CreateRuleTooltip">为选定的热点进程创建或更新自动化规则</sys:String>
|
||||
|
||||
<sys:String x:Key="PerformanceView_Timeline">稳定性时间线</sys:String>
|
||||
<sys:String x:Key="PerformanceView_ClearHistory">清除历史记录</sys:String>
|
||||
<sys:String x:Key="PerformanceView_ClearHistoryTooltip">清除显示的指标和时间轴历史记录</sys:String>
|
||||
<sys:String x:Key="PerformanceView_CoreSnapshot">核心快照</sys:String>
|
||||
<sys:String x:Key="PerformanceView_CoreSnapshotDesc">单核利用率,用于快速的不平衡检查。</sys:String>
|
||||
<sys:String x:Key="PerformanceView_ToggleCore">切换核心面板</sys:String>
|
||||
<sys:String x:Key="PerformanceView_ToggleProcess">切换进程面板</sys:String>
|
||||
<sys:String x:Key="PerformanceView_StartLive">开始实时指标</sys:String>
|
||||
<sys:String x:Key="PerformanceView_StartLiveTooltip">为此控制面板启动实时指标收集</sys:String>
|
||||
<sys:String x:Key="PerformanceView_StopLive">停止实时指标</sys:String>
|
||||
<sys:String x:Key="PerformanceView_StopLiveTooltip">暂停实时指标收集;后台自动化会单独运行</sys:String>
|
||||
<sys:String x:Key="PerformanceView_Refresh">刷新</sys:String>
|
||||
<sys:String x:Key="PerformanceView_RefreshTooltip">刷新当前的仪表板快照</sys:String>
|
||||
|
||||
<sys:String x:Key="PerformanceView_GlobalPowerPlan">全局电源计划</sys:String>
|
||||
<sys:String x:Key="PerformanceView_MemoryUsed">已用内存</sys:String>
|
||||
<sys:String x:Key="PerformanceView_CpuPercent">CPU %</sys:String>
|
||||
<sys:String x:Key="PerformanceView_MemPercent">内存 %</sys:String>
|
||||
<sys:String x:Key="PerformanceView_Threads">线程数</sys:String>
|
||||
<sys:String x:Key="PerformanceView_Events">事件</sys:String>
|
||||
<sys:String x:Key="PerformanceView_Severity">严重性</sys:String>
|
||||
<sys:String x:Key="PerformanceView_Detail">详情</sys:String>
|
||||
<sys:String x:Key="PerformanceView_Time">时间</sys:String>
|
||||
<sys:String x:Key="PerformanceView_Category">类别</sys:String>
|
||||
<sys:String x:Key="PerformanceView_Process">进程</sys:String>
|
||||
<sys:String x:Key="PerformanceView_SelectedHotspot">选定的热点进程</sys:String>
|
||||
<sys:String x:Key="PerformanceView_Metrics">指标</sys:String>
|
||||
<sys:String x:Key="PerformanceView_Processes">进程</sys:String>
|
||||
|
||||
<!-- PowerPlanView -->
|
||||
<sys:String x:Key="PowerPlanView_Title">电源计划管理</sys:String>
|
||||
<sys:String x:Key="PowerPlanView_Subtitle">管理活动的 Windows 电源计划并导入自定义 .pow 配置文件</sys:String>
|
||||
<sys:String x:Key="PowerPlanView_WindowsPowerPlans">Windows 电源计划</sys:String>
|
||||
<sys:String x:Key="PowerPlanView_SelectActiveTip">选择要激活的 Windows 电源计划。</sys:String>
|
||||
<sys:String x:Key="PowerPlanView_SetActive">设为活动 Windows 电源计划</sys:String>
|
||||
<sys:String x:Key="PowerPlanView_SetActiveTooltip">将活动的 Windows 电源计划更改为所选计划</sys:String>
|
||||
<sys:String x:Key="PowerPlanView_Refresh">刷新计划</sys:String>
|
||||
<sys:String x:Key="PowerPlanView_RefreshTooltip">刷新可用电源计划的列表</sys:String>
|
||||
<sys:String x:Key="PowerPlanView_CustomPowerPlans">自定义电源计划</sys:String>
|
||||
<sys:String x:Key="PowerPlanView_LocalPlansTip">已准备好导入 Windows 的本地 .pow 文件。</sys:String>
|
||||
<sys:String x:Key="PowerPlanView_ImportSelected">导入选中的 .pow</sys:String>
|
||||
<sys:String x:Key="PowerPlanView_ImportSelectedTooltip">将所选的自定义 .pow 文件导入 Windows</sys:String>
|
||||
<sys:String x:Key="PowerPlanView_AddFile">添加 .pow 文件</sys:String>
|
||||
<sys:String x:Key="PowerPlanView_AddFileTooltip">向自定义库添加新的自定义电源计划文件</sys:String>
|
||||
<sys:String x:Key="PowerPlanView_Delete">删除</sys:String>
|
||||
<sys:String x:Key="PowerPlanView_Active">活动</sys:String>
|
||||
|
||||
<!-- ProcessPowerPlanAssociationView -->
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_Title">规则与自动化</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_Subtitle">自动化监控监视进程的启动/停止事件,并应用配置的电源计划、CPU 掩码和优先级规则。</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_RuleEditor">规则编辑器</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_EditorSubtitle">从可执行文件或运行中的进程创建规则,以实现电源计划、CPU 掩码和优先级行为的自动化。</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_ExecutableMatch">可执行文件匹配:</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_MatchByPath">按路径匹配</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_MatchByPathTooltip">按完整路径而不是仅按可执行文件名称匹配进程</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_Browse">浏览可执行文件</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_BrowseTooltip">点击以从您的计算机选择可执行文件 (.exe)</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_ExecutableHelp">选择可执行文件。按路径匹配更精确;按名称匹配适用于任何具有该可执行文件名称的进程。</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_UseRunningProcess">使用运行中的进程:</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_UseRunningProcessTooltip">选择当前运行的进程以使用其可执行文件</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_UseSelectedProcess">使用所选进程</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_UseSelectedProcessTooltip">使用所选运行中进程的可执行文件</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_RulePowerPlan">规则电源计划 (全局切换):</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_RulePowerPlanHelp">当此规则匹配时,Windows 将切换全局活动电源计划。</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_RuleCpuMask">规则 CPU 掩码:</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_RuleCpuMaskHelp">可选: 选择在该进程启动时要应用的 CPU 掩码</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_RulePriority">规则优先级</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_RulePriorityHelp">可选: 选择在该进程启动时要应用的进程优先级</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_AssociationPriority">关联优先级:</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_AssociationPriorityHelp">当有多个匹配时,优先级较高的关联优先使用</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_AddRule">添加规则</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_UpdateRule">更新选定规则</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_UpdateRuleTooltip">更新所选的关联</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_ClearSelection">清除选择</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_ClearSelectionTooltip">清除选定的可执行文件</sys:String>
|
||||
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_CurrentRules">当前规则</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_RulesDescription">定义针对每个进程的规则。电源计划是全局的;掩码和优先级适用于匹配的进程。</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_Remove">删除</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_RemoveTooltip">删除所选关联</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_DefaultPowerPlan">默认电源计划 (当无规则匹配时的后备方案)</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_DefaultPowerPlanHelp">当没有关联的进程在运行时要使用的电源计划:</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_SetDefault">设置默认电源计划</sys:String>
|
||||
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_SettingsTitle">自动化监控设置</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_EnableWmi">启用基于事件的自动化 (WMI)</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_EnableFallback">启用自动化后备轮询</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_PollingInterval">轮询间隔 (秒):</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_ChangeDelay">电源计划切换延迟 (毫秒):</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_PreventDuplicates">防止重复更改电源计划</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_SaveConfig">保存配置</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_NoRules">尚无自动化规则</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_Status">状态:</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_StartAutomation">启动自动化监控</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_StopAutomation">停止自动化监控</sys:String>
|
||||
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_AppliedToMatching">在运行自动化规则时应用于每个匹配的进程。</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_AppliedOnlyToMatching">仅应用于匹配的进程;它不会更改全局 Windows 电源计划。</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_SelectedExecutable">选定的可执行文件:</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_DescriptionLabel">描述:</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_AutomationService">自动化服务</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_RulesHeader">规则</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_Executable">可执行文件</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_PowerPlan">电源计划</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_CpuMask">CPU 掩码</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_Priority">优先级</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_Description">描述</sys:String>
|
||||
<sys:String x:Key="ProcessPowerPlanAssociationView_ProcessPriority">进程优先级:</sys:String>
|
||||
|
||||
<!-- ProcessView -->
|
||||
<sys:String x:Key="ProcessView_Title">系统进程管理</sys:String>
|
||||
<sys:String x:Key="ProcessView_Subtitle">搜索、过滤和控制活动的进程配置</sys:String>
|
||||
<sys:String x:Key="ProcessView_SearchPlaceholder">按名称搜索进程</sys:String>
|
||||
<sys:String x:Key="ProcessView_HideSystem">隐藏 Windows 系统进程</sys:String>
|
||||
<sys:String x:Key="ProcessView_HideSystemShort">隐藏系统进程</sys:String>
|
||||
<sys:String x:Key="ProcessView_HideLowCpu">隐藏 CPU 使用率极低的进程</sys:String>
|
||||
<sys:String x:Key="ProcessView_HideIdle">隐藏空闲进程</sys:String>
|
||||
<sys:String x:Key="ProcessView_VisibleWindowsOnly">仅显示具有可见窗口的应用程序</sys:String>
|
||||
<sys:String x:Key="ProcessView_ActiveAppsOnly">仅限活动应用</sys:String>
|
||||
<sys:String x:Key="ProcessView_LockList">锁定进程列表</sys:String>
|
||||
<sys:String x:Key="ProcessView_LockListTooltip">在您处理当前列表时暂停进程列表刷新和排序更新。ThreadPilot 运行时,后台监控和保存的规则自动应用仍将继续。</sys:String>
|
||||
<sys:String x:Key="ProcessView_SortBy">排序方式:</sys:String>
|
||||
<sys:String x:Key="ProcessView_SortByTooltip">选择如何对进程列表进行排序</sys:String>
|
||||
|
||||
<sys:String x:Key="ProcessView_SelectedProcess">选定的进程</sys:String>
|
||||
<sys:String x:Key="ProcessView_NoProcessSelected">未选择进程</sys:String>
|
||||
<sys:String x:Key="ProcessView_SelectProcessTip">从表格中选择一个进程以启用关联性、优先级、电源计划和规则操作。</sys:String>
|
||||
<sys:String x:Key="ProcessView_PowerPlanPending">电源计划 / 待处理设置</sys:String>
|
||||
<sys:String x:Key="ProcessView_PowerPlanTooltip">选择要手动激活的电源计划,或包含在快速应用中</sys:String>
|
||||
<sys:String x:Key="ProcessView_SetPowerPlan">设置电源计划</sys:String>
|
||||
<sys:String x:Key="ProcessView_SetPowerPlanTooltip">激活所选的 Windows 电源计划</sys:String>
|
||||
|
||||
<sys:String x:Key="ProcessView_PendingCoreMask">待处理的核心掩码</sys:String>
|
||||
<sys:String x:Key="ProcessView_StageMaskTooltip">选择一个掩码来暂存它。在点击“应用关联性”之前,这不会更改操作系统关联性。</sys:String>
|
||||
<sys:String x:Key="ProcessView_ApplyAffinity">应用关联性</sys:String>
|
||||
<sys:String x:Key="ProcessView_ApplyAffinityTooltip">将待处理的核心掩码应用于选定的进程,并验证 Windows 关联性状态</sys:String>
|
||||
<sys:String x:Key="ProcessView_ApplyAffinitySaveRule">应用关联性并保存为规则</sys:String>
|
||||
<sys:String x:Key="ProcessView_ApplyAffinitySaveRuleTooltip">将当前进程设置保存为规则。以后此进程启动时将自动应用这些设置。</sys:String>
|
||||
|
||||
<sys:String x:Key="ProcessView_SetCpuPriority">设置 CPU 优先级</sys:String>
|
||||
<sys:String x:Key="ProcessView_ApplyPriorityTooltip">将所选优先级应用于进程</sys:String>
|
||||
<sys:String x:Key="ProcessView_EnforcePriorityRegistry">通过注册表强制执行优先级</sys:String>
|
||||
<sys:String x:Key="ProcessView_EnforcePriorityRegistryTooltip">通过 Windows 注册表应用优先级。必须重新启动进程才能使更改生效。此设置在系统重启后仍然有效。</sys:String>
|
||||
<sys:String x:Key="ProcessView_SetPriority">设置优先级</sys:String>
|
||||
<sys:String x:Key="ProcessView_RealtimeBlockedHelp">实时优先级已被 ThreadPilot 阻止,因为它可能会使 Windows 不稳定或无响应。</sys:String>
|
||||
<sys:String x:Key="ProcessView_RealtimeBlocked">实时 (已阻止)</sys:String>
|
||||
|
||||
<sys:String x:Key="ProcessView_DisableIdleServer">禁用空闲服务</sys:String>
|
||||
<sys:String x:Key="ProcessView_DisableIdleServerTooltip">在此进程运行时阻止系统进入空闲状态。适用于游戏和对性能要求严苛的应用程序。</sys:String>
|
||||
|
||||
<sys:String x:Key="ProcessView_ProfileRule">配置文件 / 规则</sys:String>
|
||||
<sys:String x:Key="ProcessView_ProfileNamePlaceholder">输入配置文件名称以保存或加载设置</sys:String>
|
||||
<sys:String x:Key="ProcessView_SaveProfile">保存配置文件</sys:String>
|
||||
<sys:String x:Key="ProcessView_SaveProfileTooltip">将当前 CPU 关联性和优先级保存为可复用的配置文件</sys:String>
|
||||
<sys:String x:Key="ProcessView_LoadProfile">加载配置文件</sys:String>
|
||||
<sys:String x:Key="ProcessView_LoadProfileTooltip">加载以前保存的配置文件</sys:String>
|
||||
<sys:String x:Key="ProcessView_SaveCurrentRule">保存当前设置为规则</sys:String>
|
||||
|
||||
<sys:String x:Key="ProcessView_LastAction">最后一次 ThreadPilot 操作:</sys:String>
|
||||
<sys:String x:Key="ProcessView_Refresh">刷新</sys:String>
|
||||
<sys:String x:Key="ProcessView_RefreshTooltip">刷新进程列表</sys:String>
|
||||
<sys:String x:Key="ProcessView_LoadMore">加载更多</sys:String>
|
||||
<sys:String x:Key="ProcessView_LoadMoreTooltip">加载更多进程</sys:String>
|
||||
|
||||
<sys:String x:Key="ProcessView_ColProcessName">进程名称</sys:String>
|
||||
<sys:String x:Key="ProcessView_ColWindowTitle">窗口标题</sys:String>
|
||||
<sys:String x:Key="ProcessView_ColCpuUsage">CPU 使用率</sys:String>
|
||||
<sys:String x:Key="ProcessView_ColMemory">内存使用</sys:String>
|
||||
|
||||
<sys:String x:Key="ProcessView_AffinityStagedTooltip">关联性已暂存在 UI 中。在点击“应用关联性”之前不会应用。</sys:String>
|
||||
<sys:String x:Key="ProcessView_AffinityCurrentTooltip">Windows 当前报告的所选进程的关联性</sys:String>
|
||||
<sys:String x:Key="ProcessView_CpuSelectionPreviewTooltip">当前或待处理 CPU 选择的只读预览</sys:String>
|
||||
<sys:String x:Key="ProcessView_OpenMasksTabTooltip">打开 CPU 掩码选项卡以创建新的自定义掩码</sys:String>
|
||||
<sys:String x:Key="ProcessView_HyperThreadingTooltip">显示此系统上是否具有并启用了超线程 (Intel) 或 SMT (AMD)</sys:String>
|
||||
|
||||
<sys:String x:Key="ProcessView_CopyProcessInfo">复制进程信息</sys:String>
|
||||
<sys:String x:Key="ProcessView_OpenLocation">打开可执行文件位置</sys:String>
|
||||
<sys:String x:Key="ProcessView_ClearCpuSets">清除 CPU 集</sys:String>
|
||||
<sys:String x:Key="ProcessView_ApplyPendingSettings">应用待处理设置</sys:String>
|
||||
<sys:String x:Key="ProcessView_ApplyPendingSettingsTooltip">将待处理的关联性和选定的电源计划应用于选定的进程</sys:String>
|
||||
<sys:String x:Key="ProcessView_RulesAppliedOnlyWhenConfigured">ThreadPilot 仅在配置后才应用规则和更改。</sys:String>
|
||||
|
||||
<sys:String x:Key="ProcessView_PriorityAboveNormal">高于正常</sys:String>
|
||||
<sys:String x:Key="ProcessView_PriorityBelowNormal">低于正常</sys:String>
|
||||
<sys:String x:Key="ProcessView_PriorityHigh">高</sys:String>
|
||||
<sys:String x:Key="ProcessView_PriorityIdle">空闲</sys:String>
|
||||
<sys:String x:Key="ProcessView_PriorityLow">低</sys:String>
|
||||
<sys:String x:Key="ProcessView_PriorityNormal">正常</sys:String>
|
||||
<sys:String x:Key="ProcessView_PriorityRealtime">实时</sys:String>
|
||||
<sys:String x:Key="ProcessView_PriorityBatch">批处理</sys:String>
|
||||
<sys:String x:Key="ProcessView_PriorityCustom">自定义</sys:String>
|
||||
|
||||
<sys:String x:Key="ProcessView_HasWindow">有窗口</sys:String>
|
||||
<sys:String x:Key="ProcessView_Window">窗口</sys:String>
|
||||
<sys:String x:Key="ProcessView_PID">PID</sys:String>
|
||||
<sys:String x:Key="ProcessView_ID">ID</sys:String>
|
||||
<sys:String x:Key="ProcessView_MemoryMb">内存 (MB)</sys:String>
|
||||
<sys:String x:Key="ProcessView_Affinity">关联性</sys:String>
|
||||
<sys:String x:Key="ProcessView_Priority">优先级</sys:String>
|
||||
<sys:String x:Key="ProcessView_Rules">规则</sys:String>
|
||||
<sys:String x:Key="ProcessView_Name">名称</sys:String>
|
||||
<sys:String x:Key="ProcessView_SetMemoryPriority">设置内存优先级</sys:String>
|
||||
<sys:String x:Key="ProcessView_PriorityVeryLow">极低</sys:String>
|
||||
<sys:String x:Key="ProcessView_PriorityMedium">中</sys:String>
|
||||
<sys:String x:Key="ProcessView_RefreshInfo">刷新进程信息</sys:String>
|
||||
|
||||
<!-- SettingsView -->
|
||||
<sys:String x:Key="SettingsView_Title">ThreadPilot 系统设置</sys:String>
|
||||
<sys:String x:Key="SettingsView_Subtitle">配置通知、系统托盘和应用程序行为</sys:String>
|
||||
<sys:String x:Key="SettingsView_Notifications">系统通知</sys:String>
|
||||
<sys:String x:Key="SettingsView_EnableNotifications">启用应用通知</sys:String>
|
||||
<sys:String x:Key="SettingsView_NotificationLevel">通知级别</sys:String>
|
||||
<sys:String x:Key="SettingsView_NotificationLevelAll">全部显示</sys:String>
|
||||
<sys:String x:Key="SettingsView_NotificationLevelWarningsErrors">仅警告与错误</sys:String>
|
||||
<sys:String x:Key="SettingsView_NotificationLevelSilent">静音模式</sys:String>
|
||||
<sys:String x:Key="SettingsView_EnableBalloon">启用系统托盘气泡通知</sys:String>
|
||||
<sys:String x:Key="SettingsView_EnableToast">启用 Windows 吐司通知 (Windows 10+)</sys:String>
|
||||
<sys:String x:Key="SettingsView_NotificationTypes">通知事件类别</sys:String>
|
||||
<sys:String x:Key="SettingsView_NotifyPowerPlan">电源计划变更</sys:String>
|
||||
<sys:String x:Key="SettingsView_NotifyProcess">进程监控事件</sys:String>
|
||||
<sys:String x:Key="SettingsView_NotifyError">错误与异常通知</sys:String>
|
||||
<sys:String x:Key="SettingsView_NotifySuccess">操作成功提示</sys:String>
|
||||
<sys:String x:Key="SettingsView_Duration">持续显示时间 (毫秒):</sys:String>
|
||||
<sys:String x:Key="SettingsView_TestNotification">测试通知发送</sys:String>
|
||||
|
||||
<sys:String x:Key="SettingsView_SystemTray">系统托盘栏</sys:String>
|
||||
<sys:String x:Key="SettingsView_ShowTrayIcon">显示托盘图标</sys:String>
|
||||
<sys:String x:Key="SettingsView_MinimizeToTray">最小化到托盘</sys:String>
|
||||
<sys:String x:Key="SettingsView_CloseToTray">关闭主窗口时最小化到托盘</sys:String>
|
||||
<sys:String x:Key="SettingsView_StartMinimized">开机启动时最小化</sys:String>
|
||||
<sys:String x:Key="SettingsView_QuickApply">允许从托盘菜单应用待处理设置</sys:String>
|
||||
<sys:String x:Key="SettingsView_MonitoringControl">允许从托盘菜单控制自动化监控</sys:String>
|
||||
<sys:String x:Key="SettingsView_DetailedTooltips">托盘图标显示详细鼠标提示</sys:String>
|
||||
|
||||
<sys:String x:Key="SettingsView_BasicPreferences">基本偏好设置</sys:String>
|
||||
<sys:String x:Key="SettingsView_Autostart">系统开机启动</sys:String>
|
||||
<sys:String x:Key="SettingsView_StartWithWindows">随 Windows 开机启动</sys:String>
|
||||
<sys:String x:Key="SettingsView_AutostartDescription">在 Windows 系统启动时自动开启 ThreadPilot</sys:String>
|
||||
<sys:String x:Key="SettingsView_LowImpactMode">后台低系统影响模式</sys:String>
|
||||
<sys:String x:Key="SettingsView_LowImpactDescription">在最小化或隐藏至托盘时自动降低 ThreadPilot 的进程优先级。</sys:String>
|
||||
|
||||
<sys:String x:Key="SettingsView_Appearance">外观主题</sys:String>
|
||||
<sys:String x:Key="SettingsView_UseDarkTheme">启用暗黑主题</sys:String>
|
||||
<sys:String x:Key="SettingsView_ThemeDescription">在所有选项卡上全局应用 亮色/暗色 视觉风格</sys:String>
|
||||
|
||||
<sys:String x:Key="SettingsView_Language">显示语言</sys:String>
|
||||
<sys:String x:Key="SettingsView_LanguageZhCn">简体中文 (Simplified Chinese)</sys:String>
|
||||
<sys:String x:Key="SettingsView_LanguageEnUs">English (English)</sys:String>
|
||||
<sys:String x:Key="SettingsView_LanguageDescription">在整个应用程序界面应用全局的语言设置。</sys:String>
|
||||
|
||||
<sys:String x:Key="SettingsView_RulesAutomation">规则与自动化</sys:String>
|
||||
<sys:String x:Key="SettingsView_RuleAutoApply">保存规则自动应用</sys:String>
|
||||
<sys:String x:Key="SettingsView_ApplyOnStart">在匹配的进程启动时自动应用已保存规则</sys:String>
|
||||
<sys:String x:Key="SettingsView_ApplyOnStartDescription">在 ThreadPilot 运行时自动应用已启用的保存规则。这不会注册 Windows 服务,也不使用注册表/IFEO 进行常驻。</sys:String>
|
||||
<sys:String x:Key="SettingsView_EnableWmi">启用 WMI 进程启动监控</sys:String>
|
||||
<sys:String x:Key="SettingsView_WmiDescription">使用 Windows Management Instrumentation 来监听进程启动/退出事件</sys:String>
|
||||
<sys:String x:Key="SettingsView_EnableFallback">启用后备轮询监控</sys:String>
|
||||
<sys:String x:Key="SettingsView_FallbackDescription">如果 WMI 进程事件订阅失败,自动启用定时轮询作为备份</sys:String>
|
||||
<sys:String x:Key="SettingsView_PollingInterval">轮询间隔时间 (毫秒):</sys:String>
|
||||
<sys:String x:Key="SettingsView_FallbackPollingInterval">后备轮询间隔时间 (毫秒):</sys:String>
|
||||
|
||||
<sys:String x:Key="SettingsView_Advanced">高级与调试设置</sys:String>
|
||||
<sys:String x:Key="SettingsView_NotificationHistory">启用通知历史记录</sys:String>
|
||||
<sys:String x:Key="SettingsView_MaxHistory">最大历史条目数:</sys:String>
|
||||
<sys:String x:Key="SettingsView_AutoHide">自动渐隐通知气泡</sys:String>
|
||||
<sys:String x:Key="SettingsView_NotificationSound">播放提示音</sys:String>
|
||||
<sys:String x:Key="SettingsView_DebugLogging">开启调试诊断日志记录</sys:String>
|
||||
<sys:String x:Key="SettingsView_PerformanceCounters">启用内部性能计数器</sys:String>
|
||||
|
||||
<sys:String x:Key="SettingsView_About">关于应用</sys:String>
|
||||
<sys:String x:Key="SettingsView_Version">软件版本:</sys:String>
|
||||
<sys:String x:Key="SettingsView_Copyright">版权所有 © 2026 PrimeBuild</sys:String>
|
||||
<sys:String x:Key="SettingsView_Translator">翻译人员:Ylimhs</sys:String>
|
||||
<sys:String x:Key="SettingsView_License">软件授权: AGPLv3</sys:String>
|
||||
<sys:String x:Key="SettingsView_CheckUpdates">检查新版本</sys:String>
|
||||
<sys:String x:Key="SettingsView_UpdatesDescription">按需通过官方 GitHub Releases API 检索最新稳定版本。</sys:String>
|
||||
|
||||
<sys:String x:Key="SettingsView_ResetDefaults">重置为默认值</sys:String>
|
||||
<sys:String x:Key="SettingsView_ExportConfig">导出配置包</sys:String>
|
||||
<sys:String x:Key="SettingsView_ImportConfig">导入配置包</sys:String>
|
||||
<sys:String x:Key="SettingsView_SaveSettings">保存并应用设置</sys:String>
|
||||
<sys:String x:Key="SettingsView_ThreadPilot">ThreadPilot</sys:String>
|
||||
|
||||
<!-- SettingsWindow -->
|
||||
<sys:String x:Key="SettingsWindow_Title">ThreadPilot 设置</sys:String>
|
||||
<sys:String x:Key="SettingsWindow_UnsavedTitle">未保存的设置</sys:String>
|
||||
<sys:String x:Key="SettingsWindow_UnsavedDescription">您有尚未保存的更改。请选择在关闭前保存、放弃修改或取消并返回编辑。</sys:String>
|
||||
<sys:String x:Key="SettingsWindow_Cancel">取消</sys:String>
|
||||
<sys:String x:Key="SettingsWindow_Discard">放弃更改</sys:String>
|
||||
<sys:String x:Key="SettingsWindow_Save">保存</sys:String>
|
||||
|
||||
<!-- SystemTweaksView -->
|
||||
<sys:String x:Key="SystemTweaksView_Title">系统微调与优化</sys:String>
|
||||
<sys:String x:Key="SystemTweaksView_Subtitle">配置 Windows 系统级优化项和性能微调选项</sys:String>
|
||||
<sys:String x:Key="SystemTweaksView_RefreshAll">刷新状态</sys:String>
|
||||
<sys:String x:Key="SystemTweaksView_RefreshAllTooltip">刷新所有微调选项的状态</sys:String>
|
||||
<sys:String x:Key="SystemTweaksView_TweakTooltip">切换此 Windows 系统微调项</sys:String>
|
||||
<sys:String x:Key="SystemTweaksView_Status">当前状态</sys:String>
|
||||
|
||||
<!-- SystemTweaks Names and Descriptions -->
|
||||
<sys:String x:Key="SystemTweak_CoreParking_Name">核心休眠 (Core Parking)</sys:String>
|
||||
<sys:String x:Key="SystemTweak_CoreParking_Desc">控制 CPU 核心休眠以进行电源管理</sys:String>
|
||||
<sys:String x:Key="SystemTweak_CStates_Name">C-States 状态</sys:String>
|
||||
<sys:String x:Key="SystemTweak_CStates_Desc">控制 CPU C-States 以进行节能电源管理</sys:String>
|
||||
<sys:String x:Key="SystemTweak_SysMain_Name">SysMain 服务</sys:String>
|
||||
<sys:String x:Key="SystemTweak_SysMain_Desc">Windows Superfetch/SysMain 服务,用于内存管理</sys:String>
|
||||
<sys:String x:Key="SystemTweak_Prefetch_Name">预取 (Prefetch)</sys:String>
|
||||
<sys:String x:Key="SystemTweak_Prefetch_Desc">Windows Prefetch 功能,用于加速应用程序加载</sys:String>
|
||||
<sys:String x:Key="SystemTweak_PowerThrottling_Name">电源限流 (Power Throttling)</sys:String>
|
||||
<sys:String x:Key="SystemTweak_PowerThrottling_Desc">Windows 电源限流功能,用于能效优化</sys:String>
|
||||
<sys:String x:Key="SystemTweak_Hpet_Name">HPET 定时器</sys:String>
|
||||
<sys:String x:Key="SystemTweak_Hpet_Desc">高精度事件计时器,用于系统精准定时</sys:String>
|
||||
<sys:String x:Key="SystemTweak_HighSchedulingCategory_Name">高调度优先级类别</sys:String>
|
||||
<sys:String x:Key="SystemTweak_HighSchedulingCategory_Desc">为游戏应用程序提供高调度优先级</sys:String>
|
||||
<sys:String x:Key="SystemTweak_MenuShowDelay_Name">菜单显示延迟</sys:String>
|
||||
<sys:String x:Key="SystemTweak_MenuShowDelay_Desc">显示上下文菜单之前的延迟时间</sys:String>
|
||||
|
||||
<!-- SystemTweaksViewModel Messages -->
|
||||
<sys:String x:Key="SystemTweaks_StatusReady">就绪</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_StatusRefreshing">正在刷新系统微调选项...</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_StatusLastRefreshedFormat">上次刷新时间: {0}</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_StatusRefreshFailed">刷新系统微调失败</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_StatusRefreshFailedShort">刷新失败</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_StatusTogglingFormat">正在切换 {0}...</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_StatusEnabledFormat">{0} 已成功启用</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_StatusDisabledFormat">{0} 已成功禁用</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_NotifyEnabledFormat">{0} 已启用</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_NotifyDisabledFormat">{0} 已禁用</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_NotifyUpdatedTitle">系统微调已更新</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_StatusToggleFailedFormat">无法切换 {0}</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_StatusEnableFailedFormat">未能启用 {0}</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_StatusDisableFailedFormat">未能禁用 {0}</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_NotifyFailedTitle">系统微调失败</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_NotifyFailedFormat">未能{0}{1}</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_StatusErrorTogglingFormat">切换 {0} 出错</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_NotifyErrorFormat">切换 {0} 时出错: {1}</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_WordEnable">启用</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_WordDisable">禁用</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_WordEnabled">启用</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_WordDisabled">禁用</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_StatusEnabled">已启用</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_StatusDisabled">已禁用</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_StatusNotAvailable">不可用</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_StatusLoading">正在加载系统微调...</sys:String>
|
||||
<sys:String x:Key="SystemTweaks_StatusLoadedSuccess">系统微调已成功加载</sys:String>
|
||||
|
||||
<!-- SystemTray Context Menu & Status -->
|
||||
<sys:String x:Key="SystemTray_OpenDashboard">打开主控制面板</sys:String>
|
||||
<sys:String x:Key="SystemTray_OpenDiagnostics">打开性能诊断</sys:String>
|
||||
<sys:String x:Key="SystemTray_PauseMonitoring">暂停自动化监控</sys:String>
|
||||
<sys:String x:Key="SystemTray_ResumeMonitoring">恢复自动化监控</sys:String>
|
||||
<sys:String x:Key="SystemTray_SystemStatus">系统状态</sys:String>
|
||||
<sys:String x:Key="SystemTray_NoProcessSelected">未选择进程</sys:String>
|
||||
<sys:String x:Key="SystemTray_SelectedProcessFormat">已选择: {0}</sys:String>
|
||||
<sys:String x:Key="SystemTray_ApplyPendingToSelected">应用待处理设置到所选进程</sys:String>
|
||||
<sys:String x:Key="SystemTray_ApplyPendingToProcessFormat">应用待处理设置到 {0}</sys:String>
|
||||
<sys:String x:Key="SystemTray_PowerPlans">🔋 电源计划</sys:String>
|
||||
<sys:String x:Key="SystemTray_Profiles">📋 配置文件</sys:String>
|
||||
<sys:String x:Key="SystemTray_Settings">应用设置</sys:String>
|
||||
<sys:String x:Key="SystemTray_Exit">退出程序</sys:String>
|
||||
<sys:String x:Key="SystemTray_NoProfilesAvailable">无可用配置文件</sys:String>
|
||||
<sys:String x:Key="SystemTray_PowerPlanFormat">电源计划: {0}</sys:String>
|
||||
<sys:String x:Key="SystemTray_StatusWmiError">自动化 WMI 错误</sys:String>
|
||||
<sys:String x:Key="SystemTray_StatusActive">自动化监控已启用</sys:String>
|
||||
<sys:String x:Key="SystemTray_StatusDisabled">自动化监控已禁用</sys:String>
|
||||
<sys:String x:Key="SystemTray_Unknown">未知</sys:String>
|
||||
<sys:String x:Key="SystemTray_CpuRamStatusFormat">💻 CPU: {0:F1}% | 内存: {1:F1}% | {2}</sys:String>
|
||||
|
||||
<!-- ProcessOperationUserMessages -->
|
||||
<sys:String x:Key="ProcessOperationUserMessages_AccessDenied">Windows 拒绝了此更改。该进程可能需要管理员权限或受保护。</sys:String>
|
||||
<sys:String x:Key="ProcessOperationUserMessages_AntiCheatProtectedLikely">该进程似乎受到反作弊系统或进程保护的保护。ThreadPilot 不会尝试绕过它。</sys:String>
|
||||
<sys:String x:Key="ProcessOperationUserMessages_AdminClarification">管理员模式可能有助于解决普通的权限问题,但无法绕过反作弊系统或受保护的进程限制。</sys:String>
|
||||
<sys:String x:Key="ProcessOperationUserMessages_LegacyFallbackBlocked">在此拓扑上,此 CPU 选择无法由传统关联性 API 安全地表示。此选择需要使用 CPU 集。</sys:String>
|
||||
<sys:String x:Key="ProcessOperationUserMessages_InvalidTopology">此 CPU 选择与当前 CPU 拓扑不匹配。请检查或重新创建预设。</sys:String>
|
||||
<sys:String x:Key="ProcessOperationUserMessages_ProcessExited">在 ThreadPilot 应用更改之前,进程已退出。</sys:String>
|
||||
<sys:String x:Key="ProcessOperationUserMessages_CpuSetsUnavailable">Windows CPU 集不可用或拒绝了此选择。ThreadPilot 将仅在可能时使用 safe 后备方案。</sys:String>
|
||||
<sys:String x:Key="ProcessOperationUserMessages_HighPriorityWarning">高优先级可以提高某些工作负载的响应速度,但可能会降低系统整体响应速度。</sys:String>
|
||||
<sys:String x:Key="ProcessOperationUserMessages_RealtimePriorityBlocked">实时优先级已被 ThreadPilot 阻止,因为它可能会使 Windows 不稳定或无响应。</sys:String>
|
||||
<sys:String x:Key="ProcessOperationUserMessages_PersistentLaunchTimePriorityNotice">普通进程可能支持持久的启动时优先级,但这不会绕过受保护进程或反作弊系统的限制。</sys:String>
|
||||
<sys:String x:Key="ProcessOperationUserMessages_PersistentRulesDescription">在匹配的进程启动时应用保存的规则。某些受保护或反作弊进程可能会拒绝更改。管理员模式有助于解决普通权限问题,但无法绕过进程保护。</sys:String>
|
||||
<sys:String x:Key="ProcessOperationUserMessages_PersistentRulesProtectedProcessWarning">该进程似乎受到反作弊系统或进程保护的保护。ThreadPilot 不会尝试对其进行改写。</sys:String>
|
||||
|
||||
<!-- Notifications -->
|
||||
<sys:String x:Key="Notification_PowerPlanChangedTitle">电源计划已更改</sys:String>
|
||||
<sys:String x:Key="Notification_PowerPlanChangedFormat">电源计划已从“{0}”更改为“{1}”</sys:String>
|
||||
<sys:String x:Key="Notification_PowerPlanChangedProcessFormat">已为进程“{1}”将电源计划切换为“{0}”</sys:String>
|
||||
<sys:String x:Key="Notification_ProcessMonitoringEnabled">进程监控已启用</sys:String>
|
||||
<sys:String x:Key="Notification_ProcessMonitoringDisabled">进程监控已禁用</sys:String>
|
||||
<sys:String x:Key="Notification_CpuAffinityAppliedTitle">CPU 关联性已应用</sys:String>
|
||||
<sys:String x:Key="Notification_CpuAffinityAppliedFormat">已为“{0}”设置 CPU 关联性: {1}</sys:String>
|
||||
<sys:String x:Key="Notification_GameBoostActivatedTitle">游戏加速已启用</sys:String>
|
||||
<sys:String x:Key="Notification_GameBoostActivatedFormat">已为 {0} 启用游戏加速模式</sys:String>
|
||||
<sys:String x:Key="Notification_GameBoostDeactivatedTitle">游戏加速已关闭</sys:String>
|
||||
<sys:String x:Key="Notification_GameBoostDeactivatedFormat">游戏加速模式已关闭,持续时间: {0}</sys:String>
|
||||
<sys:String x:Key="Notification_ProcessMonitorErrorTitle">进程监控器错误</sys:String>
|
||||
<sys:String x:Key="Notification_AffinityBlockedTitle">关联性应用被阻止</sys:String>
|
||||
<sys:String x:Key="Notification_PriorityBlockedTitle">优先级应用被阻止</sys:String>
|
||||
|
||||
<!-- Elevation Service -->
|
||||
<sys:String x:Key="Elevation_RequestPromptText">ThreadPilot 需要管理员权限来管理进程关联性和电源计划。

您想以管理员权限重新启动应用程序吗?</sys:String>
|
||||
<sys:String x:Key="Elevation_RequestPromptTitle">需要管理员权限</sys:String>
|
||||
<sys:String x:Key="Elevation_FailedText">无法以管理员权限重新启动。请手动以管理员身份运行 ThreadPilot。</sys:String>
|
||||
<sys:String x:Key="Elevation_FailedTitle">权限提升失败</sys:String>
|
||||
<sys:String x:Key="Elevation_StatusRunning">以管理员权限运行中</sys:String>
|
||||
<sys:String x:Key="Elevation_StatusLimited">以受限权限运行中</sys:String>
|
||||
|
||||
<!-- System Tweaks Errors -->
|
||||
<sys:String x:Key="SystemTweak_Error_QueryCoreParking">无法通过 powercfg 查询核心停车值</sys:String>
|
||||
<sys:String x:Key="SystemTweak_Error_QueryCStates">无法通过 powercfg 查询 C-States 值</sys:String>
|
||||
<sys:String x:Key="SystemTweak_Error_PrefetchKeyNotFound">未找到预取注册表键</sys:String>
|
||||
<sys:String x:Key="SystemTweak_Error_PowerThrottlingNotAvailable">此系统上不支持电源限流</sys:String>
|
||||
<sys:String x:Key="SystemTweak_Error_PriorityControlKeyNotFound">未找到 PriorityControl 注册表键</sys:String>
|
||||
<sys:String x:Key="SystemTweak_Error_DesktopKeyNotFound">未找到 Desktop 注册表键</sys:String>
|
||||
</ResourceDictionary>
|
||||
@@ -151,6 +151,9 @@ namespace ThreadPilot.Models
|
||||
[ObservableProperty]
|
||||
private bool hasUserThemePreference = false;
|
||||
|
||||
[ObservableProperty]
|
||||
private string language = LocalizationService.DefaultLanguage;
|
||||
|
||||
// Monitoring Settings
|
||||
[ObservableProperty]
|
||||
private int pollingIntervalMs = 5000;
|
||||
@@ -249,6 +252,7 @@ namespace ThreadPilot.Models
|
||||
this.ClearMasksOnClose = other.ClearMasksOnClose;
|
||||
this.UseDarkTheme = other.UseDarkTheme;
|
||||
this.HasUserThemePreference = other.HasUserThemePreference;
|
||||
this.Language = LocalizationService.NormalizeLanguage(other.Language);
|
||||
|
||||
// Monitoring Settings
|
||||
this.PollingIntervalMs = other.PollingIntervalMs;
|
||||
|
||||
@@ -246,16 +246,18 @@ namespace ThreadPilot.Services
|
||||
this.settings.MaxNotificationHistoryItems = 1000;
|
||||
}
|
||||
|
||||
// Validate custom icon path
|
||||
if (this.settings.UseCustomTrayIcon && !string.IsNullOrEmpty(this.settings.CustomTrayIconPath))
|
||||
{
|
||||
if (!File.Exists(this.settings.CustomTrayIconPath))
|
||||
{
|
||||
// Validate custom icon path
|
||||
if (this.settings.UseCustomTrayIcon && !string.IsNullOrEmpty(this.settings.CustomTrayIconPath))
|
||||
{
|
||||
if (!File.Exists(this.settings.CustomTrayIconPath))
|
||||
{
|
||||
this.logger.LogWarning("Custom tray icon file not found: {Path}", this.settings.CustomTrayIconPath);
|
||||
this.settings.UseCustomTrayIcon = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.settings.UseCustomTrayIcon = false;
|
||||
}
|
||||
}
|
||||
|
||||
this.settings.Language = LocalizationService.NormalizeLanguage(this.settings.Language);
|
||||
}
|
||||
|
||||
public async Task ExportSettingsAsync(string filePath)
|
||||
{
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* ThreadPilot - Advanced Windows Process and Power Plan Manager
|
||||
* Copyright (C) 2025 Prime Build
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published by
|
||||
* the Free Software Foundation, version 3 only.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
namespace ThreadPilot.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// Service for managing application localization and display language.
|
||||
/// </summary>
|
||||
public interface ILocalizationService
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the current display language.
|
||||
/// </summary>
|
||||
string CurrentLanguage { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Event fired when the active language changes.
|
||||
/// </summary>
|
||||
event EventHandler<string>? LanguageChanged;
|
||||
|
||||
/// <summary>
|
||||
/// Applies the specified display language.
|
||||
/// </summary>
|
||||
void ApplyLanguage(string? language);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the localized string for the specified key.
|
||||
/// </summary>
|
||||
string GetString(string key);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,269 @@
|
||||
/*
|
||||
* ThreadPilot - Advanced Windows Process and Power Plan Manager
|
||||
* Copyright (C) 2025 Prime Build
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published by
|
||||
* the Free Software Foundation, version 3 only.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
namespace ThreadPilot.Services
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Windows;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
/// <summary>
|
||||
/// Service for managing application localization and display language.
|
||||
/// </summary>
|
||||
public class LocalizationService : ILocalizationService
|
||||
{
|
||||
public const string DefaultLanguage = "en-US";
|
||||
public const string SimplifiedChineseLanguage = "zh-CN";
|
||||
|
||||
private const string EnUsDictionaryPath = "Locales/en-US.xaml";
|
||||
private const string ZhCnDictionaryPath = "Locales/zh-CN.xaml";
|
||||
|
||||
private readonly ILogger<LocalizationService> logger;
|
||||
private readonly IReadOnlyDictionary<string, string>? englishStrings;
|
||||
private readonly IReadOnlyDictionary<string, string>? chineseStrings;
|
||||
private ResourceDictionary? activeLocaleDictionary;
|
||||
private ResourceDictionary? englishFallbackDictionary;
|
||||
private Uri? activeLocaleUri;
|
||||
|
||||
public string CurrentLanguage { get; private set; } = DefaultLanguage;
|
||||
|
||||
public event EventHandler<string>? LanguageChanged;
|
||||
|
||||
public LocalizationService(ILogger<LocalizationService> logger)
|
||||
: this(logger, englishStrings: null, chineseStrings: null)
|
||||
{
|
||||
}
|
||||
|
||||
public LocalizationService(
|
||||
ILogger<LocalizationService> logger,
|
||||
IReadOnlyDictionary<string, string>? englishStrings,
|
||||
IReadOnlyDictionary<string, string>? chineseStrings)
|
||||
{
|
||||
this.logger = logger ?? throw new ArgumentNullException(nameof(logger));
|
||||
this.englishStrings = englishStrings;
|
||||
this.chineseStrings = chineseStrings;
|
||||
}
|
||||
|
||||
public static string NormalizeLanguage(string? language)
|
||||
{
|
||||
if (string.Equals(language, SimplifiedChineseLanguage, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return SimplifiedChineseLanguage;
|
||||
}
|
||||
|
||||
return DefaultLanguage;
|
||||
}
|
||||
|
||||
public void ApplyLanguage(string? language)
|
||||
{
|
||||
var normalizedLanguage = NormalizeLanguage(language);
|
||||
var targetUri = new Uri(GetDictionaryPath(normalizedLanguage), UriKind.Relative);
|
||||
|
||||
this.CurrentLanguage = normalizedLanguage;
|
||||
|
||||
var appResources = System.Windows.Application.Current?.Resources;
|
||||
if (appResources == null)
|
||||
{
|
||||
this.activeLocaleUri = targetUri;
|
||||
this.LanguageChanged?.Invoke(this, normalizedLanguage);
|
||||
return;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
this.ApplyLanguageDictionary(appResources, targetUri);
|
||||
this.activeLocaleUri = targetUri;
|
||||
this.logger.LogInformation("Applied display language {Language}", normalizedLanguage);
|
||||
this.LanguageChanged?.Invoke(this, normalizedLanguage);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
this.logger.LogError(ex, "Failed to apply language {Language}", normalizedLanguage);
|
||||
}
|
||||
}
|
||||
|
||||
public string GetString(string key)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(key))
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
if (this.TryGetStringFromOverrides(this.CurrentLanguage, key, out var localized))
|
||||
{
|
||||
return localized;
|
||||
}
|
||||
|
||||
if (this.TryGetStringFromApplicationResources(key, out localized))
|
||||
{
|
||||
return localized;
|
||||
}
|
||||
|
||||
if (this.activeLocaleDictionary != null && TryGetString(this.activeLocaleDictionary, key, out localized))
|
||||
{
|
||||
return localized;
|
||||
}
|
||||
|
||||
if (this.CurrentLanguage != DefaultLanguage &&
|
||||
this.TryGetStringFromOverrides(DefaultLanguage, key, out localized))
|
||||
{
|
||||
return localized;
|
||||
}
|
||||
|
||||
if (this.CurrentLanguage != DefaultLanguage &&
|
||||
this.TryGetStringFromEnglishFallbackDictionary(key, out localized))
|
||||
{
|
||||
return localized;
|
||||
}
|
||||
|
||||
return key;
|
||||
}
|
||||
|
||||
private void ApplyLanguageDictionary(ResourceDictionary appResources, Uri targetUri)
|
||||
{
|
||||
ResourceDictionary? matchingDictionary = null;
|
||||
for (var i = appResources.MergedDictionaries.Count - 1; i >= 0; i--)
|
||||
{
|
||||
var dictionary = appResources.MergedDictionaries[i];
|
||||
var source = dictionary.Source?.OriginalString;
|
||||
if (IsLocaleDictionary(source))
|
||||
{
|
||||
if (matchingDictionary == null &&
|
||||
string.Equals(source, targetUri.OriginalString, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
matchingDictionary = dictionary;
|
||||
continue;
|
||||
}
|
||||
|
||||
appResources.MergedDictionaries.RemoveAt(i);
|
||||
}
|
||||
}
|
||||
|
||||
if (matchingDictionary != null)
|
||||
{
|
||||
appResources.MergedDictionaries.Remove(matchingDictionary);
|
||||
appResources.MergedDictionaries.Insert(0, matchingDictionary);
|
||||
this.activeLocaleDictionary = matchingDictionary;
|
||||
}
|
||||
else
|
||||
{
|
||||
var nextDictionary = new ResourceDictionary { Source = targetUri };
|
||||
appResources.MergedDictionaries.Insert(0, nextDictionary);
|
||||
this.activeLocaleDictionary = nextDictionary;
|
||||
}
|
||||
}
|
||||
|
||||
private static string GetDictionaryPath(string language)
|
||||
{
|
||||
return language == SimplifiedChineseLanguage ? ZhCnDictionaryPath : EnUsDictionaryPath;
|
||||
}
|
||||
|
||||
private static bool IsLocaleDictionary(string? source)
|
||||
{
|
||||
return !string.IsNullOrWhiteSpace(source) &&
|
||||
(source.EndsWith(EnUsDictionaryPath, StringComparison.OrdinalIgnoreCase) ||
|
||||
source.EndsWith(ZhCnDictionaryPath, StringComparison.OrdinalIgnoreCase));
|
||||
}
|
||||
|
||||
private static bool TryGetString(ResourceDictionary dictionary, string key, out string value)
|
||||
{
|
||||
if (dictionary.Contains(key) && dictionary[key] is string text && !string.IsNullOrEmpty(text))
|
||||
{
|
||||
value = text;
|
||||
return true;
|
||||
}
|
||||
|
||||
value = string.Empty;
|
||||
return false;
|
||||
}
|
||||
|
||||
private bool TryGetStringFromOverrides(string language, string key, out string value)
|
||||
{
|
||||
var source = language == SimplifiedChineseLanguage ? this.chineseStrings : this.englishStrings;
|
||||
if (source != null && source.TryGetValue(key, out var text) && !string.IsNullOrEmpty(text))
|
||||
{
|
||||
value = text;
|
||||
return true;
|
||||
}
|
||||
|
||||
value = string.Empty;
|
||||
return false;
|
||||
}
|
||||
|
||||
private bool TryGetStringFromApplicationResources(string key, out string value)
|
||||
{
|
||||
value = string.Empty;
|
||||
var app = System.Windows.Application.Current;
|
||||
if (app == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
if (app.Dispatcher.CheckAccess())
|
||||
{
|
||||
return TryGetApplicationResourceValue(app, key, out value);
|
||||
}
|
||||
|
||||
var found = false;
|
||||
var dispatcherValue = string.Empty;
|
||||
app.Dispatcher.Invoke(() =>
|
||||
{
|
||||
found = TryGetApplicationResourceValue(app, key, out dispatcherValue);
|
||||
});
|
||||
value = dispatcherValue;
|
||||
return found;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
this.logger.LogDebug(ex, "Failed to read localized resource {Key}", key);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
private static bool TryGetApplicationResourceValue(System.Windows.Application app, string key, out string value)
|
||||
{
|
||||
if (app.Resources.Contains(key) && app.Resources[key] is string text && !string.IsNullOrEmpty(text))
|
||||
{
|
||||
value = text;
|
||||
return true;
|
||||
}
|
||||
|
||||
value = string.Empty;
|
||||
return false;
|
||||
}
|
||||
|
||||
private bool TryGetStringFromEnglishFallbackDictionary(string key, out string value)
|
||||
{
|
||||
value = string.Empty;
|
||||
try
|
||||
{
|
||||
this.englishFallbackDictionary ??= new ResourceDictionary
|
||||
{
|
||||
Source = new Uri(EnUsDictionaryPath, UriKind.Relative),
|
||||
};
|
||||
return TryGetString(this.englishFallbackDictionary, key, out value);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
this.logger.LogDebug(ex, "Failed to load English fallback localization dictionary");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,7 @@ namespace ThreadPilot.Services
|
||||
private readonly ILogger<NotificationService> logger;
|
||||
private readonly IApplicationSettingsService settingsService;
|
||||
private readonly ISystemTrayService systemTrayService;
|
||||
private readonly ILocalizationService localizationService;
|
||||
private readonly List<NotificationModel> notificationHistory;
|
||||
private ApplicationSettingsModel settings;
|
||||
private bool disposed = false;
|
||||
@@ -50,11 +51,13 @@ namespace ThreadPilot.Services
|
||||
public NotificationService(
|
||||
ILogger<NotificationService> logger,
|
||||
IApplicationSettingsService settingsService,
|
||||
ISystemTrayService systemTrayService)
|
||||
ISystemTrayService systemTrayService,
|
||||
ILocalizationService localizationService)
|
||||
{
|
||||
this.logger = logger ?? throw new ArgumentNullException(nameof(logger));
|
||||
this.settingsService = settingsService ?? throw new ArgumentNullException(nameof(settingsService));
|
||||
this.systemTrayService = systemTrayService ?? throw new ArgumentNullException(nameof(systemTrayService));
|
||||
this.localizationService = localizationService ?? throw new ArgumentNullException(nameof(localizationService));
|
||||
|
||||
this.notificationHistory = new List<NotificationModel>();
|
||||
this.settings = this.settingsService.Settings;
|
||||
@@ -102,6 +105,9 @@ namespace ThreadPilot.Services
|
||||
|
||||
try
|
||||
{
|
||||
notification.Title = this.TryGetLocalizedNotificationString(notification.Title);
|
||||
notification.Message = this.TryGetLocalizedNotificationString(notification.Message);
|
||||
|
||||
// Check if notifications are enabled
|
||||
if (!this.AreNotificationsEnabled(notification.Type))
|
||||
{
|
||||
@@ -176,11 +182,18 @@ namespace ThreadPilot.Services
|
||||
return;
|
||||
}
|
||||
|
||||
var title = this.GetLocalizedString("Notification_PowerPlanChangedTitle");
|
||||
var message = string.IsNullOrEmpty(processName)
|
||||
? $"Power plan changed from '{oldPlan}' to '{newPlan}'"
|
||||
: $"Power plan changed to '{newPlan}' for process '{processName}'";
|
||||
? string.Format(
|
||||
this.GetLocalizedString("Notification_PowerPlanChangedFormat"),
|
||||
oldPlan,
|
||||
newPlan)
|
||||
: string.Format(
|
||||
this.GetLocalizedString("Notification_PowerPlanChangedProcessFormat"),
|
||||
newPlan,
|
||||
processName);
|
||||
|
||||
var notification = new NotificationModel("Power Plan Changed", message, NotificationType.PowerPlanChange)
|
||||
var notification = new NotificationModel(title, message, NotificationType.PowerPlanChange)
|
||||
{
|
||||
Category = "PowerPlan",
|
||||
SourceService = "PowerPlanService",
|
||||
@@ -197,7 +210,9 @@ namespace ThreadPilot.Services
|
||||
return;
|
||||
}
|
||||
|
||||
var title = isEnabled ? "Process Monitoring Enabled" : "Process Monitoring Disabled";
|
||||
var title = isEnabled
|
||||
? this.GetLocalizedString("Notification_ProcessMonitoringEnabled")
|
||||
: this.GetLocalizedString("Notification_ProcessMonitoringDisabled");
|
||||
var type = isEnabled ? NotificationType.Success : NotificationType.Warning;
|
||||
|
||||
var notification = new NotificationModel(title, message, type)
|
||||
@@ -212,9 +227,15 @@ namespace ThreadPilot.Services
|
||||
|
||||
public async Task ShowCpuAffinityNotificationAsync(string processName, string affinityInfo)
|
||||
{
|
||||
var title = this.GetLocalizedString("Notification_CpuAffinityAppliedTitle");
|
||||
var message = string.Format(
|
||||
this.GetLocalizedString("Notification_CpuAffinityAppliedFormat"),
|
||||
processName,
|
||||
affinityInfo);
|
||||
|
||||
var notification = new NotificationModel(
|
||||
"CPU Affinity Applied",
|
||||
$"CPU affinity set for '{processName}': {affinityInfo}",
|
||||
title,
|
||||
message,
|
||||
NotificationType.CpuAffinity)
|
||||
{
|
||||
Category = "CpuAffinity",
|
||||
@@ -396,6 +417,63 @@ namespace ThreadPilot.Services
|
||||
this.UpdateSettings(e.NewSettings);
|
||||
}
|
||||
|
||||
private string GetLocalizedString(string key)
|
||||
{
|
||||
var localized = this.localizationService.GetString(key);
|
||||
return string.IsNullOrEmpty(localized) ? key : localized;
|
||||
}
|
||||
|
||||
private string TryGetLocalizedNotificationString(string input)
|
||||
{
|
||||
if (string.IsNullOrEmpty(input))
|
||||
{
|
||||
return input;
|
||||
}
|
||||
|
||||
var key = input switch
|
||||
{
|
||||
"Game Boost Activated" => "Notification_GameBoostActivatedTitle",
|
||||
"Game Boost Deactivated" => "Notification_GameBoostDeactivatedTitle",
|
||||
"Process Monitor Error" => "Notification_ProcessMonitorErrorTitle",
|
||||
"Affinity blocked" => "Notification_AffinityBlockedTitle",
|
||||
"Priority blocked" => "Notification_PriorityBlockedTitle",
|
||||
_ => null,
|
||||
};
|
||||
|
||||
if (key != null)
|
||||
{
|
||||
var localized = this.GetLocalizedString(key);
|
||||
if (!string.Equals(localized, key, StringComparison.Ordinal))
|
||||
{
|
||||
return localized;
|
||||
}
|
||||
}
|
||||
|
||||
const string GameBoostActivatedPrefix = "Game Boost mode activated for ";
|
||||
if (input.StartsWith(GameBoostActivatedPrefix, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
var processName = input[GameBoostActivatedPrefix.Length..];
|
||||
var format = this.GetLocalizedString("Notification_GameBoostActivatedFormat");
|
||||
if (!string.Equals(format, "Notification_GameBoostActivatedFormat", StringComparison.Ordinal))
|
||||
{
|
||||
return string.Format(format, processName);
|
||||
}
|
||||
}
|
||||
|
||||
const string GameBoostDeactivatedPrefix = "Game Boost mode deactivated after ";
|
||||
if (input.StartsWith(GameBoostDeactivatedPrefix, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
var duration = input[GameBoostDeactivatedPrefix.Length..];
|
||||
var format = this.GetLocalizedString("Notification_GameBoostDeactivatedFormat");
|
||||
if (!string.Equals(format, "Notification_GameBoostDeactivatedFormat", StringComparison.Ordinal))
|
||||
{
|
||||
return string.Format(format, duration);
|
||||
}
|
||||
}
|
||||
|
||||
return input;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (this.disposed)
|
||||
@@ -416,4 +494,3 @@ namespace ThreadPilot.Services
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -165,6 +165,7 @@ namespace ThreadPilot.Services
|
||||
// Application configuration and settings
|
||||
services.AddSingleton<IApplicationSettingsService, ApplicationSettingsService>();
|
||||
services.AddSingleton<IThemeService, ThemeService>();
|
||||
services.AddSingleton<ILocalizationService, LocalizationService>();
|
||||
services.AddSingleton<ISelfResourceManagementService, SelfResourceManagementService>();
|
||||
|
||||
// User interface services
|
||||
|
||||
@@ -13,6 +13,21 @@ namespace ThreadPilot.Core.Tests
|
||||
Assert.False(settings.StartMinimized);
|
||||
Assert.True(settings.ApplyPersistentRulesOnProcessStart);
|
||||
Assert.False(settings.HasSeenStartupMinimizedSuggestion);
|
||||
Assert.Equal("en-US", settings.Language);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CopyFrom_CopiesLanguage()
|
||||
{
|
||||
var source = new ApplicationSettingsModel
|
||||
{
|
||||
Language = "zh-CN",
|
||||
};
|
||||
var target = new ApplicationSettingsModel();
|
||||
|
||||
target.CopyFrom(source);
|
||||
|
||||
Assert.Equal("zh-CN", target.Language);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
@@ -26,6 +26,7 @@ namespace ThreadPilot.Core.Tests
|
||||
Assert.False(service.Settings.EnableSelfAffinityLimit);
|
||||
Assert.True(service.Settings.AutostartWithWindows);
|
||||
Assert.False(service.Settings.StartMinimized);
|
||||
Assert.Equal("en-US", service.Settings.Language);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -148,6 +149,42 @@ namespace ThreadPilot.Core.Tests
|
||||
Assert.True(service.Settings.HasSeenStartupMinimizedSuggestion);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task LoadSettingsAsync_PreservesSupportedLanguage()
|
||||
{
|
||||
var storage = new FakeSettingsStorage();
|
||||
storage.Files[TestPaths.SettingsFilePath] = """
|
||||
{
|
||||
"language": "zh-CN"
|
||||
}
|
||||
""";
|
||||
var service = CreateService(storage);
|
||||
|
||||
await service.LoadSettingsAsync();
|
||||
|
||||
Assert.Equal("zh-CN", service.Settings.Language);
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData("")]
|
||||
[InlineData(" ")]
|
||||
[InlineData("fr-FR")]
|
||||
[InlineData("zh")]
|
||||
public async Task LoadSettingsAsync_FallsBackToEnglish_WhenLanguageIsInvalid(string language)
|
||||
{
|
||||
var storage = new FakeSettingsStorage();
|
||||
storage.Files[TestPaths.SettingsFilePath] = $$"""
|
||||
{
|
||||
"language": "{{language}}"
|
||||
}
|
||||
""";
|
||||
var service = CreateService(storage);
|
||||
|
||||
await service.LoadSettingsAsync();
|
||||
|
||||
Assert.Equal("en-US", service.Settings.Language);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ImportSettingsAsync_Throws_WhenFileIsMissing()
|
||||
{
|
||||
|
||||
@@ -0,0 +1,200 @@
|
||||
namespace ThreadPilot.Core.Tests
|
||||
{
|
||||
using System.Reflection;
|
||||
using System.Windows;
|
||||
using Microsoft.Extensions.Logging.Abstractions;
|
||||
using ThreadPilot.Services;
|
||||
|
||||
public sealed class LocalizationServiceTests
|
||||
{
|
||||
[Fact]
|
||||
public void Constructor_DefaultsToEnglish()
|
||||
{
|
||||
var service = CreateService();
|
||||
|
||||
Assert.Equal("en-US", service.CurrentLanguage);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ApplyLanguage_AppliesChinese_WhenSupported()
|
||||
{
|
||||
var service = CreateService();
|
||||
|
||||
service.ApplyLanguage("zh-CN");
|
||||
|
||||
Assert.Equal("zh-CN", service.CurrentLanguage);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ApplyLanguage_FiresLanguageChangedWithNormalizedLanguage()
|
||||
{
|
||||
var service = CreateService();
|
||||
var observedLanguages = new List<string>();
|
||||
service.LanguageChanged += (_, language) => observedLanguages.Add(language);
|
||||
|
||||
service.ApplyLanguage("zh-cn");
|
||||
service.ApplyLanguage("unsupported");
|
||||
|
||||
Assert.Equal(new[] { "zh-CN", "en-US" }, observedLanguages);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ApplyLanguage_RemovesDuplicateAndOldLocaleDictionaries()
|
||||
{
|
||||
var resources = new ResourceDictionary();
|
||||
var nonLocaleDictionary = CreateDictionaryWithSource("Themes/FluentDark.xaml");
|
||||
var oldEnglishDictionary = CreateDictionaryWithSource("Locales/en-US.xaml");
|
||||
var duplicateChineseDictionary = CreateDictionaryWithSource("Locales/zh-CN.xaml");
|
||||
var matchingChineseDictionary = CreateDictionaryWithSource("Locales/zh-CN.xaml");
|
||||
resources.MergedDictionaries.Add(nonLocaleDictionary);
|
||||
resources.MergedDictionaries.Add(oldEnglishDictionary);
|
||||
resources.MergedDictionaries.Add(duplicateChineseDictionary);
|
||||
resources.MergedDictionaries.Add(matchingChineseDictionary);
|
||||
var service = CreateService();
|
||||
|
||||
InvokeApplyLanguageDictionary(service, resources, new Uri("Locales/zh-CN.xaml", UriKind.Relative));
|
||||
|
||||
Assert.Equal(2, resources.MergedDictionaries.Count);
|
||||
Assert.Same(matchingChineseDictionary, resources.MergedDictionaries[0]);
|
||||
Assert.Same(nonLocaleDictionary, resources.MergedDictionaries[1]);
|
||||
Assert.DoesNotContain(resources.MergedDictionaries, dictionary => ReferenceEquals(dictionary, oldEnglishDictionary));
|
||||
Assert.DoesNotContain(resources.MergedDictionaries, dictionary => ReferenceEquals(dictionary, duplicateChineseDictionary));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void GetString_UsesCurrentLanguageOverrideBeforeEnglishFallback()
|
||||
{
|
||||
var service = CreateService(
|
||||
new Dictionary<string, string>
|
||||
{
|
||||
["Shared_Key"] = "English",
|
||||
},
|
||||
new Dictionary<string, string>
|
||||
{
|
||||
["Shared_Key"] = "Chinese",
|
||||
});
|
||||
service.ApplyLanguage("zh-CN");
|
||||
|
||||
var result = service.GetString("Shared_Key");
|
||||
|
||||
Assert.Equal("Chinese", result);
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(null)]
|
||||
[InlineData("")]
|
||||
[InlineData(" ")]
|
||||
[InlineData("fr-FR")]
|
||||
[InlineData("zh")]
|
||||
public void ApplyLanguage_FallsBackToEnglish_WhenLanguageIsInvalid(string? language)
|
||||
{
|
||||
var service = CreateService();
|
||||
service.ApplyLanguage("zh-CN");
|
||||
|
||||
service.ApplyLanguage(language);
|
||||
|
||||
Assert.Equal("en-US", service.CurrentLanguage);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void GetString_UsesEnglishFallback_WhenActiveLanguageMissesKey()
|
||||
{
|
||||
var service = CreateService(
|
||||
new Dictionary<string, string>
|
||||
{
|
||||
["Shared_Key"] = "English fallback",
|
||||
},
|
||||
new Dictionary<string, string>());
|
||||
service.ApplyLanguage("zh-CN");
|
||||
|
||||
var result = service.GetString("Shared_Key");
|
||||
|
||||
Assert.Equal("English fallback", result);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void GetString_ReturnsKey_WhenNoTranslationExists()
|
||||
{
|
||||
var service = CreateService();
|
||||
|
||||
var result = service.GetString("Missing_Key");
|
||||
|
||||
Assert.Equal("Missing_Key", result);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void GetString_ReturnsEmpty_WhenKeyIsBlank()
|
||||
{
|
||||
var service = CreateService();
|
||||
|
||||
Assert.Equal(string.Empty, service.GetString(string.Empty));
|
||||
Assert.Equal(string.Empty, service.GetString(" "));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void LocaleFiles_DefineEnglishDefaultAndOptionalChineseLanguageLabels()
|
||||
{
|
||||
var root = FindRepositoryRoot();
|
||||
var english = File.ReadAllText(Path.Combine(root, "Locales", "en-US.xaml"));
|
||||
var chinese = File.ReadAllText(Path.Combine(root, "Locales", "zh-CN.xaml"));
|
||||
var appXaml = File.ReadAllText(Path.Combine(root, "App.xaml"));
|
||||
|
||||
Assert.Contains("Source=\"Locales/en-US.xaml\"", appXaml, StringComparison.Ordinal);
|
||||
Assert.DoesNotContain("Source=\"Locales/zh-CN.xaml\"", appXaml, StringComparison.Ordinal);
|
||||
Assert.Contains("x:Key=\"SettingsView_LanguageEnUs\"", english, StringComparison.Ordinal);
|
||||
Assert.Contains("x:Key=\"SettingsView_LanguageZhCn\"", english, StringComparison.Ordinal);
|
||||
Assert.Contains("x:Key=\"SettingsView_LanguageEnUs\"", chinese, StringComparison.Ordinal);
|
||||
Assert.Contains("x:Key=\"SettingsView_LanguageZhCn\"", chinese, StringComparison.Ordinal);
|
||||
}
|
||||
|
||||
private static LocalizationService CreateService(
|
||||
IReadOnlyDictionary<string, string>? englishStrings = null,
|
||||
IReadOnlyDictionary<string, string>? chineseStrings = null)
|
||||
{
|
||||
return new LocalizationService(
|
||||
NullLogger<LocalizationService>.Instance,
|
||||
englishStrings,
|
||||
chineseStrings);
|
||||
}
|
||||
|
||||
private static string FindRepositoryRoot()
|
||||
{
|
||||
var directory = new DirectoryInfo(AppContext.BaseDirectory);
|
||||
while (directory != null && !File.Exists(Path.Combine(directory.FullName, "ThreadPilot_1.sln")))
|
||||
{
|
||||
directory = directory.Parent;
|
||||
}
|
||||
|
||||
return directory?.FullName ?? throw new InvalidOperationException("Repository root was not found.");
|
||||
}
|
||||
|
||||
private static ResourceDictionary CreateDictionaryWithSource(string source)
|
||||
{
|
||||
var dictionary = new ResourceDictionary();
|
||||
var sourceField = typeof(ResourceDictionary).GetField("_source", BindingFlags.Instance | BindingFlags.NonPublic);
|
||||
if (sourceField == null)
|
||||
{
|
||||
throw new InvalidOperationException("ResourceDictionary source field was not found.");
|
||||
}
|
||||
|
||||
sourceField.SetValue(dictionary, new Uri(source, UriKind.Relative));
|
||||
return dictionary;
|
||||
}
|
||||
|
||||
private static void InvokeApplyLanguageDictionary(
|
||||
LocalizationService service,
|
||||
ResourceDictionary resources,
|
||||
Uri targetUri)
|
||||
{
|
||||
var method = typeof(LocalizationService).GetMethod(
|
||||
"ApplyLanguageDictionary",
|
||||
BindingFlags.Instance | BindingFlags.NonPublic);
|
||||
if (method == null)
|
||||
{
|
||||
throw new InvalidOperationException("ApplyLanguageDictionary method was not found.");
|
||||
}
|
||||
|
||||
method.Invoke(service, new object[] { resources, targetUri });
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
namespace ThreadPilot.Core.Tests
|
||||
{
|
||||
using Microsoft.Extensions.Logging.Abstractions;
|
||||
using Moq;
|
||||
using ThreadPilot.Models;
|
||||
using ThreadPilot.Services;
|
||||
|
||||
public sealed class NotificationServiceLocalizationTests
|
||||
{
|
||||
[Fact]
|
||||
public async Task ShowPowerPlanChangeNotificationAsync_UsesLocalizedTitleAndFormat()
|
||||
{
|
||||
var harness = new Harness(new Dictionary<string, string>
|
||||
{
|
||||
["Notification_PowerPlanChangedTitle"] = "Localized power title",
|
||||
["Notification_PowerPlanChangedFormat"] = "Changed {0} -> {1}",
|
||||
});
|
||||
var service = harness.CreateService();
|
||||
|
||||
await service.ShowPowerPlanChangeNotificationAsync("Balanced", "Performance");
|
||||
|
||||
var notification = Assert.Single(service.NotificationHistory);
|
||||
Assert.Equal("Localized power title", notification.Title);
|
||||
Assert.Equal("Changed Balanced -> Performance", notification.Message);
|
||||
harness.Tray.Verify(
|
||||
tray => tray.ShowTrayNotification(
|
||||
"Localized power title",
|
||||
"Changed Balanced -> Performance",
|
||||
NotificationType.PowerPlanChange,
|
||||
It.IsAny<int>()),
|
||||
Times.Once);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ShowPowerPlanChangeNotificationAsync_UsesLocalizedProcessFormat()
|
||||
{
|
||||
var harness = new Harness(new Dictionary<string, string>
|
||||
{
|
||||
["Notification_PowerPlanChangedTitle"] = "Power",
|
||||
["Notification_PowerPlanChangedProcessFormat"] = "{1}: {0}",
|
||||
});
|
||||
var service = harness.CreateService();
|
||||
|
||||
await service.ShowPowerPlanChangeNotificationAsync("Balanced", "Performance", "game.exe");
|
||||
|
||||
var notification = Assert.Single(service.NotificationHistory);
|
||||
Assert.Equal("Power", notification.Title);
|
||||
Assert.Equal("game.exe: Performance", notification.Message);
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(true, "Enabled localized", NotificationType.Success)]
|
||||
[InlineData(false, "Disabled localized", NotificationType.Warning)]
|
||||
public async Task ShowProcessMonitoringNotificationAsync_UsesLocalizedTitle(bool isEnabled, string expectedTitle, NotificationType expectedType)
|
||||
{
|
||||
var harness = new Harness(new Dictionary<string, string>
|
||||
{
|
||||
["Notification_ProcessMonitoringEnabled"] = "Enabled localized",
|
||||
["Notification_ProcessMonitoringDisabled"] = "Disabled localized",
|
||||
});
|
||||
var service = harness.CreateService();
|
||||
|
||||
await service.ShowProcessMonitoringNotificationAsync("Monitoring changed", isEnabled);
|
||||
|
||||
var notification = Assert.Single(service.NotificationHistory);
|
||||
Assert.Equal(expectedTitle, notification.Title);
|
||||
Assert.Equal("Monitoring changed", notification.Message);
|
||||
Assert.Equal(expectedType, notification.Type);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ShowCpuAffinityNotificationAsync_UsesLocalizedTitleAndFormat()
|
||||
{
|
||||
var harness = new Harness(new Dictionary<string, string>
|
||||
{
|
||||
["Notification_CpuAffinityAppliedTitle"] = "Affinity localized",
|
||||
["Notification_CpuAffinityAppliedFormat"] = "{0} uses {1}",
|
||||
});
|
||||
var service = harness.CreateService();
|
||||
|
||||
await service.ShowCpuAffinityNotificationAsync("game.exe", "CPU 0, 1");
|
||||
|
||||
var notification = Assert.Single(service.NotificationHistory);
|
||||
Assert.Equal("Affinity localized", notification.Title);
|
||||
Assert.Equal("game.exe uses CPU 0, 1", notification.Message);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ShowNotificationAsync_LocalizesKnownAndDynamicGameBoostStrings()
|
||||
{
|
||||
var harness = new Harness(new Dictionary<string, string>
|
||||
{
|
||||
["Notification_GameBoostActivatedTitle"] = "Boost title",
|
||||
["Notification_GameBoostActivatedFormat"] = "Boosted {0}",
|
||||
});
|
||||
var service = harness.CreateService();
|
||||
|
||||
await service.ShowNotificationAsync(
|
||||
"Game Boost Activated",
|
||||
"Game Boost mode activated for game.exe",
|
||||
NotificationType.Information);
|
||||
|
||||
var notification = Assert.Single(service.NotificationHistory);
|
||||
Assert.Equal("Boost title", notification.Title);
|
||||
Assert.Equal("Boosted game.exe", notification.Message);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ShowNotificationAsync_KeepsOriginalText_WhenLocalizationKeyIsMissing()
|
||||
{
|
||||
var harness = new Harness(new Dictionary<string, string>());
|
||||
var service = harness.CreateService();
|
||||
|
||||
await service.ShowNotificationAsync(
|
||||
"Affinity blocked",
|
||||
"Unmapped notification message",
|
||||
NotificationType.Warning);
|
||||
|
||||
var notification = Assert.Single(service.NotificationHistory);
|
||||
Assert.Equal("Affinity blocked", notification.Title);
|
||||
Assert.Equal("Unmapped notification message", notification.Message);
|
||||
}
|
||||
|
||||
private sealed class Harness
|
||||
{
|
||||
private readonly IReadOnlyDictionary<string, string> localizedStrings;
|
||||
|
||||
public Mock<IApplicationSettingsService> Settings { get; } = new(MockBehavior.Loose);
|
||||
|
||||
public Mock<ISystemTrayService> Tray { get; } = new(MockBehavior.Loose);
|
||||
|
||||
public Mock<ILocalizationService> Localization { get; } = new(MockBehavior.Loose);
|
||||
|
||||
public Harness(IReadOnlyDictionary<string, string> localizedStrings)
|
||||
{
|
||||
this.localizedStrings = localizedStrings;
|
||||
this.Settings.SetupGet(service => service.Settings).Returns(new ApplicationSettingsModel
|
||||
{
|
||||
EnableToastNotifications = false,
|
||||
});
|
||||
this.Localization
|
||||
.Setup(service => service.GetString(It.IsAny<string>()))
|
||||
.Returns<string>(this.GetLocalizedString);
|
||||
}
|
||||
|
||||
public NotificationService CreateService()
|
||||
{
|
||||
return new NotificationService(
|
||||
NullLogger<NotificationService>.Instance,
|
||||
this.Settings.Object,
|
||||
this.Tray.Object,
|
||||
this.Localization.Object);
|
||||
}
|
||||
|
||||
private string GetLocalizedString(string key)
|
||||
{
|
||||
return this.localizedStrings.TryGetValue(key, out var value) ? value : key;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
namespace ThreadPilot.Core.Tests
|
||||
{
|
||||
using System.Collections.ObjectModel;
|
||||
using CommunityToolkit.Mvvm.Input;
|
||||
using Microsoft.Extensions.Logging.Abstractions;
|
||||
using Moq;
|
||||
using ThreadPilot.Models;
|
||||
@@ -80,6 +81,45 @@ namespace ThreadPilot.Core.Tests
|
||||
Assert.Contains(entries, entry => entry.Message == "[Settings] Apply saved rules at process start enabled.");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ChangingLanguage_AppliesLanguageAndLogsVisibleActivityEntry()
|
||||
{
|
||||
var harness = new Harness();
|
||||
var viewModel = harness.CreateViewModel();
|
||||
|
||||
viewModel.Settings.Language = "zh-CN";
|
||||
|
||||
harness.Localization.Verify(service => service.ApplyLanguage("zh-CN"), Times.Once);
|
||||
harness.Logging.Verify(
|
||||
service => service.LogUserActionAsync(
|
||||
"LanguageChanged",
|
||||
"Language changed to Simplified Chinese",
|
||||
null),
|
||||
Times.Once);
|
||||
var entry = Assert.Single(await harness.Audit.GetEntriesAsync());
|
||||
Assert.Equal("Language changed to Simplified Chinese", entry.Message);
|
||||
Assert.Equal("Language changed to Simplified Chinese.", viewModel.StatusMessage);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task SaveSettingsCommand_PersistsSelectedLanguage()
|
||||
{
|
||||
var harness = new Harness();
|
||||
ApplicationSettingsModel? savedSettings = null;
|
||||
harness.SettingsService
|
||||
.Setup(service => service.UpdateSettingsAsync(It.IsAny<ApplicationSettingsModel>()))
|
||||
.Callback<ApplicationSettingsModel>(settings => savedSettings = (ApplicationSettingsModel)settings.Clone())
|
||||
.Returns(Task.CompletedTask);
|
||||
var viewModel = harness.CreateViewModel();
|
||||
viewModel.Settings.Language = "zh-CN";
|
||||
|
||||
await ((IAsyncRelayCommand)viewModel.SaveSettingsCommand).ExecuteAsync(null);
|
||||
|
||||
Assert.NotNull(savedSettings);
|
||||
Assert.Equal("zh-CN", savedSettings.Language);
|
||||
Assert.False(viewModel.HasUnsavedChanges);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void SettingsView_ExposesPersistentRuleAutoApplyToggle()
|
||||
{
|
||||
@@ -94,11 +134,30 @@ namespace ThreadPilot.Core.Tests
|
||||
"SettingsView.xaml");
|
||||
var serialized = File.ReadAllText(settingsViewPath);
|
||||
|
||||
Assert.Contains("Text=\"Rules & automation\" Style=\"{StaticResource SectionHeaderStyle}\"", serialized, StringComparison.Ordinal);
|
||||
Assert.Contains("Text=\"Apply saved rules when matching processes start\"", serialized, StringComparison.Ordinal);
|
||||
Assert.Contains("Text=\"{DynamicResource SettingsView_RulesAutomation}\" Style=\"{StaticResource SectionHeaderStyle}\"", serialized, StringComparison.Ordinal);
|
||||
Assert.Contains("Text=\"{DynamicResource SettingsView_ApplyOnStart}\"", serialized, StringComparison.Ordinal);
|
||||
Assert.Contains("TextWrapping=\"Wrap\"", serialized, StringComparison.Ordinal);
|
||||
Assert.Contains("IsChecked=\"{Binding Settings.ApplyPersistentRulesOnProcessStart}\"", serialized, StringComparison.Ordinal);
|
||||
Assert.Contains("This does not install a Windows Service and does not use registry/IFEO persistence.", serialized, StringComparison.Ordinal);
|
||||
Assert.Contains("Text=\"{DynamicResource SettingsView_ApplyOnStartDescription}\"", serialized, StringComparison.Ordinal);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void SettingsView_ExposesOptionalChineseLanguageSelection()
|
||||
{
|
||||
var settingsViewPath = Path.Combine(
|
||||
AppContext.BaseDirectory,
|
||||
"..",
|
||||
"..",
|
||||
"..",
|
||||
"..",
|
||||
"..",
|
||||
"Views",
|
||||
"SettingsView.xaml");
|
||||
var serialized = File.ReadAllText(settingsViewPath);
|
||||
|
||||
Assert.Contains("SelectedValue=\"{Binding Settings.Language}\"", serialized, StringComparison.Ordinal);
|
||||
Assert.Contains("Tag=\"en-US\"", serialized, StringComparison.Ordinal);
|
||||
Assert.Contains("Tag=\"zh-CN\"", serialized, StringComparison.Ordinal);
|
||||
}
|
||||
|
||||
private sealed class Harness
|
||||
@@ -121,6 +180,8 @@ namespace ThreadPilot.Core.Tests
|
||||
|
||||
public Mock<ISystemTrayService> Tray { get; } = new(MockBehavior.Loose);
|
||||
|
||||
public Mock<ILocalizationService> Localization { get; } = new(MockBehavior.Loose);
|
||||
|
||||
public Mock<IEnhancedLoggingService> Logging { get; } = new(MockBehavior.Loose);
|
||||
|
||||
public ActivityAuditService Audit { get; } = new(NullLogger<ActivityAuditService>.Instance);
|
||||
@@ -133,6 +194,9 @@ namespace ThreadPilot.Core.Tests
|
||||
HasUserThemePreference = initialDarkTheme,
|
||||
};
|
||||
this.SettingsService.SetupGet(service => service.Settings).Returns(this.settings);
|
||||
this.Autostart
|
||||
.Setup(service => service.CheckAutostartStatusAsync())
|
||||
.ReturnsAsync(true);
|
||||
this.PowerPlans
|
||||
.Setup(service => service.GetPowerPlansAsync())
|
||||
.ReturnsAsync(new ObservableCollection<PowerPlanModel>());
|
||||
@@ -159,6 +223,7 @@ namespace ThreadPilot.Core.Tests
|
||||
this.Theme.Object,
|
||||
this.Tray.Object,
|
||||
new GitHubUpdateChecker(new Mock<IGitHubReleaseClient>().Object),
|
||||
this.Localization.Object,
|
||||
this.Logging.Object,
|
||||
this.Audit);
|
||||
}
|
||||
|
||||
@@ -49,6 +49,7 @@ namespace ThreadPilot.ViewModels
|
||||
private readonly IThemeService themeService;
|
||||
private readonly ISystemTrayService systemTrayService;
|
||||
private readonly GitHubUpdateChecker gitHubUpdateChecker;
|
||||
private readonly ILocalizationService localizationService;
|
||||
private ApplicationSettingsModel savedSettingsSnapshot;
|
||||
private bool isSyncingFromService = false;
|
||||
private bool? appliedThemePreference;
|
||||
@@ -106,6 +107,7 @@ namespace ThreadPilot.ViewModels
|
||||
IThemeService themeService,
|
||||
ISystemTrayService systemTrayService,
|
||||
GitHubUpdateChecker gitHubUpdateChecker,
|
||||
ILocalizationService localizationService,
|
||||
IEnhancedLoggingService? enhancedLoggingService = null,
|
||||
IActivityAuditService? activityAuditService = null)
|
||||
: base(logger, enhancedLoggingService, activityAuditService)
|
||||
@@ -119,6 +121,7 @@ namespace ThreadPilot.ViewModels
|
||||
this.themeService = themeService ?? throw new ArgumentNullException(nameof(themeService));
|
||||
this.systemTrayService = systemTrayService ?? throw new ArgumentNullException(nameof(systemTrayService));
|
||||
this.gitHubUpdateChecker = gitHubUpdateChecker ?? throw new ArgumentNullException(nameof(gitHubUpdateChecker));
|
||||
this.localizationService = localizationService ?? throw new ArgumentNullException(nameof(localizationService));
|
||||
|
||||
// Get version and strip the git commit hash (everything after '+')
|
||||
var rawVersion = typeof(App).Assembly
|
||||
@@ -179,6 +182,13 @@ namespace ThreadPilot.ViewModels
|
||||
return;
|
||||
}
|
||||
|
||||
if (string.Equals(e.PropertyName, nameof(ApplicationSettingsModel.Language), StringComparison.Ordinal))
|
||||
{
|
||||
this.UpdatePendingChangesState();
|
||||
this.ApplyLanguagePreference(this.Settings.Language, logUserAction: true);
|
||||
return;
|
||||
}
|
||||
|
||||
if (string.Equals(e.PropertyName, nameof(ApplicationSettingsModel.ApplyPersistentRulesOnProcessStart), StringComparison.Ordinal))
|
||||
{
|
||||
this.UpdatePendingChangesState();
|
||||
@@ -220,6 +230,31 @@ namespace ThreadPilot.ViewModels
|
||||
}
|
||||
}
|
||||
|
||||
private void ApplyLanguagePreference(string language, bool logUserAction)
|
||||
{
|
||||
var normalizedLanguage = LocalizationService.NormalizeLanguage(language);
|
||||
try
|
||||
{
|
||||
this.localizationService.ApplyLanguage(normalizedLanguage);
|
||||
this.Settings.Language = normalizedLanguage;
|
||||
var languageName = normalizedLanguage == LocalizationService.SimplifiedChineseLanguage
|
||||
? "Simplified Chinese"
|
||||
: "English";
|
||||
this.StatusMessage = $"Language changed to {languageName}.";
|
||||
|
||||
if (logUserAction)
|
||||
{
|
||||
_ = this.LogUserActionAsync("LanguageChanged", $"Language changed to {languageName}");
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
this.StatusMessage = "Failed to change language.";
|
||||
this.Logger.LogError(ex, "Failed to apply language preference {Language}", normalizedLanguage);
|
||||
_ = this.LogUserActionAsync("LanguageChangeFailed", $"Failed to change language to {normalizedLanguage}: {ex.Message}");
|
||||
}
|
||||
}
|
||||
|
||||
partial void OnHasUnsavedChangesChanged(bool value)
|
||||
{
|
||||
OnPropertyChanged(nameof(CanSaveSettings));
|
||||
@@ -279,6 +314,7 @@ namespace ThreadPilot.ViewModels
|
||||
this.Settings.UseDarkTheme = useDarkTheme;
|
||||
this.isSyncingFromService = false;
|
||||
this.ApplyThemePreference(useDarkTheme, logUserAction: false);
|
||||
this.ApplyLanguagePreference(this.Settings.Language, logUserAction: false);
|
||||
|
||||
// Update monitoring services with new settings
|
||||
this.processMonitorManagerService.UpdateSettings();
|
||||
@@ -549,6 +585,7 @@ namespace ThreadPilot.ViewModels
|
||||
this.Settings.UseDarkTheme = useDarkTheme;
|
||||
this.isSyncingFromService = false;
|
||||
this.ApplyThemePreference(useDarkTheme, logUserAction: false);
|
||||
this.ApplyLanguagePreference(this.Settings.Language, logUserAction: false);
|
||||
|
||||
this.SetSavedSettingsSnapshot(this.Settings);
|
||||
this.StatusMessage = "Settings loaded";
|
||||
@@ -590,6 +627,7 @@ namespace ThreadPilot.ViewModels
|
||||
this.Settings.DefaultPowerPlanName = this.cachedDefaultPowerPlanName;
|
||||
}
|
||||
this.SetSavedSettingsSnapshot(this.Settings);
|
||||
this.ApplyLanguagePreference(this.Settings.Language, logUserAction: false);
|
||||
this.StatusMessage = "Settings synchronized";
|
||||
}
|
||||
finally
|
||||
|
||||
+24
-13
@@ -178,49 +178,60 @@
|
||||
|
||||
<!-- Basic Preferences Section -->
|
||||
<StackPanel Width="372" Margin="0,0,16,16">
|
||||
<TextBlock Text="Basic Preferences" Style="{StaticResource SectionHeaderStyle}" Margin="0,0,0,8"/>
|
||||
<TextBlock Text="{DynamicResource SettingsView_BasicPreferences}" Style="{StaticResource SectionHeaderStyle}" Margin="0,0,0,8"/>
|
||||
<Border Style="{StaticResource SettingsCardStyle}">
|
||||
<StackPanel>
|
||||
<TextBlock Text="Autostart" FontWeight="SemiBold" Margin="0,0,0,5"/>
|
||||
<CheckBox Content="Start with Windows"
|
||||
<TextBlock Text="{DynamicResource SettingsView_Autostart}" FontWeight="SemiBold" Margin="0,0,0,5"/>
|
||||
<CheckBox Content="{DynamicResource SettingsView_StartWithWindows}"
|
||||
IsChecked="{Binding Settings.AutostartWithWindows}"
|
||||
Margin="0,0,0,5"/>
|
||||
<TextBlock Text="Automatically start ThreadPilot when Windows starts"
|
||||
<TextBlock Text="{DynamicResource SettingsView_AutostartDescription}"
|
||||
Style="{StaticResource DescriptionStyle}"
|
||||
Margin="20,0,0,15"/>
|
||||
|
||||
<CheckBox Content="Low impact mode in background"
|
||||
<CheckBox Content="{DynamicResource SettingsView_LowImpactMode}"
|
||||
IsChecked="{Binding Settings.EnableSelfLowImpactMode}"
|
||||
Margin="0,0,0,5"/>
|
||||
<TextBlock Text="Lower ThreadPilot's process priority while minimized or hidden to tray."
|
||||
<TextBlock Text="{DynamicResource SettingsView_LowImpactDescription}"
|
||||
Style="{StaticResource DescriptionStyle}"
|
||||
Margin="20,0,0,15"/>
|
||||
|
||||
<Separator Margin="0,0,0,15"/>
|
||||
|
||||
<TextBlock Text="Appearance" FontWeight="SemiBold" Margin="0,0,0,5"/>
|
||||
<CheckBox Content="Use dark theme"
|
||||
<TextBlock Text="{DynamicResource SettingsView_Appearance}" FontWeight="SemiBold" Margin="0,0,0,5"/>
|
||||
<CheckBox Content="{DynamicResource SettingsView_UseDarkTheme}"
|
||||
IsChecked="{Binding Settings.UseDarkTheme}"
|
||||
Margin="0,0,0,5"/>
|
||||
<TextBlock Text="Applies a global Dark/Light theme across all tabs"
|
||||
<TextBlock Text="{DynamicResource SettingsView_ThemeDescription}"
|
||||
Style="{StaticResource DescriptionStyle}"
|
||||
Margin="20,0,0,5"/>
|
||||
|
||||
<Separator Margin="0,10"/>
|
||||
|
||||
<TextBlock Text="{DynamicResource SettingsView_Language}" FontWeight="SemiBold" Margin="0,5,0,5"/>
|
||||
<ComboBox SelectedValue="{Binding Settings.Language}" SelectedValuePath="Tag" Margin="0,0,0,5">
|
||||
<ComboBoxItem Content="{DynamicResource SettingsView_LanguageEnUs}" Tag="en-US"/>
|
||||
<ComboBoxItem Content="{DynamicResource SettingsView_LanguageZhCn}" Tag="zh-CN"/>
|
||||
</ComboBox>
|
||||
<TextBlock Text="{DynamicResource SettingsView_LanguageDescription}"
|
||||
Style="{StaticResource DescriptionStyle}"
|
||||
Margin="0,2,0,5"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</StackPanel>
|
||||
|
||||
<!-- Rules & automation Section -->
|
||||
<StackPanel Width="372" Margin="0,0,16,16">
|
||||
<TextBlock Text="Rules & automation" Style="{StaticResource SectionHeaderStyle}" Margin="0,0,0,8"/>
|
||||
<TextBlock Text="{DynamicResource SettingsView_RulesAutomation}" Style="{StaticResource SectionHeaderStyle}" Margin="0,0,0,8"/>
|
||||
<Border Style="{StaticResource SettingsCardStyle}">
|
||||
<StackPanel>
|
||||
<TextBlock Text="Saved rule auto-apply" FontWeight="SemiBold" Margin="0,0,0,5"/>
|
||||
<TextBlock Text="{DynamicResource SettingsView_RuleAutoApply}" FontWeight="SemiBold" Margin="0,0,0,5"/>
|
||||
<CheckBox IsChecked="{Binding Settings.ApplyPersistentRulesOnProcessStart}"
|
||||
Margin="0,0,0,5">
|
||||
<TextBlock Text="Apply saved rules when matching processes start"
|
||||
<TextBlock Text="{DynamicResource SettingsView_ApplyOnStart}"
|
||||
TextWrapping="Wrap"/>
|
||||
</CheckBox>
|
||||
<TextBlock Text="Applies enabled saved rules while ThreadPilot is running. This does not install a Windows Service and does not use registry/IFEO persistence."
|
||||
<TextBlock Text="{DynamicResource SettingsView_ApplyOnStartDescription}"
|
||||
Style="{StaticResource DescriptionStyle}"
|
||||
Margin="20,0,0,15"/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user