10 Commits
Author SHA1 Message Date
poli0981andClaude Opus 4.7 81563c65f0 fix(v1.4-M3): use GetForegroundWindow inside the WinEvent callback
The original M3 implementation trusted the hwnd parameter the OS
passes to the WinEvent callback. On Win11 that's reliable for
mouse-click activations (single clean event with idObject=OBJID_WINDOW)
but breaks Alt-Tab: the modern Task View overlay fires events whose
hwnd points at a DWM-cloaked window, and the secondary event for the
real destination sometimes carries idObject != 0 (which the previous
'if (idObject != 0) return' filter dropped on the floor).

Net effect for users: enabling auto-switch only updated the selected
target on click, never on Alt-Tab.

Fix:
- Add User32.GetForegroundWindow P/Invoke.
- Inside OnRawForegroundEvent, ignore the event-supplied hwnd and
  poll GetForegroundWindow() to get the real current foreground at
  callback time. The 250 ms debounce already collapses the burst of
  events Alt-Tab fires into a single delivery.
- Drop the idObject != 0 short-circuit. WINEVENT_SKIPOWNPROCESS plus
  the explicit pid check still keep our own windows out.

Also adds a Debug-level log when the watcher fires - makes future
diagnosis easier without touching Information level for end users.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-27 09:30:10 +07:00
poli0981andClaude Opus 4.7 e13b9a6b56 chore(release): bump to v1.4.0
UX polish + accessibility cycle (M1-M7).

- Window fixed at 1200x720, maximize and resize disabled
- Light / Dark / System theme picker
- Auto-switch on Alt-Tab (opt-in)
- 4 new language packs: ja-JP, zh-Hans, ko-KR, es-ES (machine-assisted)
- Friendlier end-user log lines + new lifecycle events
- Tests cover 7 cultures x load-bearing keys (401 cases)

Publish smoke verified locally - .xbf + .pri custom MSBuild target
from v1.3.1 still propagates correctly, all 6 non-English satellite
assemblies materialize under bin/.../publish/{ar,es,ja,ko,vi,zh-Hans}/.

settings.json schema is unchanged (Theme stays a string, default
"System"; Capture.AutoSwitchOnAltTab is a new optional bool that
defaults false on missing). Existing v1.3.x users upgrade in place
without migration.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-27 09:12:07 +07:00
poli0981andClaude Opus 4.7 414d145bc8 test(v1.4-M6): smoke coverage for Win32ForegroundWindowWatcher
Three lifecycle tests - new instance not running, stop-before-start
is a no-op, dispose is idempotent. The actual SetWinEventHook path
needs a UI thread with a live message pump and is exercised manually
during QA on Win11.

The localization completeness matrix already covers all 7 cultures
(401 cases) - that's M6's other tested deliverable, picked up via the
M5 commit. Manual QA matrix (7 cultures x 3 themes x auto-switch
on/off) lives outside the automated suite and runs against the M7
publish output.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-27 09:09:43 +07:00
poli0981andClaude Opus 4.7 1a57c07409 feat(v1.4-M5): add ja-JP, zh-Hans, ko-KR, es-ES language packs
Brings shipped culture count to 7. Translations are machine-assisted
- the About > Translations disclaimer now lists all 6 non-English
packs and invites native-speaker proofreading PRs.

- src/CaptureImage.UI/Resources/Strings/Strings.{ja,zh-Hans,ko,es}.resx
  translate all 56 keys (nav, dashboard, settings, hotkey errors,
  update, about, log viewer, preview, toasts, tray menu).
- ResxLocalizationService.ShippedCultures grows to 7 entries
  (en-US, vi-VN, ar-SA + ja-JP, zh-Hans, ko-KR, es-ES). All 4 new
  cultures are LTR so existing RTL handling for Arabic stays
  unchanged.
- LocalizationCompletenessTests.CultureMatrix iterates all 7 - 401
  test cases now assert every load-bearing key is non-bracketed and
  non-empty in every shipped culture.
- Updated About_TranslationDisclaimerBody in en/vi/ar to reference
  the full set of machine-translated packs.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-27 09:08:12 +07:00
poli0981andClaude Opus 4.7 edf6ab93d7 feat(v1.4-M4): friendlier log messages + new lifecycle log sites
End-user-facing logs are now phrased like a person, not a stack
trace.

New log sites:
- "Picture captured: {Name} ({W}x{H}, {KB} KB) at {Path} [{Format}]"
  on success (replaces "Capture OK -> ...").
- "Picture capture cancelled by user." on OperationCanceledException
  AND CaptureException(Cancelled).
- "Picture capture failed: {Reason}" on other CaptureExceptions.
- "Language switched to {Code} ({Name})." on culture change.
- "Capture sound {State}." on sound toggle.
- "Auto-switch on Alt-Tab {State}." on toggle.

Tone shift on existing sites - "Failed to X" -> "Couldn't X" across
DashboardViewModel, SettingsViewModel, UpdateViewModel, AboutViewModel,
LogViewerViewModel. Structured properties unchanged so log queries and
diagnostics still work.

Logs remain English-only per v1.2 design (file shareability + parser
stability across cultures).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-27 09:00:39 +07:00
poli0981andClaude Opus 4.7 b9ec09c62e feat(v1.4-M3): auto-switch capture target when Alt-Tab
Adds an opt-in foreground watcher so the dashboard's selected
target follows whichever window has focus.

- IForegroundWindowWatcher (Core.Abstractions): contract for
  start/stop + ForegroundChanged event.
- Win32ForegroundWindowWatcher (Infrastructure.Processes):
  SetWinEventHook on EVENT_SYSTEM_FOREGROUND with
  WINEVENT_OUTOFCONTEXT | WINEVENT_SKIPOWNPROCESS, plus a 250ms
  debounce timer so rapid Alt-Tab sequences only fire once on
  the landing window. Holds a strong reference to the delegate
  so the OS doesn't AV when the next event arrives.
- AppSettings.Capture.AutoSwitchOnAltTab (default false) — bool
  toggle. Source-gen STJ picks it up automatically.
- DashboardViewModel: subscribes to ForegroundChanged, marshals
  to UI via IUIThreadDispatcher, matches HWND against the
  Targets collection. Non-target windows keep current selection
  so users who Alt-Tab to Explorer/Settings don't lose context.
  Watcher start/stop driven by ApplyAutoSwitchSetting() called
  from the constructor and OnSettingsChanged.
- SettingsViewModel + SettingsPage: CheckBox with hint copy.
- Strings.{en,vi,ar}.resx: new keys + completeness test.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-27 08:56:05 +07:00
poli0981andClaude Opus 4.7 bef2e2fdc6 feat(v1.4-M2): wire Light/Dark/System theme
AppSettings.Theme was reserved in v1.3 but never applied. M2 hooks
it up:

- SettingsViewModel: SelectedTheme + SupportedThemes (rebuilt on
  culture change so labels stay localized), persists via Update().
- SettingsPage: new Theme ComboBox sandwiched between Language and
  Hotkey, ItemTemplate binds to localized DisplayLabel.
- MainWindow.ApplyTheme: maps "Light"/"Dark"/"System" to ElementTheme,
  hops via DispatcherQueue so callers don't have to.
- App.OnLaunched: applies persisted theme before Activate, then
  re-applies on every ISettingsStore.Changed.
- Strings.resx/vi/ar: 4 new keys (Settings_Theme + System/Light/Dark).
- LocalizationCompletenessTests: theme keys added to LoadBearingKeys.

XAML audit found zero hardcoded brushes - v1.3 migrate already used
ThemeResource throughout, so light/dark flips with no extra cleanup.
Mica Base re-tints with the resolved theme automatically.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-27 08:48:42 +07:00
poli0981andClaude Opus 4.7 1e02f7578e feat(v1.4-M1): fix window size + disable maximize/resize
Cast AppWindow.Presenter to OverlappedPresenter and clear
IsMaximizable + IsResizable. Window stays at 1200x720; minimize
remains enabled for tray flow.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-27 08:41:22 +07:00
poli0981andClaude Opus 4.7 8baefc4a1e chore: remove unused System usings from Program.cs
Leftover cleanup from v1.3 cycle.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-27 08:40:49 +07:00
poli0981andClaude Opus 4.7 4c1dba2dbd fix(release): v1.3.1 hotfix — copy .xbf + .pri to publish output
v1.3.0 shipped broken. The WinUI 3 publish pipeline silently omits two
file types from the self-contained publish output:

  1. .xbf — compiled XAML binary format (MainWindow.xbf, App.xbf, plus
     every Page/UserControl in CaptureImage.UI/Controls/ +
     CaptureImage.UI/Views/). Without these,
     Application.LoadComponent throws XamlParseException at runtime on
     every ms-appx:/// XAML reference.
  2. CaptureImage.App.pri — the app's compiled Package Resource Index.
     Without it, Windows can't resolve any ms-appx:/// URI at all,
     including the WinAppSDK theme resources at
     ms-appx:///Microsoft.UI.Xaml/Themes/themeresources.xaml.

Both files are produced into bin/Release/.../win-x64/ during build but
`dotnet publish --self-contained` skips them. v1.3.0 users got an installer
+ Velopack pack that ran fine, but the new app's MainWindow constructor
threw on InitializeComponent and the UI thread caught it via App.Unhandled-
Exception — process kept running, no window ever appeared. Silent failure.

Bisect:
- Local Debug bin works (XAML compiler outputs to obj/, .NET picks them
  up via Content items at runtime).
- Local Release bin works (.xbf + .pri land in bin/.../win-x64/).
- Local Release publish FAILS (.xbf + .pri NOT propagated to publish
  output) — same failure as the GitHub Actions release.yml.

Fix: add a custom MSBuild target `CopyWinUIArtifactsToPublishDirectory`
(AfterTargets="ComputeFilesToPublish") that explicitly adds every .xbf
plus $(AssemblyName).pri from $(OutDir) to ResolvedFileToPublish,
preserving the cross-assembly subfolder structure the XAML compiler
creates. Verified: publish-fix2/ now contains all 10 expected .xbf
(App, MainWindow, 4 Pages, 2 Controls, LogViewerView, PreviewWindow,
UpdatePage) + CaptureImage.App.pri; launched .exe completes full boot
path through Tray icon initialization.

Bumps version 1.3.0 → 1.3.1. CHANGELOG [1.3.1] hotfix section explains
the bug and recovery path for users already on broken v1.3.0 (Update
tab can't reach them since their window never opens — they need to
download the new Setup.exe manually).

Tests: 320/320 pass (Core 67 + Infra 60 + VM 22 + UI 171).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-26 12:36:20 +07:00
28 changed files with 1255 additions and 31 deletions

No files matched your search

+68
View File
@@ -7,6 +7,74 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [1.4.0] - 2026-04-27
UX polish + accessibility cycle. No breaking changes; settings.json
schema unchanged.
### Added
- **Light / Dark / System theme** picker on the Settings tab. The
preference was already reserved in `AppSettings.Theme` since v1.3
but had no consumer; v1.4 wires it through to
`FrameworkElement.RequestedTheme` and re-applies on every
`ISettingsStore.Changed`. Mica retints automatically with the
resolved theme.
- **Auto-switch on Alt-Tab** (opt-in, default off). When enabled,
the dashboard's selected target follows the OS foreground window
via a `SetWinEventHook(EVENT_SYSTEM_FOREGROUND)` watcher with a
250 ms debounce. Apps not in the target list keep your current
selection. Toggle lives next to the existing capture toggles.
- **Four new language packs**: Japanese (ja-JP), Simplified Chinese
(zh-Hans), Korean (ko-KR), Spanish (es-ES). All machine-assisted —
the About → Translations disclaimer lists every machine-assisted
pack and invites native-speaker proofreading PRs.
- **Friendlier log lines** for end-user lifecycle events: `Picture
captured: {Name} ({W}×{H}, {KB} KB) at {Path} [{Format}]`,
`Picture capture cancelled by user.`, `Language switched to
{Code} ({Name}).`, `Theme switched to {Theme}.`, `Capture sound
{State}.`, `Auto-switch on Alt-Tab {State}.` Logs remain
English-only by design (file shareability + parser stability
across cultures).
### Changed
- **Window is now fixed-size** at 1200×720. Both maximize and
resize are disabled via `OverlappedPresenter.IsMaximizable` /
`IsResizable`; minimize remains enabled for the tray flow.
- **Tone shift on existing log call sites**: "Failed to X" →
"Couldn't X" across `DashboardViewModel`, `SettingsViewModel`,
`UpdateViewModel`, `AboutViewModel`, `LogViewerViewModel`.
Structured properties are unchanged so log queries and external
diagnostics still work.
## [1.3.1] - 2026-04-26
**Critical hotfix.** v1.3.0 shipped broken — the WinUI 3 publish pipeline
omitted `.xbf` (compiled XAML binary) and `CaptureImage.App.pri` (resource
manifest) files from the self-contained publish output, so the installed
app silently failed at MainWindow.InitializeComponent on every launch
(the process stayed alive zombie-style; no window ever appeared). v1.2.x
auto-update users hit this on the first launch after Velopack restart.
### Fixed
- Add a `CopyWinUIArtifactsToPublishDirectory` MSBuild target to
`CaptureImage.App.csproj` that propagates every `.xbf` and the
`CaptureImage.App.pri` from `bin/.../win-x64/` into the publish
output, preserving the cross-assembly XAML resolution subfolders
(`CaptureImage.UI/Controls/`, `CaptureImage.UI/Views/`). `dotnet
publish` for unpackaged WinUI 3 self-contained apps doesn't include
these by default — known WinAppSDK gap.
### Recovery for v1.3.0 users
If you already updated to broken v1.3.0:
- The Update tab can't help (the app's window doesn't open).
- Download `CaptureImage-win-Setup.exe` from the v1.3.1 GitHub Release
and run it — the installer detects the existing install and replaces
it cleanly. Your `settings.json` and capture folder are untouched.
## [1.3.0] - 2026-04-26
UI framework migration from Avalonia 11 to **WinUI 3 (Windows App SDK 1.8.x)**
+6
View File
@@ -48,6 +48,12 @@ public partial class App : Application
// FolderPicker / FilePicker InitializeWithWindow calls.
WindowHostHelper.MainWindow = mainWindow;
_window = mainWindow;
// Apply persisted theme before first paint, then keep it in sync with settings.
var settings = services.GetRequiredService<ISettingsStore>();
mainWindow.ApplyTheme(settings.Current.Theme);
settings.Changed += (_, _) => mainWindow.ApplyTheme(settings.Current.Theme);
_window.Activate();
// Tray host attaches to the live Window. M1 ships a no-op stub; M6 wires the real
+29 -1
View File
@@ -16,7 +16,7 @@
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
<DefineConstants>$(DefineConstants);DISABLE_XAML_GENERATED_MAIN</DefineConstants>
<Version>1.3.0</Version>
<Version>1.4.0</Version>
</PropertyGroup>
<ItemGroup>
@@ -41,6 +41,34 @@
<ProjectReference Include="..\CaptureImage.UI\CaptureImage.UI.csproj" />
</ItemGroup>
<!-- HOTFIX v1.3.1: WinUI 3 publish pipeline misses two file types when building
a self-contained unpackaged app via `dotnet publish`:
1. .xbf files — compiled XAML binary format produced by the WinUI 3 XAML
compiler. Without them, Application.LoadComponent fails on every
ms-appx:/// XAML reference at runtime with XamlParseException.
2. CaptureImage.App.pri — the app's compiled resource manifest. Without it,
Windows can't resolve ms-appx:/// URIs at all (incl. WinAppSDK theme
resources like ms-appx:///Microsoft.UI.Xaml/Themes/themeresources.xaml).
Both files are produced into bin/.../win-x64/ during build but `dotnet publish`
skips them in self-contained mode. v1.3.0 shipped without either and the
window never appeared (silent UI-thread crash; process stayed alive zombie).
This target adds every .xbf and .pri from $(OutDir) to the published file set,
preserving the CaptureImage.UI/Controls and CaptureImage.UI/Views subfolders
the XAML compiler creates for cross-assembly XAML resolution. -->
<Target Name="CopyWinUIArtifactsToPublishDirectory" AfterTargets="ComputeFilesToPublish">
<ItemGroup>
<_WinUIArtifactsToPublish Include="$(OutDir)**\*.xbf" />
<_WinUIArtifactsToPublish Include="$(OutDir)$(AssemblyName).pri" />
<ResolvedFileToPublish Include="@(_WinUIArtifactsToPublish)">
<RelativePath>%(RecursiveDir)%(Filename)%(Extension)</RelativePath>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</ResolvedFileToPublish>
</ItemGroup>
</Target>
<ItemGroup>
<Content Include="..\..\docs\legal\DISCLAIMER.md" Link="docs\legal\DISCLAIMER.md" CopyToOutputDirectory="PreserveNewest" />
<Content Include="..\..\docs\legal\PRIVACY.md" Link="docs\legal\PRIVACY.md" CopyToOutputDirectory="PreserveNewest" />
+1
View File
@@ -75,6 +75,7 @@ internal static class CompositionRoot
services.AddSingleton<IconExtractor>();
services.AddSingleton<IProcessDetector, GameDetector>();
services.AddSingleton<IProcessWatcher, WmiProcessWatcher>();
services.AddSingleton<IForegroundWindowWatcher, Win32ForegroundWindowWatcher>();
// --- Capture engine + encoders -----------------------------------------
services.AddSingleton<D3D11DeviceManager>();
+28
View File
@@ -44,11 +44,39 @@ public sealed partial class MainWindow : Window
var appWindow = AppWindow.GetFromWindowId(windowId);
appWindow.Resize(new SizeInt32(InitialWidth, InitialHeight));
if (appWindow.Presenter is OverlappedPresenter presenter)
{
presenter.IsMaximizable = false;
presenter.IsResizable = false;
}
Root.Loaded += OnRootLoaded;
}
public MainWindowViewModel? ViewModel { get; private set; }
/// <summary>
/// Apply the persisted theme preference to the window root. <c>System</c> falls back
/// to <see cref="ElementTheme.Default"/> which lets the OS theme drive everything,
/// including Mica. Called at startup and whenever <c>ISettingsStore.Changed</c> fires.
/// Safe to call from any thread — internally hops to the dispatcher.
/// </summary>
public void ApplyTheme(string theme)
{
DispatcherQueue.TryEnqueue(() =>
{
if (Content is FrameworkElement root)
{
root.RequestedTheme = theme switch
{
"Light" => ElementTheme.Light,
"Dark" => ElementTheme.Dark,
_ => ElementTheme.Default,
};
}
});
}
public void SetViewModel(MainWindowViewModel vm)
{
if (ViewModel is not null)
-3
View File
@@ -1,6 +1,3 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using CaptureImage.Core.Abstractions;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.UI.Dispatching;
@@ -0,0 +1,31 @@
namespace CaptureImage.Core.Abstractions;
/// <summary>
/// Watches the system-wide foreground window and reports changes. Used by the dashboard
/// to auto-switch the selected target when the user Alt-Tabs to another app. Implementations
/// must filter out the host process's own windows and debounce rapid switches so the UI
/// only reacts after the user lands on a window.
/// </summary>
public interface IForegroundWindowWatcher : IDisposable
{
/// <summary>
/// Fires when the foreground window changes — after debouncing and self-process
/// filtering. Subscribers may run on any thread; marshal to the UI thread before
/// touching bindings.
/// </summary>
event EventHandler<nint>? ForegroundChanged;
/// <summary><c>true</c> while the underlying hook is registered.</summary>
bool IsRunning { get; }
/// <summary>
/// Register the foreground hook. Idempotent — calling while already running is a
/// no-op. Must be called from a thread with a message pump (the WinUI 3 UI thread)
/// because SetWinEventHook with WINEVENT_OUTOFCONTEXT routes callbacks via posted
/// messages.
/// </summary>
void Start();
/// <summary>Unhook and stop reporting events. Safe to call repeatedly.</summary>
void Stop();
}
@@ -73,6 +73,13 @@ public sealed record CaptureSettings
/// lands on disk. When <c>false</c>, captures are saved immediately.
/// </summary>
public bool PreviewBeforeSave { get; init; } = false;
/// <summary>
/// When <c>true</c>, the dashboard's selected target follows the OS foreground window —
/// Alt-Tab to a target and CaptureImage re-selects it automatically. Off by default to
/// keep behaviour predictable for users who curate the list manually.
/// </summary>
public bool AutoSwitchOnAltTab { get; init; } = false;
}
/// <summary>UI / behaviour preferences not tied to a specific tab.</summary>
@@ -48,8 +48,8 @@ public sealed class CaptureOrchestrator
$"No encoder registered for format {request.Format}.");
_logger.LogInformation(
"Capturing target {Target} → {Format} at {Dir}.",
request.Target.DisplayName, request.Format, request.OutputDirectory);
"Starting picture capture of {Target} as {Format}...",
request.Target.DisplayName, request.Format);
var frame = await _engine.CaptureAsync(request.Target, cancellationToken).ConfigureAwait(false);
@@ -93,9 +93,12 @@ public sealed class CaptureOrchestrator
}
stopwatch.Stop();
var fileName = Path.GetFileName(finalPath);
var directory = Path.GetDirectoryName(finalPath) ?? string.Empty;
var sizeKb = fileSize / 1024d;
_logger.LogInformation(
"Capture OK → {Path} ({Width}x{Height}, {Size} bytes, {Ms}ms).",
finalPath, frame.Width, frame.Height, fileSize, stopwatch.ElapsedMilliseconds);
"Picture captured: {Name} ({Width}x{Height}, {SizeKb:F1} KB) at {Path} [{Format}].",
fileName, frame.Width, frame.Height, sizeKb, directory, request.Format);
return new CaptureResult.Success(
FilePath: finalPath,
@@ -106,21 +109,29 @@ public sealed class CaptureOrchestrator
}
catch (CaptureException ex)
{
_logger.LogWarning(ex, "Capture failed with known error {Code}.", ex.ErrorCode);
if (ex.ErrorCode == CaptureError.Cancelled)
{
_logger.LogInformation("Picture capture cancelled by user.");
}
else
{
_logger.LogWarning(ex, "Picture capture failed: {Reason}", ex.Message);
}
return new CaptureResult.Failure(ex.ErrorCode, ex.Message, ex);
}
catch (OperationCanceledException)
{
_logger.LogInformation("Picture capture cancelled by user.");
return new CaptureResult.Failure(CaptureError.Cancelled, "Capture was cancelled.");
}
catch (IOException ex)
{
_logger.LogError(ex, "File write failed during capture.");
_logger.LogError(ex, "Picture capture failed: couldn't write to {Path}.", request.OutputDirectory);
return new CaptureResult.Failure(CaptureError.FileWriteFailure, ex.Message, ex);
}
catch (Exception ex)
{
_logger.LogError(ex, "Unexpected exception during capture.");
_logger.LogError(ex, "Picture capture failed unexpectedly.");
return new CaptureResult.Failure(CaptureError.Unknown, ex.Message, ex);
}
}
@@ -4,8 +4,9 @@ using System.Text;
namespace CaptureImage.Infrastructure.Processes.Interop;
/// <summary>
/// Minimal Win32 surface used by <see cref="WindowEnumerator"/>. Only the calls we actually
/// make land here — do not grow this file into a general user32 wrapper.
/// Minimal Win32 surface used by the Processes module (window enumeration + foreground
/// hook). Only the calls we actually make land here — do not grow this file into a
/// general user32 wrapper.
/// </summary>
internal static partial class User32
{
@@ -34,6 +35,35 @@ internal static partial class User32
[LibraryImport("user32.dll", SetLastError = true)]
public static partial IntPtr GetWindow(IntPtr hWnd, uint uCmd);
[LibraryImport("user32.dll", SetLastError = true)]
public static partial IntPtr GetForegroundWindow();
// SetWinEventHook callback signature. Stays a classic [UnmanagedFunctionPointer]
// delegate (not [LibraryImport]) because [LibraryImport] doesn't support delegate
// parameters yet — the source generator won't marshal them.
public delegate void WinEventDelegate(
IntPtr hWinEventHook, uint eventType, IntPtr hwnd,
int idObject, int idChild, uint dwEventThread, uint dwmsEventTime);
[DllImport("user32.dll", SetLastError = true)]
public static extern IntPtr SetWinEventHook(
uint eventMin, uint eventMax,
IntPtr hmodWinEventProc,
WinEventDelegate lpfnWinEventProc,
uint idProcess, uint idThread,
uint dwFlags);
[DllImport("user32.dll", SetLastError = true)]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool UnhookWinEvent(IntPtr hWinEventHook);
// SetWinEventHook event constants
public const uint EVENT_SYSTEM_FOREGROUND = 0x0003;
// SetWinEventHook flags
public const uint WINEVENT_OUTOFCONTEXT = 0x0000;
public const uint WINEVENT_SKIPOWNPROCESS = 0x0002;
// GetWindowLongPtr indices
public const int GWL_EXSTYLE = -20;
@@ -0,0 +1,141 @@
using System.Threading;
using CaptureImage.Core.Abstractions;
using CaptureImage.Infrastructure.Processes.Interop;
using Microsoft.Extensions.Logging;
namespace CaptureImage.Infrastructure.Processes;
/// <summary>
/// Win32 implementation of <see cref="IForegroundWindowWatcher"/>. Wraps
/// <c>SetWinEventHook(EVENT_SYSTEM_FOREGROUND, …)</c> and debounces rapid switches so
/// the dashboard only re-selects the target after the user lands on a window.
/// </summary>
public sealed class Win32ForegroundWindowWatcher : IForegroundWindowWatcher
{
private static readonly TimeSpan DebounceDelay = TimeSpan.FromMilliseconds(250);
private readonly ILogger<Win32ForegroundWindowWatcher> _logger;
private readonly object _gate = new();
private readonly uint _ownProcessId;
private IntPtr _hookHandle;
// Holding a strong reference to the delegate is mandatory: the callback is invoked
// by the OS message loop, and a GC of the delegate while the hook is active
// crashes with an AccessViolationException on the next foreground change.
private User32.WinEventDelegate? _callback;
private readonly Timer _debounceTimer;
private IntPtr _pendingHwnd;
private bool _disposed;
public event EventHandler<nint>? ForegroundChanged;
public bool IsRunning { get; private set; }
public Win32ForegroundWindowWatcher(ILogger<Win32ForegroundWindowWatcher> logger)
{
_logger = logger;
_ownProcessId = (uint)Environment.ProcessId;
_debounceTimer = new Timer(OnDebounceElapsed, null, Timeout.Infinite, Timeout.Infinite);
}
public void Start()
{
lock (_gate)
{
if (_disposed) return;
if (IsRunning) return;
_callback = OnRawForegroundEvent;
_hookHandle = User32.SetWinEventHook(
User32.EVENT_SYSTEM_FOREGROUND, User32.EVENT_SYSTEM_FOREGROUND,
IntPtr.Zero, _callback,
idProcess: 0, idThread: 0,
User32.WINEVENT_OUTOFCONTEXT | User32.WINEVENT_SKIPOWNPROCESS);
if (_hookHandle == IntPtr.Zero)
{
_logger.LogWarning("Foreground window watcher failed to register WinEvent hook.");
_callback = null;
return;
}
IsRunning = true;
_logger.LogDebug("Foreground window watcher started (hook=0x{Hook:X}).", _hookHandle);
}
}
public void Stop()
{
lock (_gate)
{
if (_hookHandle != IntPtr.Zero)
{
User32.UnhookWinEvent(_hookHandle);
_hookHandle = IntPtr.Zero;
}
_callback = null;
_pendingHwnd = IntPtr.Zero;
_debounceTimer.Change(Timeout.Infinite, Timeout.Infinite);
if (IsRunning)
{
_logger.LogDebug("Foreground window watcher stopped.");
}
IsRunning = false;
}
}
public void Dispose()
{
if (_disposed) return;
_disposed = true;
Stop();
_debounceTimer.Dispose();
}
private void OnRawForegroundEvent(
IntPtr hWinEventHook, uint eventType, IntPtr hwnd,
int idObject, int idChild, uint dwEventThread, uint dwmsEventTime)
{
// Use GetForegroundWindow() rather than the event's hwnd. On Win11 Alt-Tab the
// event-supplied hwnd can be the modern Task View overlay (idObject != 0) or a
// transient cloaked window — which got the original watcher to filter the event
// out and miss the actual destination. Polling the OS at callback time always
// returns the real foreground HWND. Mouse-click activations happened to ship a
// single clean event so they worked under the old code; Alt-Tab didn't.
var foreground = User32.GetForegroundWindow();
if (foreground == IntPtr.Zero) return;
// WINEVENT_SKIPOWNPROCESS already filters most own-window events, but a defensive
// pid check covers edge cases (e.g. a brokered window owned by another process).
User32.GetWindowThreadProcessId(foreground, out var pid);
if (pid == _ownProcessId) return;
if (pid == 0) return;
_pendingHwnd = foreground;
_debounceTimer.Change(DebounceDelay, Timeout.InfiniteTimeSpan);
}
private void OnDebounceElapsed(object? state)
{
IntPtr hwnd;
lock (_gate)
{
if (_disposed || !IsRunning) return;
hwnd = _pendingHwnd;
_pendingHwnd = IntPtr.Zero;
}
if (hwnd == IntPtr.Zero) return;
_logger.LogDebug("Foreground window watcher firing for HWND 0x{Hwnd:X}.", hwnd);
try
{
ForegroundChanged?.Invoke(this, hwnd);
}
catch (Exception ex)
{
_logger.LogWarning(ex, "ForegroundChanged subscriber threw.");
}
}
}
@@ -21,6 +21,10 @@ public sealed class ResxLocalizationService : ILocalizationService
new("en-US"),
new("vi-VN"),
new("ar-SA"),
new("ja-JP"),
new("zh-Hans"),
new("ko-KR"),
new("es-ES"),
};
private readonly ResourceManager _resourceManager;
@@ -60,6 +60,10 @@
<!-- Settings -->
<data name="Settings_Title" xml:space="preserve"><value>الإعدادات</value></data>
<data name="Settings_Language" xml:space="preserve"><value>اللغة</value></data>
<data name="Settings_Theme" xml:space="preserve"><value>السمة</value></data>
<data name="Settings_Theme_System" xml:space="preserve"><value>حسب النظام</value></data>
<data name="Settings_Theme_Light" xml:space="preserve"><value>فاتح</value></data>
<data name="Settings_Theme_Dark" xml:space="preserve"><value>داكن</value></data>
<data name="Settings_Hotkey" xml:space="preserve"><value>مفتاح اختصار الالتقاط</value></data>
<data name="Settings_HotkeyHint" xml:space="preserve"><value>انقر تسجيل ثم اضغط على مجموعة مفاتيح. Esc للإلغاء. إعادة التعيين تستعيد Ctrl+Shift+F12.</value></data>
<data name="Settings_HotkeyRecord" xml:space="preserve"><value>تسجيل…</value></data>
@@ -81,6 +85,8 @@
<data name="Settings_BrowseTooltip" xml:space="preserve"><value>اختر مجلدًا بدلاً من كتابة المسار.</value></data>
<data name="Settings_FileNameTemplate" xml:space="preserve"><value>قالب اسم الملف</value></data>
<data name="Settings_PreviewBeforeSave" xml:space="preserve"><value>معاينة كل التقاط قبل الحفظ</value></data>
<data name="Settings_AutoSwitchOnAltTab" xml:space="preserve"><value>التبديل التلقائي للهدف عند Alt-Tab</value></data>
<data name="Settings_AutoSwitchOnAltTabHint" xml:space="preserve"><value>يتبع الهدف المحدد النافذة في المقدمة. التطبيقات غير المدرجة تترك تحديدك الحالي كما هو.</value></data>
<data name="Settings_MinimizeToTray" xml:space="preserve"><value>زر الإغلاق يصغر إلى علبة النظام</value></data>
<data name="Settings_SoundEnabled" xml:space="preserve"><value>تشغيل صوت الالتقاط</value></data>
<data name="Settings_Import" xml:space="preserve"><value>استيراد…</value></data>
@@ -112,7 +118,7 @@
<data name="About_AiSection" xml:space="preserve"><value>التطوير بمساعدة الذكاء الاصطناعي</value></data>
<data name="About_DisclaimersSection" xml:space="preserve"><value>إخلاءات المسؤولية</value></data>
<data name="About_TranslationDisclaimer" xml:space="preserve"><value>الترجمات</value></data>
<data name="About_TranslationDisclaimerBody" xml:space="preserve"><value>حزم اللغة العربية والفيتنامية مترجمة بمساعدة الآلة. قد لا تتطابق المصطلحات مع العرف المحلي، وبعض الكلمات التقنية (hotkey، toast، frame، إلخ) تُركت بالإنجليزية عمداً. نرحب بمتحدثي اللغة الأم الراغبين في المراجعة لإرسال طلبات سحب على ملفات .resx في src/CaptureImage.UI/Resources/Strings/.</value></data>
<data name="About_TranslationDisclaimerBody" xml:space="preserve"><value>حزم لغة الفيتنامية والعربية واليابانية والصينية المبسطة والكورية والإسبانية مترجمة بمساعدة الآلة. قد لا تتطابق المصطلحات مع العرف المحلي، وبعض الكلمات التقنية (hotkey، toast، frame، إلخ) تُركت بالإنجليزية عمداً. نرحب بمتحدثي اللغة الأم الراغبين في المراجعة لإرسال طلبات سحب على ملفات .resx في src/CaptureImage.UI/Resources/Strings/.</value></data>
<data name="About_CaptureDisclaimer" xml:space="preserve"><value>دعم الالتقاط</value></data>
<data name="About_CaptureLimitationDisclaimerBody" xml:space="preserve"><value>يمكن لـ CaptureImage التقاط معظم الألعاب النافذية وعديمة الحدود عبر Windows.Graphics.Capture، لكن ليست كل لعبة تعمل. الأسطح المحمية بـ DRM، وألعاب Direct3D 9 بالشاشة الكاملة الحصرية، والألعاب ذات خطافات anti-cheat قد تعيد إطارات سوداء أو ترفض الالتقاط. تُجرَّب آلية احتياطية GDI PrintWindow للتطبيقات القديمة. راجع docs/legal/DISCLAIMER.md §2 للقائمة الكاملة.</value></data>
<data name="About_LiabilityDisclaimer" xml:space="preserve"><value>بدون ضمان</value></data>
@@ -0,0 +1,164 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="xml:space" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype"><value>text/microsoft-resx</value></resheader>
<resheader name="version"><value>2.0</value></resheader>
<resheader name="reader"><value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value></resheader>
<resheader name="writer"><value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value></resheader>
<!-- Navigation -->
<data name="Nav_Dashboard" xml:space="preserve"><value>Panel</value></data>
<data name="Nav_Update" xml:space="preserve"><value>Actualización</value></data>
<data name="Nav_Settings" xml:space="preserve"><value>Configuración</value></data>
<data name="Nav_About" xml:space="preserve"><value>Acerca de</value></data>
<data name="Nav_LogViewer" xml:space="preserve"><value>Registro</value></data>
<!-- Dashboard -->
<data name="Dashboard_Title" xml:space="preserve"><value>Panel</value></data>
<data name="Dashboard_Subtitle" xml:space="preserve"><value>Selecciona un objetivo y actívalo — pulsa la tecla rápida para capturar.</value></data>
<data name="Dashboard_Refresh" xml:space="preserve"><value>Actualizar</value></data>
<data name="Dashboard_Arm" xml:space="preserve"><value>Activar</value></data>
<data name="Dashboard_Disarm" xml:space="preserve"><value>Desactivar</value></data>
<data name="Dashboard_StatusIdle" xml:space="preserve"><value>Inactivo — selecciona un objetivo y actívalo para empezar.</value></data>
<data name="Dashboard_StatusArmed" xml:space="preserve"><value>Activado: pulsa {0} para capturar {1}.</value></data>
<data name="Dashboard_StatusCapturing" xml:space="preserve"><value>Capturando {0}…</value></data>
<data name="Dashboard_StatusDisarmed" xml:space="preserve"><value>Desactivado.</value></data>
<data name="Dashboard_StatusSaved" xml:space="preserve"><value>Guardado: {0} ({1}x{2}, {3} ms)</value></data>
<data name="Dashboard_StatusFailed" xml:space="preserve"><value>Captura fallida ({0}): {1}</value></data>
<data name="Dashboard_TargetsCount" xml:space="preserve"><value>{0} objetivo(s) visible(s)</value></data>
<data name="Dashboard_Loading" xml:space="preserve"><value>Cargando…</value></data>
<data name="Dashboard_EmptyState" xml:space="preserve"><value>No hay ventanas visibles para capturar — abre tu juego o aplicación y pulsa Actualizar.</value></data>
<data name="Dashboard_LogToggle" xml:space="preserve"><value>Mostrar/ocultar el panel de registro en tiempo real</value></data>
<data name="Dashboard_SteamBadge" xml:space="preserve"><value>STEAM</value></data>
<data name="Dashboard_SteamBadgeTooltip" xml:space="preserve"><value>Juego de Steam: {0} (AppId {1}). La captura con F12 está disponible mediante la superposición de Steam. Algunos juegos protegidos por anticheat pueden bloquear la captura externa.</value></data>
<!-- Settings -->
<data name="Settings_Title" xml:space="preserve"><value>Configuración</value></data>
<data name="Settings_Language" xml:space="preserve"><value>Idioma</value></data>
<data name="Settings_Theme" xml:space="preserve"><value>Tema</value></data>
<data name="Settings_Theme_System" xml:space="preserve"><value>Sistema</value></data>
<data name="Settings_Theme_Light" xml:space="preserve"><value>Claro</value></data>
<data name="Settings_Theme_Dark" xml:space="preserve"><value>Oscuro</value></data>
<data name="Settings_Hotkey" xml:space="preserve"><value>Tecla rápida de captura</value></data>
<data name="Settings_HotkeyHint" xml:space="preserve"><value>Pulsa Grabar y luego una combinación de teclas. Esc cancela. Restablecer recupera Ctrl+Shift+F12.</value></data>
<data name="Settings_HotkeyRecord" xml:space="preserve"><value>Grabar…</value></data>
<data name="Settings_HotkeyCancel" xml:space="preserve"><value>Cancelar</value></data>
<data name="Settings_HotkeyReset" xml:space="preserve"><value>Restablecer</value></data>
<data name="Settings_HotkeyRecorderPrompt" xml:space="preserve"><value>Pulsa una combinación de teclas (Esc para cancelar)…</value></data>
<data name="Settings_HotkeyErrorNoPrimary" xml:space="preserve"><value>Selecciona una tecla principal (por ejemplo, una letra o una tecla F).</value></data>
<data name="Settings_HotkeyErrorModifierOnly" xml:space="preserve"><value>Una tecla modificadora sola no basta — añade una letra o una tecla F.</value></data>
<data name="Settings_HotkeyErrorNeedsModifier" xml:space="preserve"><value>Las letras y dígitos sueltos requieren al menos un modificador (Ctrl/Alt/Shift/Win).</value></data>
<data name="Settings_HotkeyErrorReserved" xml:space="preserve"><value>Esta combinación está reservada por Windows y no puede usarse.</value></data>
<data name="Settings_HotkeyConflictWarning" xml:space="preserve"><value>Otra aplicación puede estar usando esta combinación — quizá no funcione mientras esa app esté abierta.</value></data>
<data name="Settings_Format" xml:space="preserve"><value>Formato predeterminado</value></data>
<data name="Settings_JpegQuality" xml:space="preserve"><value>Calidad JPEG</value></data>
<data name="Settings_WebpQuality" xml:space="preserve"><value>Calidad WebP</value></data>
<data name="Settings_OutputFolder" xml:space="preserve"><value>Carpeta de salida</value></data>
<data name="Settings_OutputFolderDefault" xml:space="preserve"><value>(predeterminado: Pictures\CaptureImage)</value></data>
<data name="Settings_Browse" xml:space="preserve"><value>Examinar…</value></data>
<data name="Settings_BrowseTitle" xml:space="preserve"><value>Elegir carpeta de salida</value></data>
<data name="Settings_BrowseTooltip" xml:space="preserve"><value>Elige una carpeta en lugar de escribir la ruta.</value></data>
<data name="Settings_FileNameTemplate" xml:space="preserve"><value>Plantilla del nombre de archivo</value></data>
<data name="Settings_PreviewBeforeSave" xml:space="preserve"><value>Previsualizar cada captura antes de guardar</value></data>
<data name="Settings_AutoSwitchOnAltTab" xml:space="preserve"><value>Cambiar automáticamente de objetivo al usar Alt-Tab</value></data>
<data name="Settings_AutoSwitchOnAltTabHint" xml:space="preserve"><value>El objetivo seleccionado sigue a la ventana en primer plano. Las apps que no estén en la lista mantienen tu selección actual.</value></data>
<data name="Settings_MinimizeToTray" xml:space="preserve"><value>El botón Cerrar minimiza a la bandeja</value></data>
<data name="Settings_SoundEnabled" xml:space="preserve"><value>Reproducir sonido al capturar</value></data>
<data name="Settings_Import" xml:space="preserve"><value>Importar…</value></data>
<data name="Settings_Export" xml:space="preserve"><value>Exportar…</value></data>
<data name="Settings_ImportTitle" xml:space="preserve"><value>Importar configuración</value></data>
<data name="Settings_ExportTitle" xml:space="preserve"><value>Exportar configuración</value></data>
<data name="Settings_OpenFile" xml:space="preserve"><value>Abrir archivo de configuración</value></data>
<data name="Settings_Logging" xml:space="preserve"><value>Registro</value></data>
<data name="Settings_LogLevel" xml:space="preserve"><value>Nivel mínimo del registro</value></data>
<data name="Settings_LogLevelHint" xml:space="preserve"><value>Filtra el archivo de registro rotativo y el visor. Elige Debug para diagnóstico, Information para uso diario, o Warning/Error para reducir el volumen.</value></data>
<!-- Update -->
<data name="Update_Title" xml:space="preserve"><value>Actualización</value></data>
<data name="Update_Check" xml:space="preserve"><value>Buscar actualizaciones</value></data>
<data name="Update_Download" xml:space="preserve"><value>Descargar</value></data>
<data name="Update_Install" xml:space="preserve"><value>Instalar y reiniciar</value></data>
<data name="Update_Status" xml:space="preserve"><value>Estado</value></data>
<data name="Update_Log" xml:space="preserve"><value>Registro</value></data>
<data name="Update_NewVersion" xml:space="preserve"><value>Nueva versión:</value></data>
<!-- About -->
<data name="About_Title" xml:space="preserve"><value>Acerca de CaptureImage</value></data>
<data name="About_Tagline" xml:space="preserve"><value>Captura de pantalla ligera para Windows pensada para juegos sin tecla de captura propia.</value></data>
<data name="About_AppLabel" xml:space="preserve"><value>Aplicación</value></data>
<data name="About_VersionLabel" xml:space="preserve"><value>Versión</value></data>
<data name="About_LicenseLabel" xml:space="preserve"><value>Licencia</value></data>
<data name="About_DeveloperLabel" xml:space="preserve"><value>Desarrollador</value></data>
<data name="About_RepositoryLabel" xml:space="preserve"><value>Repositorio</value></data>
<data name="About_AiSection" xml:space="preserve"><value>Desarrollo asistido por IA</value></data>
<data name="About_DisclaimersSection" xml:space="preserve"><value>Avisos legales</value></data>
<data name="About_TranslationDisclaimer" xml:space="preserve"><value>Traducciones</value></data>
<data name="About_TranslationDisclaimerBody" xml:space="preserve"><value>Los paquetes de idioma japonés, chino simplificado, coreano y español están traducidos con asistencia automática. Es posible que la terminología no coincida con las convenciones nativas, y algunos términos técnicos (hotkey, toast, frame, etc.) se mantienen en inglés a propósito. Los hablantes nativos dispuestos a revisarlos pueden enviar pull requests sobre los archivos .resx en src/CaptureImage.UI/Resources/Strings/.</value></data>
<data name="About_CaptureDisclaimer" xml:space="preserve"><value>Compatibilidad de captura</value></data>
<data name="About_CaptureLimitationDisclaimerBody" xml:space="preserve"><value>CaptureImage puede capturar la mayoría de los juegos en ventana o sin bordes mediante Windows.Graphics.Capture, pero no todos los títulos funcionan. Las superficies protegidas por DRM, los juegos en pantalla completa exclusiva con Direct3D 9 y los títulos con ganchos anticheat pueden devolver fotogramas en negro o rechazar la captura. Para apps antiguas se intenta un fallback con GDI PrintWindow. Consulta la lista completa en docs/legal/DISCLAIMER.md §2.</value></data>
<data name="About_LiabilityDisclaimer" xml:space="preserve"><value>Sin garantía</value></data>
<data name="About_LiabilityDisclaimerBody" xml:space="preserve"><value>CaptureImage se distribuye bajo GPL-3.0-or-later TAL CUAL, sin garantía de ningún tipo. Los autores no son responsables de capturas perdidas, fallos del juego, sanciones de anticheat ni pérdida de datos. Úsalo bajo tu propia responsabilidad. Consulta el texto completo en docs/legal/DISCLAIMER.md.</value></data>
<data name="About_LegalSection" xml:space="preserve"><value>Documentos legales</value></data>
<data name="About_ThirdPartySection" xml:space="preserve"><value>Componentes de terceros</value></data>
<data name="About_ThirdPartyHint" xml:space="preserve"><value>Pulsa "Avisos de terceros" arriba para ver la lista completa con las URLs originales.</value></data>
<data name="About_OpenDisclaimer" xml:space="preserve"><value>Aviso legal</value></data>
<data name="About_OpenPrivacy" xml:space="preserve"><value>Privacidad</value></data>
<data name="About_OpenTerms" xml:space="preserve"><value>Términos</value></data>
<data name="About_OpenLicense" xml:space="preserve"><value>Licencia (GPL-3.0)</value></data>
<data name="About_OpenThirdParty" xml:space="preserve"><value>Avisos de terceros</value></data>
<data name="About_OpenContributors" xml:space="preserve"><value>Colaboradores</value></data>
<!-- Log viewer -->
<data name="Log_Title" xml:space="preserve"><value>Registro en tiempo real</value></data>
<data name="Log_Pause" xml:space="preserve"><value>Pausar</value></data>
<data name="Log_Resume" xml:space="preserve"><value>Reanudar</value></data>
<data name="Log_Clear" xml:space="preserve"><value>Limpiar</value></data>
<data name="Log_EventsCount" xml:space="preserve"><value>{0} eventos</value></data>
<data name="Log_EmptyState" xml:space="preserve"><value>Aún no hay eventos. Los eventos en tiempo real del motor de captura aparecerán aquí.</value></data>
<data name="Log_Filter" xml:space="preserve"><value>Nivel mínimo:</value></data>
<data name="Log_RevealFolder" xml:space="preserve"><value>Abrir carpeta</value></data>
<!-- Preview -->
<data name="Preview_Title" xml:space="preserve"><value>Vista previa</value></data>
<data name="Preview_Prompt" xml:space="preserve"><value>¿Guardar esta captura?</value></data>
<data name="Preview_Save" xml:space="preserve"><value>Guardar</value></data>
<data name="Preview_Discard" xml:space="preserve"><value>Descartar</value></data>
<!-- Toasts -->
<data name="Toast_CaptureSaved" xml:space="preserve"><value>Captura guardada</value></data>
<data name="Toast_CaptureFailed" xml:space="preserve"><value>Captura fallida</value></data>
<data name="Toast_SettingsImported" xml:space="preserve"><value>Configuración importada</value></data>
<data name="Toast_SettingsExported" xml:space="preserve"><value>Configuración exportada</value></data>
<data name="Toast_Error" xml:space="preserve"><value>Error</value></data>
<!-- Tray menu -->
<data name="Tray_ShowWindow" xml:space="preserve"><value>Mostrar CaptureImage</value></data>
<data name="Tray_OpenFolder" xml:space="preserve"><value>Abrir carpeta de capturas</value></data>
<data name="Tray_Exit" xml:space="preserve"><value>Salir</value></data>
</root>
@@ -0,0 +1,164 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="xml:space" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype"><value>text/microsoft-resx</value></resheader>
<resheader name="version"><value>2.0</value></resheader>
<resheader name="reader"><value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value></resheader>
<resheader name="writer"><value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value></resheader>
<!-- Navigation -->
<data name="Nav_Dashboard" xml:space="preserve"><value>ダッシュボード</value></data>
<data name="Nav_Update" xml:space="preserve"><value>アップデート</value></data>
<data name="Nav_Settings" xml:space="preserve"><value>設定</value></data>
<data name="Nav_About" xml:space="preserve"><value>情報</value></data>
<data name="Nav_LogViewer" xml:space="preserve"><value>ログ</value></data>
<!-- Dashboard -->
<data name="Dashboard_Title" xml:space="preserve"><value>ダッシュボード</value></data>
<data name="Dashboard_Subtitle" xml:space="preserve"><value>対象を選択して起動 — ホットキーでキャプチャします。</value></data>
<data name="Dashboard_Refresh" xml:space="preserve"><value>更新</value></data>
<data name="Dashboard_Arm" xml:space="preserve"><value>起動</value></data>
<data name="Dashboard_Disarm" xml:space="preserve"><value>停止</value></data>
<data name="Dashboard_StatusIdle" xml:space="preserve"><value>待機中 — 対象を選択して起動してください。</value></data>
<data name="Dashboard_StatusArmed" xml:space="preserve"><value>起動中: {0} を押すと {1} をキャプチャします。</value></data>
<data name="Dashboard_StatusCapturing" xml:space="preserve"><value>{0} をキャプチャ中…</value></data>
<data name="Dashboard_StatusDisarmed" xml:space="preserve"><value>停止しました。</value></data>
<data name="Dashboard_StatusSaved" xml:space="preserve"><value>保存: {0} ({1}x{2}, {3} ms)</value></data>
<data name="Dashboard_StatusFailed" xml:space="preserve"><value>キャプチャ失敗 ({0}): {1}</value></data>
<data name="Dashboard_TargetsCount" xml:space="preserve"><value>{0} 件の対象が表示されています</value></data>
<data name="Dashboard_Loading" xml:space="preserve"><value>読み込み中…</value></data>
<data name="Dashboard_EmptyState" xml:space="preserve"><value>キャプチャ可能なウィンドウがありません — ゲームやアプリを起動してから「更新」をクリックしてください。</value></data>
<data name="Dashboard_LogToggle" xml:space="preserve"><value>リアルタイムログを開閉</value></data>
<data name="Dashboard_SteamBadge" xml:space="preserve"><value>STEAM</value></data>
<data name="Dashboard_SteamBadgeTooltip" xml:space="preserve"><value>Steam ゲーム: {0} (AppId {1})。F12 のスクリーンショットは Steam オーバーレイで利用できます。アンチチート保護されたゲームでは外部キャプチャがブロックされる場合があります。</value></data>
<!-- Settings -->
<data name="Settings_Title" xml:space="preserve"><value>設定</value></data>
<data name="Settings_Language" xml:space="preserve"><value>言語</value></data>
<data name="Settings_Theme" xml:space="preserve"><value>テーマ</value></data>
<data name="Settings_Theme_System" xml:space="preserve"><value>システム</value></data>
<data name="Settings_Theme_Light" xml:space="preserve"><value>ライト</value></data>
<data name="Settings_Theme_Dark" xml:space="preserve"><value>ダーク</value></data>
<data name="Settings_Hotkey" xml:space="preserve"><value>キャプチャ用ホットキー</value></data>
<data name="Settings_HotkeyHint" xml:space="preserve"><value>「録音」をクリックしてキーの組み合わせを押します。Esc でキャンセル。「リセット」で Ctrl+Shift+F12 に戻します。</value></data>
<data name="Settings_HotkeyRecord" xml:space="preserve"><value>録音…</value></data>
<data name="Settings_HotkeyCancel" xml:space="preserve"><value>キャンセル</value></data>
<data name="Settings_HotkeyReset" xml:space="preserve"><value>リセット</value></data>
<data name="Settings_HotkeyRecorderPrompt" xml:space="preserve"><value>キーの組み合わせを押してください (Esc でキャンセル)…</value></data>
<data name="Settings_HotkeyErrorNoPrimary" xml:space="preserve"><value>主キーを選択してください (例: 文字キーまたは F キー)。</value></data>
<data name="Settings_HotkeyErrorModifierOnly" xml:space="preserve"><value>修飾キーだけでは登録できません — 文字キーまたは F キーを追加してください。</value></data>
<data name="Settings_HotkeyErrorNeedsModifier" xml:space="preserve"><value>文字や数字には少なくとも 1 つの修飾キー (Ctrl/Alt/Shift/Win) が必要です。</value></data>
<data name="Settings_HotkeyErrorReserved" xml:space="preserve"><value>この組み合わせは Windows により予約されており、使用できません。</value></data>
<data name="Settings_HotkeyConflictWarning" xml:space="preserve"><value>他のアプリがこの組み合わせを使用中の可能性があります — そのアプリの実行中は反応しないことがあります。</value></data>
<data name="Settings_Format" xml:space="preserve"><value>既定のフォーマット</value></data>
<data name="Settings_JpegQuality" xml:space="preserve"><value>JPEG 品質</value></data>
<data name="Settings_WebpQuality" xml:space="preserve"><value>WebP 品質</value></data>
<data name="Settings_OutputFolder" xml:space="preserve"><value>出力フォルダー</value></data>
<data name="Settings_OutputFolderDefault" xml:space="preserve"><value>(既定: Pictures\CaptureImage)</value></data>
<data name="Settings_Browse" xml:space="preserve"><value>参照…</value></data>
<data name="Settings_BrowseTitle" xml:space="preserve"><value>出力フォルダーを選択</value></data>
<data name="Settings_BrowseTooltip" xml:space="preserve"><value>パスを入力する代わりにフォルダーを選択します。</value></data>
<data name="Settings_FileNameTemplate" xml:space="preserve"><value>ファイル名テンプレート</value></data>
<data name="Settings_PreviewBeforeSave" xml:space="preserve"><value>保存前に各キャプチャをプレビュー</value></data>
<data name="Settings_AutoSwitchOnAltTab" xml:space="preserve"><value>Alt-Tab で対象を自動切り替え</value></data>
<data name="Settings_AutoSwitchOnAltTabHint" xml:space="preserve"><value>選択中の対象がフォアグラウンドウィンドウに追従します。対象一覧にないアプリでは現在の選択を維持します。</value></data>
<data name="Settings_MinimizeToTray" xml:space="preserve"><value>閉じるボタンでトレイに最小化</value></data>
<data name="Settings_SoundEnabled" xml:space="preserve"><value>キャプチャ音を再生</value></data>
<data name="Settings_Import" xml:space="preserve"><value>インポート…</value></data>
<data name="Settings_Export" xml:space="preserve"><value>エクスポート…</value></data>
<data name="Settings_ImportTitle" xml:space="preserve"><value>設定をインポート</value></data>
<data name="Settings_ExportTitle" xml:space="preserve"><value>設定をエクスポート</value></data>
<data name="Settings_OpenFile" xml:space="preserve"><value>設定ファイルを開く</value></data>
<data name="Settings_Logging" xml:space="preserve"><value>ログ</value></data>
<data name="Settings_LogLevel" xml:space="preserve"><value>最小ログレベル</value></data>
<data name="Settings_LogLevelHint" xml:space="preserve"><value>ローリングログファイルとビューアをフィルタします。サポート診断には Debug、日常使用には Information、Warning または Error を選ぶと出力を抑えられます。</value></data>
<!-- Update -->
<data name="Update_Title" xml:space="preserve"><value>アップデート</value></data>
<data name="Update_Check" xml:space="preserve"><value>更新を確認</value></data>
<data name="Update_Download" xml:space="preserve"><value>ダウンロード</value></data>
<data name="Update_Install" xml:space="preserve"><value>インストールして再起動</value></data>
<data name="Update_Status" xml:space="preserve"><value>状態</value></data>
<data name="Update_Log" xml:space="preserve"><value>ログ</value></data>
<data name="Update_NewVersion" xml:space="preserve"><value>新しいバージョン:</value></data>
<!-- About -->
<data name="About_Title" xml:space="preserve"><value>CaptureImage について</value></data>
<data name="About_Tagline" xml:space="preserve"><value>スクリーンショット機能のないゲーム向けの軽量 Windows 画面キャプチャツール。</value></data>
<data name="About_AppLabel" xml:space="preserve"><value>アプリ</value></data>
<data name="About_VersionLabel" xml:space="preserve"><value>バージョン</value></data>
<data name="About_LicenseLabel" xml:space="preserve"><value>ライセンス</value></data>
<data name="About_DeveloperLabel" xml:space="preserve"><value>開発者</value></data>
<data name="About_RepositoryLabel" xml:space="preserve"><value>リポジトリ</value></data>
<data name="About_AiSection" xml:space="preserve"><value>AI 支援開発</value></data>
<data name="About_DisclaimersSection" xml:space="preserve"><value>免責事項</value></data>
<data name="About_TranslationDisclaimer" xml:space="preserve"><value>翻訳について</value></data>
<data name="About_TranslationDisclaimerBody" xml:space="preserve"><value>日本語、中国語(簡体)、韓国語、スペイン語の言語パックは機械支援で翻訳されています。用語が母語の慣習と一致しない場合があり、一部の技術用語(hotkey、toast、frame など)はあえて英語のままにしています。校正に協力してくださるネイティブスピーカーの方は、src/CaptureImage.UI/Resources/Strings/ の .resx ファイルへの Pull Request を歓迎します。</value></data>
<data name="About_CaptureDisclaimer" xml:space="preserve"><value>キャプチャ対応</value></data>
<data name="About_CaptureLimitationDisclaimerBody" xml:space="preserve"><value>CaptureImage は Windows.Graphics.Capture により多くのウィンドウ・ボーダーレスゲームをキャプチャできますが、すべてのタイトルで動作するわけではありません。DRM 保護されたサーフェス、排他的フルスクリーンの Direct3D 9 ゲーム、アンチチートフックを持つタイトルは、黒フレームを返したりキャプチャを拒否することがあります。レガシーアプリには GDI PrintWindow フォールバックを試みます。完全な一覧は docs/legal/DISCLAIMER.md §2 を参照してください。</value></data>
<data name="About_LiabilityDisclaimer" xml:space="preserve"><value>無保証</value></data>
<data name="About_LiabilityDisclaimerBody" xml:space="preserve"><value>CaptureImage は GPL-3.0-or-later の下で「現状のまま」配布され、いかなる種類の保証もありません。作者はスクリーンショットの紛失、ゲームクラッシュ、アンチチート制裁、データ損失について責任を負いません。自己責任でご使用ください。完全な文章は docs/legal/DISCLAIMER.md を参照してください。</value></data>
<data name="About_LegalSection" xml:space="preserve"><value>法的文書</value></data>
<data name="About_ThirdPartySection" xml:space="preserve"><value>サードパーティコンポーネント</value></data>
<data name="About_ThirdPartyHint" xml:space="preserve"><value>上記の「サードパーティ通知」をクリックすると、上流 URL を含む完全な一覧が表示されます。</value></data>
<data name="About_OpenDisclaimer" xml:space="preserve"><value>免責事項</value></data>
<data name="About_OpenPrivacy" xml:space="preserve"><value>プライバシー</value></data>
<data name="About_OpenTerms" xml:space="preserve"><value>利用規約</value></data>
<data name="About_OpenLicense" xml:space="preserve"><value>ライセンス (GPL-3.0)</value></data>
<data name="About_OpenThirdParty" xml:space="preserve"><value>サードパーティ通知</value></data>
<data name="About_OpenContributors" xml:space="preserve"><value>貢献者</value></data>
<!-- Log viewer -->
<data name="Log_Title" xml:space="preserve"><value>リアルタイムログ</value></data>
<data name="Log_Pause" xml:space="preserve"><value>一時停止</value></data>
<data name="Log_Resume" xml:space="preserve"><value>再開</value></data>
<data name="Log_Clear" xml:space="preserve"><value>クリア</value></data>
<data name="Log_EventsCount" xml:space="preserve"><value>{0} 件のイベント</value></data>
<data name="Log_EmptyState" xml:space="preserve"><value>まだログイベントがありません。キャプチャエンジンからのリアルタイムイベントがここに表示されます。</value></data>
<data name="Log_Filter" xml:space="preserve"><value>最小レベル:</value></data>
<data name="Log_RevealFolder" xml:space="preserve"><value>フォルダーを開く</value></data>
<!-- Preview -->
<data name="Preview_Title" xml:space="preserve"><value>プレビュー</value></data>
<data name="Preview_Prompt" xml:space="preserve"><value>このキャプチャを保存しますか?</value></data>
<data name="Preview_Save" xml:space="preserve"><value>保存</value></data>
<data name="Preview_Discard" xml:space="preserve"><value>破棄</value></data>
<!-- Toasts -->
<data name="Toast_CaptureSaved" xml:space="preserve"><value>キャプチャを保存しました</value></data>
<data name="Toast_CaptureFailed" xml:space="preserve"><value>キャプチャ失敗</value></data>
<data name="Toast_SettingsImported" xml:space="preserve"><value>設定をインポートしました</value></data>
<data name="Toast_SettingsExported" xml:space="preserve"><value>設定をエクスポートしました</value></data>
<data name="Toast_Error" xml:space="preserve"><value>エラー</value></data>
<!-- Tray menu -->
<data name="Tray_ShowWindow" xml:space="preserve"><value>CaptureImage を表示</value></data>
<data name="Tray_OpenFolder" xml:space="preserve"><value>キャプチャフォルダーを開く</value></data>
<data name="Tray_Exit" xml:space="preserve"><value>終了</value></data>
</root>
@@ -0,0 +1,164 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="xml:space" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype"><value>text/microsoft-resx</value></resheader>
<resheader name="version"><value>2.0</value></resheader>
<resheader name="reader"><value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value></resheader>
<resheader name="writer"><value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value></resheader>
<!-- Navigation -->
<data name="Nav_Dashboard" xml:space="preserve"><value>대시보드</value></data>
<data name="Nav_Update" xml:space="preserve"><value>업데이트</value></data>
<data name="Nav_Settings" xml:space="preserve"><value>설정</value></data>
<data name="Nav_About" xml:space="preserve"><value>정보</value></data>
<data name="Nav_LogViewer" xml:space="preserve"><value>로그</value></data>
<!-- Dashboard -->
<data name="Dashboard_Title" xml:space="preserve"><value>대시보드</value></data>
<data name="Dashboard_Subtitle" xml:space="preserve"><value>대상을 선택하고 활성화한 다음 단축키를 눌러 캡처하세요.</value></data>
<data name="Dashboard_Refresh" xml:space="preserve"><value>새로 고침</value></data>
<data name="Dashboard_Arm" xml:space="preserve"><value>활성화</value></data>
<data name="Dashboard_Disarm" xml:space="preserve"><value>비활성화</value></data>
<data name="Dashboard_StatusIdle" xml:space="preserve"><value>대기 중 — 대상을 선택하고 활성화하세요.</value></data>
<data name="Dashboard_StatusArmed" xml:space="preserve"><value>활성화됨: {0} 키를 눌러 {1}을(를) 캡처합니다.</value></data>
<data name="Dashboard_StatusCapturing" xml:space="preserve"><value>{0} 캡처 중…</value></data>
<data name="Dashboard_StatusDisarmed" xml:space="preserve"><value>비활성화되었습니다.</value></data>
<data name="Dashboard_StatusSaved" xml:space="preserve"><value>저장됨: {0} ({1}x{2}, {3} ms)</value></data>
<data name="Dashboard_StatusFailed" xml:space="preserve"><value>캡처 실패 ({0}): {1}</value></data>
<data name="Dashboard_TargetsCount" xml:space="preserve"><value>{0}개의 대상이 표시됨</value></data>
<data name="Dashboard_Loading" xml:space="preserve"><value>불러오는 중…</value></data>
<data name="Dashboard_EmptyState" xml:space="preserve"><value>캡처할 수 있는 창이 없습니다 — 게임이나 앱을 실행한 다음 새로 고침을 클릭하세요.</value></data>
<data name="Dashboard_LogToggle" xml:space="preserve"><value>실시간 로그 패널 열기/닫기</value></data>
<data name="Dashboard_SteamBadge" xml:space="preserve"><value>STEAM</value></data>
<data name="Dashboard_SteamBadgeTooltip" xml:space="preserve"><value>Steam 게임: {0} (AppId {1}). F12 스크린샷은 Steam 오버레이를 통해 사용할 수 있습니다. 안티치트가 적용된 일부 게임은 외부 캡처를 차단할 수 있습니다.</value></data>
<!-- Settings -->
<data name="Settings_Title" xml:space="preserve"><value>설정</value></data>
<data name="Settings_Language" xml:space="preserve"><value>언어</value></data>
<data name="Settings_Theme" xml:space="preserve"><value>테마</value></data>
<data name="Settings_Theme_System" xml:space="preserve"><value>시스템</value></data>
<data name="Settings_Theme_Light" xml:space="preserve"><value>라이트</value></data>
<data name="Settings_Theme_Dark" xml:space="preserve"><value>다크</value></data>
<data name="Settings_Hotkey" xml:space="preserve"><value>캡처 단축키</value></data>
<data name="Settings_HotkeyHint" xml:space="preserve"><value>녹화를 클릭한 다음 키 조합을 누르세요. Esc로 취소합니다. 재설정은 Ctrl+Shift+F12로 되돌립니다.</value></data>
<data name="Settings_HotkeyRecord" xml:space="preserve"><value>녹화…</value></data>
<data name="Settings_HotkeyCancel" xml:space="preserve"><value>취소</value></data>
<data name="Settings_HotkeyReset" xml:space="preserve"><value>재설정</value></data>
<data name="Settings_HotkeyRecorderPrompt" xml:space="preserve"><value>키 조합을 누르세요 (Esc로 취소)…</value></data>
<data name="Settings_HotkeyErrorNoPrimary" xml:space="preserve"><value>기본 키를 선택하세요 (예: 문자 또는 F 키).</value></data>
<data name="Settings_HotkeyErrorModifierOnly" xml:space="preserve"><value>수정자 키만으로는 충분하지 않습니다 — 문자나 F 키를 추가하세요.</value></data>
<data name="Settings_HotkeyErrorNeedsModifier" xml:space="preserve"><value>일반 문자와 숫자에는 최소 하나의 수정자 키(Ctrl/Alt/Shift/Win)가 필요합니다.</value></data>
<data name="Settings_HotkeyErrorReserved" xml:space="preserve"><value>이 조합은 Windows에서 예약되어 있어 사용할 수 없습니다.</value></data>
<data name="Settings_HotkeyConflictWarning" xml:space="preserve"><value>다른 응용 프로그램이 이 조합을 사용 중일 수 있습니다 — 해당 앱이 실행 중일 때는 작동하지 않을 수 있습니다.</value></data>
<data name="Settings_Format" xml:space="preserve"><value>기본 형식</value></data>
<data name="Settings_JpegQuality" xml:space="preserve"><value>JPEG 품질</value></data>
<data name="Settings_WebpQuality" xml:space="preserve"><value>WebP 품질</value></data>
<data name="Settings_OutputFolder" xml:space="preserve"><value>출력 폴더</value></data>
<data name="Settings_OutputFolderDefault" xml:space="preserve"><value>(기본값: Pictures\CaptureImage)</value></data>
<data name="Settings_Browse" xml:space="preserve"><value>찾아보기…</value></data>
<data name="Settings_BrowseTitle" xml:space="preserve"><value>출력 폴더 선택</value></data>
<data name="Settings_BrowseTooltip" xml:space="preserve"><value>경로를 입력하는 대신 폴더를 선택합니다.</value></data>
<data name="Settings_FileNameTemplate" xml:space="preserve"><value>파일 이름 템플릿</value></data>
<data name="Settings_PreviewBeforeSave" xml:space="preserve"><value>저장 전에 각 캡처 미리보기</value></data>
<data name="Settings_AutoSwitchOnAltTab" xml:space="preserve"><value>Alt-Tab 시 대상 자동 전환</value></data>
<data name="Settings_AutoSwitchOnAltTabHint" xml:space="preserve"><value>선택된 대상이 포그라운드 창을 따라갑니다. 대상 목록에 없는 앱은 현재 선택을 유지합니다.</value></data>
<data name="Settings_MinimizeToTray" xml:space="preserve"><value>닫기 버튼으로 트레이로 최소화</value></data>
<data name="Settings_SoundEnabled" xml:space="preserve"><value>캡처 사운드 재생</value></data>
<data name="Settings_Import" xml:space="preserve"><value>가져오기…</value></data>
<data name="Settings_Export" xml:space="preserve"><value>내보내기…</value></data>
<data name="Settings_ImportTitle" xml:space="preserve"><value>설정 가져오기</value></data>
<data name="Settings_ExportTitle" xml:space="preserve"><value>설정 내보내기</value></data>
<data name="Settings_OpenFile" xml:space="preserve"><value>설정 파일 열기</value></data>
<data name="Settings_Logging" xml:space="preserve"><value>로그</value></data>
<data name="Settings_LogLevel" xml:space="preserve"><value>최소 로그 수준</value></data>
<data name="Settings_LogLevelHint" xml:space="preserve"><value>롤링 로그 파일과 뷰어를 필터링합니다. 지원 진단에는 Debug, 일상 사용에는 Information, 출력을 줄이려면 Warning이나 Error를 선택하세요.</value></data>
<!-- Update -->
<data name="Update_Title" xml:space="preserve"><value>업데이트</value></data>
<data name="Update_Check" xml:space="preserve"><value>업데이트 확인</value></data>
<data name="Update_Download" xml:space="preserve"><value>다운로드</value></data>
<data name="Update_Install" xml:space="preserve"><value>설치 후 다시 시작</value></data>
<data name="Update_Status" xml:space="preserve"><value>상태</value></data>
<data name="Update_Log" xml:space="preserve"><value>로그</value></data>
<data name="Update_NewVersion" xml:space="preserve"><value>새 버전:</value></data>
<!-- About -->
<data name="About_Title" xml:space="preserve"><value>CaptureImage 정보</value></data>
<data name="About_Tagline" xml:space="preserve"><value>스크린샷 키가 없는 게임을 위한 가벼운 Windows 화면 캡처 도구.</value></data>
<data name="About_AppLabel" xml:space="preserve"><value>앱</value></data>
<data name="About_VersionLabel" xml:space="preserve"><value>버전</value></data>
<data name="About_LicenseLabel" xml:space="preserve"><value>라이선스</value></data>
<data name="About_DeveloperLabel" xml:space="preserve"><value>개발자</value></data>
<data name="About_RepositoryLabel" xml:space="preserve"><value>저장소</value></data>
<data name="About_AiSection" xml:space="preserve"><value>AI 보조 개발</value></data>
<data name="About_DisclaimersSection" xml:space="preserve"><value>면책 조항</value></data>
<data name="About_TranslationDisclaimer" xml:space="preserve"><value>번역</value></data>
<data name="About_TranslationDisclaimerBody" xml:space="preserve"><value>일본어, 중국어(간체), 한국어, 스페인어 언어 팩은 기계 보조로 번역되었습니다. 용어가 모국어 관습과 일치하지 않을 수 있으며, 일부 기술 용어(hotkey, toast, frame 등)는 의도적으로 영어로 유지되었습니다. 교정에 도움을 주실 원어민 분들의 src/CaptureImage.UI/Resources/Strings/ .resx 파일에 대한 풀 리퀘스트를 환영합니다.</value></data>
<data name="About_CaptureDisclaimer" xml:space="preserve"><value>캡처 지원</value></data>
<data name="About_CaptureLimitationDisclaimerBody" xml:space="preserve"><value>CaptureImage는 Windows.Graphics.Capture를 통해 대부분의 창 모드 및 테두리 없는 게임을 캡처할 수 있지만, 모든 타이틀에서 작동하지는 않습니다. DRM 보호된 표면, 독점 전체 화면 Direct3D 9 게임, 안티치트 후크가 있는 타이틀은 검은 프레임을 반환하거나 캡처를 거부할 수 있습니다. 레거시 앱에는 GDI PrintWindow 폴백이 시도됩니다. 전체 목록은 docs/legal/DISCLAIMER.md §2를 참조하세요.</value></data>
<data name="About_LiabilityDisclaimer" xml:space="preserve"><value>무보증</value></data>
<data name="About_LiabilityDisclaimerBody" xml:space="preserve"><value>CaptureImage는 GPL-3.0-or-later에 따라 어떠한 종류의 보증도 없이 "있는 그대로" 배포됩니다. 작성자는 손실된 스크린샷, 게임 충돌, 안티치트 제재 또는 데이터 손실에 대해 책임을 지지 않습니다. 본인 책임 하에 사용하세요. 전체 내용은 docs/legal/DISCLAIMER.md를 참조하세요.</value></data>
<data name="About_LegalSection" xml:space="preserve"><value>법적 문서</value></data>
<data name="About_ThirdPartySection" xml:space="preserve"><value>타사 구성 요소</value></data>
<data name="About_ThirdPartyHint" xml:space="preserve"><value>위의 "타사 고지"를 클릭하면 업스트림 URL이 포함된 전체 목록이 표시됩니다.</value></data>
<data name="About_OpenDisclaimer" xml:space="preserve"><value>면책 조항</value></data>
<data name="About_OpenPrivacy" xml:space="preserve"><value>개인정보</value></data>
<data name="About_OpenTerms" xml:space="preserve"><value>약관</value></data>
<data name="About_OpenLicense" xml:space="preserve"><value>라이선스 (GPL-3.0)</value></data>
<data name="About_OpenThirdParty" xml:space="preserve"><value>타사 고지</value></data>
<data name="About_OpenContributors" xml:space="preserve"><value>기여자</value></data>
<!-- Log viewer -->
<data name="Log_Title" xml:space="preserve"><value>실시간 로그</value></data>
<data name="Log_Pause" xml:space="preserve"><value>일시 중지</value></data>
<data name="Log_Resume" xml:space="preserve"><value>재개</value></data>
<data name="Log_Clear" xml:space="preserve"><value>지우기</value></data>
<data name="Log_EventsCount" xml:space="preserve"><value>{0}개의 이벤트</value></data>
<data name="Log_EmptyState" xml:space="preserve"><value>아직 로그 이벤트가 없습니다. 캡처 엔진의 실시간 이벤트가 여기에 표시됩니다.</value></data>
<data name="Log_Filter" xml:space="preserve"><value>최소 수준:</value></data>
<data name="Log_RevealFolder" xml:space="preserve"><value>폴더 열기</value></data>
<!-- Preview -->
<data name="Preview_Title" xml:space="preserve"><value>미리보기</value></data>
<data name="Preview_Prompt" xml:space="preserve"><value>이 캡처를 저장하시겠습니까?</value></data>
<data name="Preview_Save" xml:space="preserve"><value>저장</value></data>
<data name="Preview_Discard" xml:space="preserve"><value>버리기</value></data>
<!-- Toasts -->
<data name="Toast_CaptureSaved" xml:space="preserve"><value>캡처 저장됨</value></data>
<data name="Toast_CaptureFailed" xml:space="preserve"><value>캡처 실패</value></data>
<data name="Toast_SettingsImported" xml:space="preserve"><value>설정 가져옴</value></data>
<data name="Toast_SettingsExported" xml:space="preserve"><value>설정 내보냄</value></data>
<data name="Toast_Error" xml:space="preserve"><value>오류</value></data>
<!-- Tray menu -->
<data name="Tray_ShowWindow" xml:space="preserve"><value>CaptureImage 표시</value></data>
<data name="Tray_OpenFolder" xml:space="preserve"><value>캡처 폴더 열기</value></data>
<data name="Tray_Exit" xml:space="preserve"><value>종료</value></data>
</root>
@@ -60,6 +60,10 @@
<!-- Settings -->
<data name="Settings_Title" xml:space="preserve"><value>Settings</value></data>
<data name="Settings_Language" xml:space="preserve"><value>Language</value></data>
<data name="Settings_Theme" xml:space="preserve"><value>Theme</value></data>
<data name="Settings_Theme_System" xml:space="preserve"><value>System</value></data>
<data name="Settings_Theme_Light" xml:space="preserve"><value>Light</value></data>
<data name="Settings_Theme_Dark" xml:space="preserve"><value>Dark</value></data>
<data name="Settings_Hotkey" xml:space="preserve"><value>Capture hotkey</value></data>
<data name="Settings_HotkeyHint" xml:space="preserve"><value>Click Record and press a combination. Esc cancels. Reset restores Ctrl+Shift+F12.</value></data>
<data name="Settings_HotkeyRecord" xml:space="preserve"><value>Record…</value></data>
@@ -81,6 +85,8 @@
<data name="Settings_BrowseTooltip" xml:space="preserve"><value>Pick a folder instead of typing the path.</value></data>
<data name="Settings_FileNameTemplate" xml:space="preserve"><value>File name template</value></data>
<data name="Settings_PreviewBeforeSave" xml:space="preserve"><value>Preview each capture before saving</value></data>
<data name="Settings_AutoSwitchOnAltTab" xml:space="preserve"><value>Auto-switch target when I Alt-Tab</value></data>
<data name="Settings_AutoSwitchOnAltTabHint" xml:space="preserve"><value>The selected target follows the foreground window. Apps not in the target list keep your current selection.</value></data>
<data name="Settings_MinimizeToTray" xml:space="preserve"><value>Close button minimizes to tray</value></data>
<data name="Settings_SoundEnabled" xml:space="preserve"><value>Play capture sound</value></data>
<data name="Settings_Import" xml:space="preserve"><value>Import…</value></data>
@@ -112,7 +118,7 @@
<data name="About_AiSection" xml:space="preserve"><value>AI-assisted development</value></data>
<data name="About_DisclaimersSection" xml:space="preserve"><value>Disclaimers</value></data>
<data name="About_TranslationDisclaimer" xml:space="preserve"><value>Translations</value></data>
<data name="About_TranslationDisclaimerBody" xml:space="preserve"><value>Vietnamese and Arabic language packs are machine-assisted. Terminology may not match native conventions, and some technical words (hotkey, toast, frame, etc.) are kept in English on purpose. Native speakers willing to proofread are warmly invited to submit pull requests against the .resx files in src/CaptureImage.UI/Resources/Strings/.</value></data>
<data name="About_TranslationDisclaimerBody" xml:space="preserve"><value>The Vietnamese, Arabic, Japanese, Simplified Chinese, Korean, and Spanish language packs are machine-assisted. Terminology may not match native conventions, and some technical words (hotkey, toast, frame, etc.) are kept in English on purpose. Native speakers willing to proofread are warmly invited to submit pull requests against the .resx files in src/CaptureImage.UI/Resources/Strings/.</value></data>
<data name="About_CaptureDisclaimer" xml:space="preserve"><value>Capture support</value></data>
<data name="About_CaptureLimitationDisclaimerBody" xml:space="preserve"><value>CaptureImage can capture most windowed and borderless games via Windows.Graphics.Capture, but not every title works. DRM-protected surfaces, exclusive-fullscreen Direct3D 9 games, and titles with anti-cheat hooks may return black frames or refuse capture. A GDI PrintWindow fallback is attempted for legacy apps. See docs/legal/DISCLAIMER.md §2 for the full list.</value></data>
<data name="About_LiabilityDisclaimer" xml:space="preserve"><value>No warranty</value></data>
@@ -60,6 +60,10 @@
<!-- Settings -->
<data name="Settings_Title" xml:space="preserve"><value>Cài đặt</value></data>
<data name="Settings_Language" xml:space="preserve"><value>Ngôn ngữ</value></data>
<data name="Settings_Theme" xml:space="preserve"><value>Giao diện</value></data>
<data name="Settings_Theme_System" xml:space="preserve"><value>Theo hệ thống</value></data>
<data name="Settings_Theme_Light" xml:space="preserve"><value>Sáng</value></data>
<data name="Settings_Theme_Dark" xml:space="preserve"><value>Tối</value></data>
<data name="Settings_Hotkey" xml:space="preserve"><value>Hotkey chụp</value></data>
<data name="Settings_HotkeyHint" xml:space="preserve"><value>Nhấn Ghi rồi nhấn tổ hợp phím. Esc để huỷ. Đặt lại sẽ khôi phục Ctrl+Shift+F12.</value></data>
<data name="Settings_HotkeyRecord" xml:space="preserve"><value>Ghi…</value></data>
@@ -81,6 +85,8 @@
<data name="Settings_BrowseTooltip" xml:space="preserve"><value>Chọn thư mục thay vì phải gõ đường dẫn.</value></data>
<data name="Settings_FileNameTemplate" xml:space="preserve"><value>Mẫu tên tệp</value></data>
<data name="Settings_PreviewBeforeSave" xml:space="preserve"><value>Xem trước từng ảnh chụp trước khi lưu</value></data>
<data name="Settings_AutoSwitchOnAltTab" xml:space="preserve"><value>Tự động chuyển mục tiêu khi Alt-Tab</value></data>
<data name="Settings_AutoSwitchOnAltTabHint" xml:space="preserve"><value>Mục tiêu được chọn sẽ theo cửa sổ đang foreground. Các ứng dụng không có trong danh sách sẽ giữ nguyên lựa chọn hiện tại.</value></data>
<data name="Settings_MinimizeToTray" xml:space="preserve"><value>Nút đóng sẽ thu nhỏ xuống tray</value></data>
<data name="Settings_SoundEnabled" xml:space="preserve"><value>Phát âm thanh khi chụp</value></data>
<data name="Settings_Import" xml:space="preserve"><value>Nhập…</value></data>
@@ -112,7 +118,7 @@
<data name="About_AiSection" xml:space="preserve"><value>Phát triển có hỗ trợ AI</value></data>
<data name="About_DisclaimersSection" xml:space="preserve"><value>Tuyên bố miễn trừ</value></data>
<data name="About_TranslationDisclaimer" xml:space="preserve"><value>Bản dịch</value></data>
<data name="About_TranslationDisclaimerBody" xml:space="preserve"><value>Gói ngôn ngữ tiếng Việt và tiếng Ả Rập đang dùng bản dịch máy. Thuật ngữ có thể không khớp với quy ước bản ngữ, và một số từ kỹ thuật (hotkey, toast, frame, v.v.) được giữ tiếng Anh có chủ đích. Người bản ngữ sẵn lòng hiệu đính xin gửi pull request vào các tệp .resx trong src/CaptureImage.UI/Resources/Strings/.</value></data>
<data name="About_TranslationDisclaimerBody" xml:space="preserve"><value>Các gói ngôn ngữ tiếng Việt, tiếng Ả Rập, tiếng Nhật, tiếng Trung giản thể, tiếng Hàn và tiếng Tây Ban Nha đang dùng bản dịch máy. Thuật ngữ có thể không khớp với quy ước bản ngữ, và một số từ kỹ thuật (hotkey, toast, frame, v.v.) được giữ tiếng Anh có chủ đích. Người bản ngữ sẵn lòng hiệu đính xin gửi pull request vào các tệp .resx trong src/CaptureImage.UI/Resources/Strings/.</value></data>
<data name="About_CaptureDisclaimer" xml:space="preserve"><value>Khả năng chụp</value></data>
<data name="About_CaptureLimitationDisclaimerBody" xml:space="preserve"><value>CaptureImage có thể chụp hầu hết game cửa sổ và borderless qua Windows.Graphics.Capture, nhưng không phải game nào cũng hoạt động. Bề mặt có DRM, game Direct3D 9 exclusive-fullscreen, và game có hook anti-cheat có thể trả khung đen hoặc từ chối chụp. Cơ chế dự phòng GDI PrintWindow được thử cho ứng dụng cũ. Xem docs/legal/DISCLAIMER.md §2 để biết danh sách đầy đủ.</value></data>
<data name="About_LiabilityDisclaimer" xml:space="preserve"><value>Không bảo hành</value></data>
@@ -0,0 +1,164 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="xml:space" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype"><value>text/microsoft-resx</value></resheader>
<resheader name="version"><value>2.0</value></resheader>
<resheader name="reader"><value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value></resheader>
<resheader name="writer"><value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value></resheader>
<!-- Navigation -->
<data name="Nav_Dashboard" xml:space="preserve"><value>仪表板</value></data>
<data name="Nav_Update" xml:space="preserve"><value>更新</value></data>
<data name="Nav_Settings" xml:space="preserve"><value>设置</value></data>
<data name="Nav_About" xml:space="preserve"><value>关于</value></data>
<data name="Nav_LogViewer" xml:space="preserve"><value>日志</value></data>
<!-- Dashboard -->
<data name="Dashboard_Title" xml:space="preserve"><value>仪表板</value></data>
<data name="Dashboard_Subtitle" xml:space="preserve"><value>选择目标并启动 — 按热键即可截图。</value></data>
<data name="Dashboard_Refresh" xml:space="preserve"><value>刷新</value></data>
<data name="Dashboard_Arm" xml:space="preserve"><value>启动</value></data>
<data name="Dashboard_Disarm" xml:space="preserve"><value>停止</value></data>
<data name="Dashboard_StatusIdle" xml:space="preserve"><value>空闲 — 选择目标并启动后开始。</value></data>
<data name="Dashboard_StatusArmed" xml:space="preserve"><value>已启动:按 {0} 截取 {1}。</value></data>
<data name="Dashboard_StatusCapturing" xml:space="preserve"><value>正在截取 {0}…</value></data>
<data name="Dashboard_StatusDisarmed" xml:space="preserve"><value>已停止。</value></data>
<data name="Dashboard_StatusSaved" xml:space="preserve"><value>已保存:{0} ({1}x{2}, {3} ms)</value></data>
<data name="Dashboard_StatusFailed" xml:space="preserve"><value>截图失败 ({0}):{1}</value></data>
<data name="Dashboard_TargetsCount" xml:space="preserve"><value>显示 {0} 个目标</value></data>
<data name="Dashboard_Loading" xml:space="preserve"><value>正在加载…</value></data>
<data name="Dashboard_EmptyState" xml:space="preserve"><value>没有可截取的可见窗口 — 启动游戏或应用后单击"刷新"。</value></data>
<data name="Dashboard_LogToggle" xml:space="preserve"><value>切换实时日志面板</value></data>
<data name="Dashboard_SteamBadge" xml:space="preserve"><value>STEAM</value></data>
<data name="Dashboard_SteamBadgeTooltip" xml:space="preserve"><value>Steam 游戏:{0} (AppId {1})。可通过 Steam 叠加层使用 F12 截图。部分受反作弊保护的游戏可能会阻止外部截图。</value></data>
<!-- Settings -->
<data name="Settings_Title" xml:space="preserve"><value>设置</value></data>
<data name="Settings_Language" xml:space="preserve"><value>语言</value></data>
<data name="Settings_Theme" xml:space="preserve"><value>主题</value></data>
<data name="Settings_Theme_System" xml:space="preserve"><value>系统</value></data>
<data name="Settings_Theme_Light" xml:space="preserve"><value>浅色</value></data>
<data name="Settings_Theme_Dark" xml:space="preserve"><value>深色</value></data>
<data name="Settings_Hotkey" xml:space="preserve"><value>截图热键</value></data>
<data name="Settings_HotkeyHint" xml:space="preserve"><value>单击"录制"并按下组合键。Esc 取消。"重置"将恢复 Ctrl+Shift+F12。</value></data>
<data name="Settings_HotkeyRecord" xml:space="preserve"><value>录制…</value></data>
<data name="Settings_HotkeyCancel" xml:space="preserve"><value>取消</value></data>
<data name="Settings_HotkeyReset" xml:space="preserve"><value>重置</value></data>
<data name="Settings_HotkeyRecorderPrompt" xml:space="preserve"><value>请按下组合键(按 Esc 取消)…</value></data>
<data name="Settings_HotkeyErrorNoPrimary" xml:space="preserve"><value>请选择主键(例如字母键或 F 键)。</value></data>
<data name="Settings_HotkeyErrorModifierOnly" xml:space="preserve"><value>仅修饰键不够 — 请添加字母或 F 键。</value></data>
<data name="Settings_HotkeyErrorNeedsModifier" xml:space="preserve"><value>普通字母和数字至少需要一个修饰键(Ctrl/Alt/Shift/Win)。</value></data>
<data name="Settings_HotkeyErrorReserved" xml:space="preserve"><value>该组合键已被 Windows 保留,无法使用。</value></data>
<data name="Settings_HotkeyConflictWarning" xml:space="preserve"><value>另一个应用程序可能已经占用了该组合键 — 当该应用运行时可能不会触发。</value></data>
<data name="Settings_Format" xml:space="preserve"><value>默认格式</value></data>
<data name="Settings_JpegQuality" xml:space="preserve"><value>JPEG 质量</value></data>
<data name="Settings_WebpQuality" xml:space="preserve"><value>WebP 质量</value></data>
<data name="Settings_OutputFolder" xml:space="preserve"><value>输出文件夹</value></data>
<data name="Settings_OutputFolderDefault" xml:space="preserve"><value>(默认:Pictures\CaptureImage)</value></data>
<data name="Settings_Browse" xml:space="preserve"><value>浏览…</value></data>
<data name="Settings_BrowseTitle" xml:space="preserve"><value>选择输出文件夹</value></data>
<data name="Settings_BrowseTooltip" xml:space="preserve"><value>选择文件夹而不是手动输入路径。</value></data>
<data name="Settings_FileNameTemplate" xml:space="preserve"><value>文件名模板</value></data>
<data name="Settings_PreviewBeforeSave" xml:space="preserve"><value>保存前预览每张截图</value></data>
<data name="Settings_AutoSwitchOnAltTab" xml:space="preserve"><value>Alt-Tab 时自动切换目标</value></data>
<data name="Settings_AutoSwitchOnAltTabHint" xml:space="preserve"><value>所选目标将跟随前台窗口。不在目标列表中的应用将保留当前选择。</value></data>
<data name="Settings_MinimizeToTray" xml:space="preserve"><value>关闭按钮最小化到系统托盘</value></data>
<data name="Settings_SoundEnabled" xml:space="preserve"><value>播放截图音效</value></data>
<data name="Settings_Import" xml:space="preserve"><value>导入…</value></data>
<data name="Settings_Export" xml:space="preserve"><value>导出…</value></data>
<data name="Settings_ImportTitle" xml:space="preserve"><value>导入设置</value></data>
<data name="Settings_ExportTitle" xml:space="preserve"><value>导出设置</value></data>
<data name="Settings_OpenFile" xml:space="preserve"><value>打开设置文件</value></data>
<data name="Settings_Logging" xml:space="preserve"><value>日志</value></data>
<data name="Settings_LogLevel" xml:space="preserve"><value>最低日志级别</value></data>
<data name="Settings_LogLevelHint" xml:space="preserve"><value>过滤滚动日志文件和查看器。支持诊断时选 Debug,日常使用选 Information,如需安静可选 Warning 或 Error。</value></data>
<!-- Update -->
<data name="Update_Title" xml:space="preserve"><value>更新</value></data>
<data name="Update_Check" xml:space="preserve"><value>检查更新</value></data>
<data name="Update_Download" xml:space="preserve"><value>下载</value></data>
<data name="Update_Install" xml:space="preserve"><value>安装并重启</value></data>
<data name="Update_Status" xml:space="preserve"><value>状态</value></data>
<data name="Update_Log" xml:space="preserve"><value>日志</value></data>
<data name="Update_NewVersion" xml:space="preserve"><value>新版本:</value></data>
<!-- About -->
<data name="About_Title" xml:space="preserve"><value>关于 CaptureImage</value></data>
<data name="About_Tagline" xml:space="preserve"><value>面向无内置截图键游戏的轻量级 Windows 屏幕截图工具。</value></data>
<data name="About_AppLabel" xml:space="preserve"><value>应用</value></data>
<data name="About_VersionLabel" xml:space="preserve"><value>版本</value></data>
<data name="About_LicenseLabel" xml:space="preserve"><value>许可证</value></data>
<data name="About_DeveloperLabel" xml:space="preserve"><value>开发者</value></data>
<data name="About_RepositoryLabel" xml:space="preserve"><value>仓库</value></data>
<data name="About_AiSection" xml:space="preserve"><value>AI 辅助开发</value></data>
<data name="About_DisclaimersSection" xml:space="preserve"><value>免责声明</value></data>
<data name="About_TranslationDisclaimer" xml:space="preserve"><value>翻译</value></data>
<data name="About_TranslationDisclaimerBody" xml:space="preserve"><value>日语、简体中文、韩语和西班牙语语言包采用机器辅助翻译。术语可能与母语习惯不一致,部分技术术语(hotkey、toast、frame 等)有意保留为英文。欢迎母语为相关语言的志愿者校对,可通过对 src/CaptureImage.UI/Resources/Strings/ 下的 .resx 文件提交 Pull Request。</value></data>
<data name="About_CaptureDisclaimer" xml:space="preserve"><value>截图支持</value></data>
<data name="About_CaptureLimitationDisclaimerBody" xml:space="preserve"><value>CaptureImage 通过 Windows.Graphics.Capture 可截取大多数窗口化和无边框游戏,但并非所有游戏都受支持。受 DRM 保护的画面、独占全屏 Direct3D 9 游戏以及带反作弊钩子的游戏可能会返回黑屏或拒绝截图。对于旧应用会尝试 GDI PrintWindow 回退。完整列表请参阅 docs/legal/DISCLAIMER.md §2。</value></data>
<data name="About_LiabilityDisclaimer" xml:space="preserve"><value>无担保</value></data>
<data name="About_LiabilityDisclaimerBody" xml:space="preserve"><value>CaptureImage 按 GPL-3.0-or-later 协议"按原样"分发,不提供任何形式的担保。作者对截图丢失、游戏崩溃、反作弊处罚或数据丢失不承担责任。使用风险自负。完整文本请参阅 docs/legal/DISCLAIMER.md。</value></data>
<data name="About_LegalSection" xml:space="preserve"><value>法律文件</value></data>
<data name="About_ThirdPartySection" xml:space="preserve"><value>第三方组件</value></data>
<data name="About_ThirdPartyHint" xml:space="preserve"><value>单击上方"第三方声明"查看包含上游 URL 的完整列表。</value></data>
<data name="About_OpenDisclaimer" xml:space="preserve"><value>免责声明</value></data>
<data name="About_OpenPrivacy" xml:space="preserve"><value>隐私</value></data>
<data name="About_OpenTerms" xml:space="preserve"><value>条款</value></data>
<data name="About_OpenLicense" xml:space="preserve"><value>许可证 (GPL-3.0)</value></data>
<data name="About_OpenThirdParty" xml:space="preserve"><value>第三方声明</value></data>
<data name="About_OpenContributors" xml:space="preserve"><value>贡献者</value></data>
<!-- Log viewer -->
<data name="Log_Title" xml:space="preserve"><value>实时日志</value></data>
<data name="Log_Pause" xml:space="preserve"><value>暂停</value></data>
<data name="Log_Resume" xml:space="preserve"><value>继续</value></data>
<data name="Log_Clear" xml:space="preserve"><value>清除</value></data>
<data name="Log_EventsCount" xml:space="preserve"><value>{0} 条事件</value></data>
<data name="Log_EmptyState" xml:space="preserve"><value>尚无日志事件。截图引擎的实时事件将显示在此处。</value></data>
<data name="Log_Filter" xml:space="preserve"><value>最低级别:</value></data>
<data name="Log_RevealFolder" xml:space="preserve"><value>打开文件夹</value></data>
<!-- Preview -->
<data name="Preview_Title" xml:space="preserve"><value>预览</value></data>
<data name="Preview_Prompt" xml:space="preserve"><value>是否保存此截图?</value></data>
<data name="Preview_Save" xml:space="preserve"><value>保存</value></data>
<data name="Preview_Discard" xml:space="preserve"><value>放弃</value></data>
<!-- Toasts -->
<data name="Toast_CaptureSaved" xml:space="preserve"><value>截图已保存</value></data>
<data name="Toast_CaptureFailed" xml:space="preserve"><value>截图失败</value></data>
<data name="Toast_SettingsImported" xml:space="preserve"><value>设置已导入</value></data>
<data name="Toast_SettingsExported" xml:space="preserve"><value>设置已导出</value></data>
<data name="Toast_Error" xml:space="preserve"><value>错误</value></data>
<!-- Tray menu -->
<data name="Tray_ShowWindow" xml:space="preserve"><value>显示 CaptureImage</value></data>
<data name="Tray_OpenFolder" xml:space="preserve"><value>打开截图文件夹</value></data>
<data name="Tray_Exit" xml:space="preserve"><value>退出</value></data>
</root>
@@ -32,6 +32,23 @@
</ComboBox>
</StackPanel>
<!-- Theme: System / Light / Dark. ItemTemplate binds to ThemeOption.DisplayLabel
(already localized in the VM by RebuildThemeOptions). -->
<StackPanel Spacing="4">
<TextBlock Text="{Binding ThemeLabel}"
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
FontSize="{StaticResource FontSizeSmall}" />
<ComboBox ItemsSource="{Binding SupportedThemes}"
SelectedItem="{Binding SelectedTheme, Mode=TwoWay}"
HorizontalAlignment="Stretch">
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding DisplayLabel}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
</StackPanel>
<!-- Hotkey: HotkeyRecorder custom control owns the key-capture flow. Bound
to the SettingsViewModel.Hotkey child VM (HotkeyBindingViewModel). -->
<StackPanel Spacing="4">
@@ -120,6 +137,15 @@
<StackPanel Spacing="6">
<CheckBox Content="{Binding PreviewBeforeSaveLabel}"
IsChecked="{Binding PreviewBeforeSave, Mode=TwoWay}" />
<StackPanel Spacing="2">
<CheckBox Content="{Binding AutoSwitchOnAltTabLabel}"
IsChecked="{Binding AutoSwitchOnAltTab, Mode=TwoWay}" />
<TextBlock Text="{Binding AutoSwitchOnAltTabHint}"
FontSize="{StaticResource FontSizeCaption}"
TextWrapping="Wrap"
Margin="28,0,0,0"
Foreground="{ThemeResource TextFillColorSecondaryBrush}" />
</StackPanel>
<CheckBox Content="{Binding MinimizeToTrayLabel}"
IsChecked="{Binding MinimizeToTray, Mode=TwoWay}" />
<CheckBox Content="{Binding SoundEnabledLabel}"
@@ -137,14 +137,14 @@ public sealed partial class AboutViewModel : ViewModelBase
var full = Path.Combine(basePath, relativePath);
if (!File.Exists(full))
{
_logger.LogWarning("Document not found: {Path}", full);
_logger.LogWarning("Document not found at {Path}.", full);
return;
}
Process.Start(new ProcessStartInfo(full) { UseShellExecute = true });
}
catch (Exception ex)
{
_logger.LogError(ex, "Failed to open document {Path}.", relativePath);
_logger.LogError(ex, "Couldn't open the document at {Path}.", relativePath);
}
}
@@ -156,7 +156,7 @@ public sealed partial class AboutViewModel : ViewModelBase
}
catch (Exception ex)
{
_logger.LogError(ex, "Failed to open URL {Url}.", url);
_logger.LogError(ex, "Couldn't open the link {Url}.", url);
}
}
}
@@ -20,6 +20,7 @@ public sealed partial class DashboardViewModel : ViewModelBase, IDisposable
private readonly IProcessDetector _detector;
private readonly IProcessWatcher _watcher;
private readonly IForegroundWindowWatcher _foregroundWatcher;
private readonly IHotkeyService _hotkeys;
private readonly ICaptureEngine _captureEngine;
private readonly IReadOnlyList<IImageEncoder> _encoders;
@@ -74,6 +75,7 @@ public sealed partial class DashboardViewModel : ViewModelBase, IDisposable
public DashboardViewModel(
IProcessDetector detector,
IProcessWatcher watcher,
IForegroundWindowWatcher foregroundWatcher,
IHotkeyService hotkeys,
ICaptureEngine captureEngine,
IEnumerable<IImageEncoder> encoders,
@@ -87,6 +89,7 @@ public sealed partial class DashboardViewModel : ViewModelBase, IDisposable
{
_detector = detector;
_watcher = watcher;
_foregroundWatcher = foregroundWatcher;
_hotkeys = hotkeys;
_captureEngine = captureEngine;
_encoders = new List<IImageEncoder>(encoders).AsReadOnly();
@@ -106,6 +109,8 @@ public sealed partial class DashboardViewModel : ViewModelBase, IDisposable
_watcher.Start();
_hotkeys.Triggered += OnHotkeyTriggered;
_settings.Changed += OnSettingsChanged;
_foregroundWatcher.ForegroundChanged += OnForegroundChanged;
ApplyAutoSwitchSetting();
Localization.PropertyChanged += OnLocalizationChanged;
@@ -159,7 +164,7 @@ public sealed partial class DashboardViewModel : ViewModelBase, IDisposable
}
catch (Exception ex)
{
_logger.LogError(ex, "Failed to enumerate capture targets.");
_logger.LogError(ex, "Couldn't load the list of windows. Try clicking Refresh again.");
}
finally
{
@@ -336,7 +341,7 @@ public sealed partial class DashboardViewModel : ViewModelBase, IDisposable
}
catch (Exception ex)
{
_logger.LogError(ex, "Capture engine threw.");
_logger.LogError(ex, "Picture capture failed: the capture engine reported an error.");
_stateMachine.Fire(CaptureTrigger.ErrorOccurred);
_toasts.ShowError(Localization["Toast_CaptureFailed"], ex.Message);
return;
@@ -387,7 +392,7 @@ public sealed partial class DashboardViewModel : ViewModelBase, IDisposable
}
catch (Exception ex)
{
_logger.LogError(ex, "Save path threw unexpectedly.");
_logger.LogError(ex, "Picture capture failed while saving: {Reason}", ex.Message);
_stateMachine.Fire(CaptureTrigger.ErrorOccurred);
_toasts.ShowError(Localization["Toast_CaptureFailed"], ex.Message);
}
@@ -510,6 +515,50 @@ public sealed partial class DashboardViewModel : ViewModelBase, IDisposable
{
UpdateStatusForState();
}
ApplyAutoSwitchSetting();
}
private void ApplyAutoSwitchSetting()
{
var enabled = _settings.Current.Capture.AutoSwitchOnAltTab;
if (enabled && !_foregroundWatcher.IsRunning)
{
_foregroundWatcher.Start();
}
else if (!enabled && _foregroundWatcher.IsRunning)
{
_foregroundWatcher.Stop();
}
}
private void OnForegroundChanged(object? sender, nint hwnd)
{
// Watcher runs on a thread-pool timer; marshal to the UI thread before touching
// SelectedTarget so binding updates land on the dispatcher.
_dispatcher.Post(() =>
{
if (_disposed) return;
if (!_settings.Current.Capture.AutoSwitchOnAltTab) return;
foreach (var vm in Targets)
{
if (vm.Target.WindowHandle == hwnd)
{
if (!ReferenceEquals(SelectedTarget, vm))
{
SelectedTarget = vm;
_logger.LogDebug(
"Auto-switched target to PID {Pid} ({Name}).",
vm.ProcessId, vm.DisplayName);
}
return;
}
}
// No match — keep the current selection. Clearing it would surprise users
// who Alt-Tab to apps that are filtered out of the target list (Explorer,
// Settings, etc.).
});
}
/// <summary>
@@ -548,6 +597,8 @@ public sealed partial class DashboardViewModel : ViewModelBase, IDisposable
_hotkeys.Triggered -= OnHotkeyTriggered;
_watcher.Changed -= OnProcessChanged;
_settings.Changed -= OnSettingsChanged;
_foregroundWatcher.ForegroundChanged -= OnForegroundChanged;
_foregroundWatcher.Stop();
_stateMachine.StateChanged -= OnStateChanged;
Localization.PropertyChanged -= OnLocalizationChanged;
_pendingRefresh?.Cancel();
@@ -193,7 +193,7 @@ public sealed partial class LogViewerViewModel : ViewModelBase, IDisposable
}
catch (Exception ex)
{
_logger.LogWarning(ex, "Failed to open logs folder {Path}.", folder);
_logger.LogWarning(ex, "Couldn't open the logs folder at {Path}.", folder);
_toasts.ShowError(Localization["Toast_Error"], ex.Message);
}
}
@@ -2,6 +2,7 @@ using System;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Globalization;
using System.Linq;
using System.Threading.Tasks;
using CaptureImage.Core.Abstractions;
using CaptureImage.Core.Models;
@@ -32,6 +33,8 @@ public sealed partial class SettingsViewModel : ViewModelBase, IDisposable
public ObservableCollection<CultureInfo> SupportedCultures { get; }
public ObservableCollection<ThemeOption> SupportedThemes { get; } = new();
public ObservableCollection<ImageFormat> SupportedFormats { get; } =
new(new[] { ImageFormat.Png, ImageFormat.Jpeg, ImageFormat.Webp, ImageFormat.Tiff });
@@ -46,6 +49,9 @@ public sealed partial class SettingsViewModel : ViewModelBase, IDisposable
[ObservableProperty]
private CultureInfo _selectedCulture;
[ObservableProperty]
private ThemeOption? _selectedTheme;
[ObservableProperty]
private ImageFormat _defaultFormat;
@@ -64,6 +70,9 @@ public sealed partial class SettingsViewModel : ViewModelBase, IDisposable
[ObservableProperty]
private bool _previewBeforeSave;
[ObservableProperty]
private bool _autoSwitchOnAltTab;
[ObservableProperty]
private bool _minimizeToTray;
@@ -87,6 +96,7 @@ public sealed partial class SettingsViewModel : ViewModelBase, IDisposable
public string TitleLabel => Localization["Settings_Title"];
public string LanguageLabel => Localization["Settings_Language"];
public string ThemeLabel => Localization["Settings_Theme"];
public string HotkeyLabel => Localization["Settings_Hotkey"];
public string HotkeyHint => Localization["Settings_HotkeyHint"];
public string FormatLabel => Localization["Settings_Format"];
@@ -98,6 +108,8 @@ public sealed partial class SettingsViewModel : ViewModelBase, IDisposable
public string BrowseTooltip => Localization["Settings_BrowseTooltip"];
public string FileNameTemplateLabel => Localization["Settings_FileNameTemplate"];
public string PreviewBeforeSaveLabel => Localization["Settings_PreviewBeforeSave"];
public string AutoSwitchOnAltTabLabel => Localization["Settings_AutoSwitchOnAltTab"];
public string AutoSwitchOnAltTabHint => Localization["Settings_AutoSwitchOnAltTabHint"];
public string MinimizeToTrayLabel => Localization["Settings_MinimizeToTray"];
public string SoundEnabledLabel => Localization["Settings_SoundEnabled"];
public string ImportLabel => Localization["Settings_Import"];
@@ -125,6 +137,8 @@ public sealed partial class SettingsViewModel : ViewModelBase, IDisposable
SupportedCultures = new ObservableCollection<CultureInfo>(localization.SupportedCultures);
_selectedCulture = FindCulture(settings.Current.Culture) ?? SupportedCultures[0];
RebuildThemeOptions();
Hydrate();
_settings.Changed += OnSettingsStoreChanged;
@@ -149,10 +163,12 @@ public sealed partial class SettingsViewModel : ViewModelBase, IDisposable
if (e.PropertyName is "Item[]" or nameof(ILocalizationService.CurrentCulture))
{
OnPropertyChanged(nameof(Localization));
RebuildThemeOptions();
// Plain-property refresh for every localized label the view binds to —
// indexer-path bindings don't wake reliably on Localization-reference ping.
OnPropertyChanged(nameof(TitleLabel));
OnPropertyChanged(nameof(LanguageLabel));
OnPropertyChanged(nameof(ThemeLabel));
OnPropertyChanged(nameof(HotkeyLabel));
OnPropertyChanged(nameof(HotkeyHint));
OnPropertyChanged(nameof(FormatLabel));
@@ -164,6 +180,8 @@ public sealed partial class SettingsViewModel : ViewModelBase, IDisposable
OnPropertyChanged(nameof(BrowseTooltip));
OnPropertyChanged(nameof(FileNameTemplateLabel));
OnPropertyChanged(nameof(PreviewBeforeSaveLabel));
OnPropertyChanged(nameof(AutoSwitchOnAltTabLabel));
OnPropertyChanged(nameof(AutoSwitchOnAltTabHint));
OnPropertyChanged(nameof(MinimizeToTrayLabel));
OnPropertyChanged(nameof(SoundEnabledLabel));
OnPropertyChanged(nameof(ImportLabel));
@@ -202,12 +220,14 @@ public sealed partial class SettingsViewModel : ViewModelBase, IDisposable
{
var current = _settings.Current;
SelectedCulture = FindCulture(current.Culture) ?? SupportedCultures[0];
SelectedTheme = FindTheme(current.Theme) ?? SupportedThemes[0];
DefaultFormat = current.Capture.DefaultFormat;
JpegQuality = current.Capture.JpegQuality;
WebpQuality = current.Capture.WebpQuality;
OutputDirectory = current.Capture.OutputDirectory;
FileNameTemplate = current.Capture.FileNameTemplate;
PreviewBeforeSave = current.Capture.PreviewBeforeSave;
AutoSwitchOnAltTab = current.Capture.AutoSwitchOnAltTab;
MinimizeToTray = current.UI.MinimizeToTray;
SoundEnabled = current.UI.SoundEnabled;
// Fall back to the first supported value if the persisted string doesn't match —
@@ -227,6 +247,44 @@ public sealed partial class SettingsViewModel : ViewModelBase, IDisposable
if (_suppressPush || value is null) return;
_settings.Update(s => s with { Culture = value.Name });
Localization.SetCulture(value);
_logger.LogInformation("Language switched to {Code} ({Name}).", value.Name, value.NativeName);
}
partial void OnSelectedThemeChanged(ThemeOption? value)
{
if (_suppressPush || value is null) return;
_settings.Update(s => s with { Theme = value.Code });
_logger.LogInformation("Theme switched to {Theme}.", value.Code);
}
private ThemeOption? FindTheme(string code)
{
foreach (var t in SupportedThemes)
{
if (t.Code.Equals(code, StringComparison.OrdinalIgnoreCase))
{
return t;
}
}
return null;
}
private void RebuildThemeOptions()
{
var keepCode = SelectedTheme?.Code;
SupportedThemes.Clear();
SupportedThemes.Add(new ThemeOption("System", Localization["Settings_Theme_System"]));
SupportedThemes.Add(new ThemeOption("Light", Localization["Settings_Theme_Light"]));
SupportedThemes.Add(new ThemeOption("Dark", Localization["Settings_Theme_Dark"]));
// After a culture switch the bound SelectedTheme reference points at a stale
// option — rebind by Code so the ComboBox shows the right entry.
if (keepCode is not null)
{
_suppressPush = true;
try { SelectedTheme = FindTheme(keepCode) ?? SupportedThemes[0]; }
finally { _suppressPush = false; }
}
}
partial void OnDefaultFormatChanged(ImageFormat value)
@@ -265,6 +323,13 @@ public sealed partial class SettingsViewModel : ViewModelBase, IDisposable
_settings.Update(s => s with { Capture = s.Capture with { PreviewBeforeSave = value } });
}
partial void OnAutoSwitchOnAltTabChanged(bool value)
{
if (_suppressPush) return;
_settings.Update(s => s with { Capture = s.Capture with { AutoSwitchOnAltTab = value } });
_logger.LogInformation("Auto-switch on Alt-Tab {State}.", value ? "enabled" : "disabled");
}
partial void OnMinimizeToTrayChanged(bool value)
{
if (_suppressPush) return;
@@ -275,6 +340,7 @@ public sealed partial class SettingsViewModel : ViewModelBase, IDisposable
{
if (_suppressPush) return;
_settings.Update(s => s with { UI = s.UI with { SoundEnabled = value } });
_logger.LogInformation("Capture sound {State}.", value ? "enabled" : "disabled");
}
partial void OnSelectedLogLevelChanged(string value)
@@ -298,7 +364,7 @@ public sealed partial class SettingsViewModel : ViewModelBase, IDisposable
}
catch (Exception ex)
{
_logger.LogWarning(ex, "Failed to open settings file.");
_logger.LogWarning(ex, "Couldn't open the settings file.");
_toasts.ShowError(Localization["Toast_Error"], ex.Message);
}
}
@@ -318,7 +384,7 @@ public sealed partial class SettingsViewModel : ViewModelBase, IDisposable
}
catch (Exception ex)
{
_logger.LogError(ex, "Settings export failed.");
_logger.LogError(ex, "Couldn't export settings.");
_toasts.ShowError(Localization["Toast_Error"], ex.Message);
}
}
@@ -334,7 +400,7 @@ public sealed partial class SettingsViewModel : ViewModelBase, IDisposable
}
catch (Exception ex)
{
_logger.LogError(ex, "Settings import failed.");
_logger.LogError(ex, "Couldn't import settings.");
_toasts.ShowError(Localization["Toast_Error"], ex.Message);
}
}
@@ -0,0 +1,6 @@
namespace CaptureImage.ViewModels.Settings;
public sealed record ThemeOption(string Code, string DisplayLabel)
{
public override string ToString() => DisplayLabel;
}
@@ -111,7 +111,7 @@ public sealed partial class UpdateViewModel : ViewModelBase, IDisposable
}
catch (Exception ex)
{
_logger.LogError(ex, "Update check failed.");
_logger.LogError(ex, "Couldn't check for updates.");
Status = UpdateStatus.Failed;
}
finally
@@ -139,7 +139,7 @@ public sealed partial class UpdateViewModel : ViewModelBase, IDisposable
}
catch (Exception ex)
{
_logger.LogError(ex, "Update download failed.");
_logger.LogError(ex, "Couldn't download the update.");
Status = UpdateStatus.Failed;
}
finally
@@ -160,7 +160,7 @@ public sealed partial class UpdateViewModel : ViewModelBase, IDisposable
}
catch (Exception ex)
{
_logger.LogError(ex, "Update install failed.");
_logger.LogError(ex, "Couldn't install the update.");
Status = UpdateStatus.Failed;
IsBusy = false;
}
@@ -0,0 +1,47 @@
using CaptureImage.Infrastructure.Processes;
using FluentAssertions;
using Microsoft.Extensions.Logging.Abstractions;
using Xunit;
namespace CaptureImage.Infrastructure.Tests.Processes;
/// <summary>
/// Smoke tests for <see cref="Win32ForegroundWindowWatcher"/> lifecycle. Verifies that
/// construction, idempotent stop, and disposal don't throw — the actual SetWinEventHook
/// path needs a UI thread with a message pump and is exercised manually during QA.
/// </summary>
public class Win32ForegroundWindowWatcherTests
{
[Fact]
public void NewInstance_IsNotRunning()
{
using var watcher = new Win32ForegroundWindowWatcher(
NullLogger<Win32ForegroundWindowWatcher>.Instance);
watcher.IsRunning.Should().BeFalse();
}
[Fact]
public void Stop_WithoutStart_IsNoOp()
{
using var watcher = new Win32ForegroundWindowWatcher(
NullLogger<Win32ForegroundWindowWatcher>.Instance);
var act = () => watcher.Stop();
act.Should().NotThrow();
watcher.IsRunning.Should().BeFalse();
}
[Fact]
public void Dispose_IsIdempotent()
{
var watcher = new Win32ForegroundWindowWatcher(
NullLogger<Win32ForegroundWindowWatcher>.Instance);
watcher.Dispose();
var act = () => watcher.Dispose();
act.Should().NotThrow();
}
}
@@ -47,8 +47,10 @@ public class LocalizationCompletenessTests : IDisposable
"Dashboard_Title", "Dashboard_Subtitle", "Dashboard_Refresh",
"Dashboard_Arm", "Dashboard_Disarm", "Dashboard_StatusIdle",
"Settings_Title", "Settings_Language", "Settings_Hotkey",
"Settings_Theme", "Settings_Theme_System", "Settings_Theme_Light", "Settings_Theme_Dark",
"Settings_Format", "Settings_OutputFolder", "Settings_Browse",
"Settings_PreviewBeforeSave", "Settings_MinimizeToTray", "Settings_SoundEnabled",
"Settings_PreviewBeforeSave", "Settings_AutoSwitchOnAltTab", "Settings_AutoSwitchOnAltTabHint",
"Settings_MinimizeToTray", "Settings_SoundEnabled",
"Settings_Logging", "Settings_LogLevel",
"About_Title", "About_Tagline", "About_VersionLabel", "About_LicenseLabel",
"Update_Title", "Update_Check", "Update_Download", "Update_Install",
@@ -65,7 +67,7 @@ public class LocalizationCompletenessTests : IDisposable
public static IEnumerable<object[]> CultureMatrix()
{
foreach (var culture in new[] { "en-US", "vi-VN", "ar-SA" })
foreach (var culture in new[] { "en-US", "vi-VN", "ar-SA", "ja-JP", "zh-Hans", "ko-KR", "es-ES" })
{
foreach (var key in LoadBearingKeys)
{