From 2391abd5c02c235fac2f8a6f7966af7bbb77bf94 Mon Sep 17 00:00:00 2001 From: zj1022 Date: Wed, 18 Nov 2026 16:02:36 +0800 Subject: [PATCH 1/2] fix: localize mod settings and save existing profiles Use the existing English, Russian and Simplified Chinese catalogs. Rebuild declared group fields from the current controls so saved profiles with case-insensitive property names round-trip without duplicate keys. Fork reference: mingyue8621/Waypoint localization changes. --- docs/launcher.md | 2 +- src/Launcher.Core/ModSettingsForm.cs | 16 +++---- src/Launcher.Core/Resources/Strings.resx | 45 +++++++++++++++++++ src/Launcher.Core/Resources/Strings.ru.resx | 45 +++++++++++++++++++ .../Resources/Strings.zh-CN.resx | 45 +++++++++++++++++++ src/Waypoint/SettingsEditor.cs | 28 +++++++----- tests/Waypoint.Tests/SettingsFormTests.cs | 23 ++++++++++ 7 files changed, 183 insertions(+), 21 deletions(-) diff --git a/docs/launcher.md b/docs/launcher.md index 942662c..70f265b 100644 --- a/docs/launcher.md +++ b/docs/launcher.md @@ -1090,7 +1090,7 @@ in parallel. A failed one opens the operation log. Clicking a row opens the mod's page: its README (Overview, drawn as GitHub-flavoured Markdown with Markdig; images show their alt text, HTML is left out, relative links open the mod's folder on GitHub), its shared settings editor -(all declared types below; written to `data/mods/.json`, which holds only what differs from the defaults, +(labels and choices use the selected interface language when a translation exists; written to `data/mods/.json`, which holds only what differs from the defaults, and a running Gateway reloads the mod), and its releases (Versions, each installable). The page scrolls as one, its heading and tabs with it; the back button stays above it, and the settings' Save bar below it on the Settings tab. Right-clicking a row shows its actions; **Uninstall** asks first. A replaced or uninstalled mod is moved to `Mods/.replaced/