From cae3679ffa8645edf65fb2ded17d981ec49e6346 Mon Sep 17 00:00:00 2001 From: poli0981 <127664709+poli0981@users.noreply.github.com> Date: Wed, 21 Oct 2026 23:13:53 +0700 Subject: [PATCH] fix(ui): say whether this copy updates itself, not "Portable / dev" Settings > Advanced and Portable info showed "Installed" or "Portable / dev". The official portable zip counts as installed (it carries Velopack's updater), so "Portable / dev" only ever meant a build run from source. The labels now read "Installed or portable (updates itself)" and "Development build (doesn't update)", in all five languages; the key is renamed to Settings_RunModeDev. Co-Authored-By: Claude Opus 5.5 --- USAGE.md | 2 +- src/CommandForge.Wpf/Resources/Strings.es.resx | 8 ++++---- src/CommandForge.Wpf/Resources/Strings.ja.resx | 8 ++++---- src/CommandForge.Wpf/Resources/Strings.resx | 8 ++++---- src/CommandForge.Wpf/Resources/Strings.vi.resx | 8 ++++---- src/CommandForge.Wpf/Resources/Strings.zh-Hans.resx | 8 ++++---- src/CommandForge.Wpf/ViewModels/SettingsViewModel.cs | 2 +- src/CommandForge.Wpf/Views/PortableInfoView.xaml.cs | 2 +- tests/CommandForge.Tests/ResxKeyTests.cs | 4 ++-- 9 files changed, 25 insertions(+), 25 deletions(-) diff --git a/USAGE.md b/USAGE.md index afb4f90..c265127 100644 --- a/USAGE.md +++ b/USAGE.md @@ -186,7 +186,7 @@ Under **My commands** you can save your own command lines, such as a `ping` you | **Updates** | Check for updates on startup, the current version, the last check and **Check now**. | | **Backup & profiles** | **Export…** / **Import…** your appearance, behavior and favorites as a `.json` file, and save named profiles (for example "Gaming PC" or "Office") that you can **Apply** or **Delete**. | | **Logs** | Log level, log size, **Open log folder**, **Export logs (.zip)**, **Delete old logs**. | -| **Advanced** | Run mode (Installed or Portable / dev), the config folder, the Debug panel, and **Reset to defaults** (keeps your accepted terms and logs). | +| **Advanced** | Run mode (whether this copy updates itself), the config folder, the Debug panel, and **Reset to defaults** (keeps your accepted terms and logs). | | **About** | Version, license and GitHub links. | Theme, language and font size change immediately; no restart needed. diff --git a/src/CommandForge.Wpf/Resources/Strings.es.resx b/src/CommandForge.Wpf/Resources/Strings.es.resx index af18871..f172d7a 100644 --- a/src/CommandForge.Wpf/Resources/Strings.es.resx +++ b/src/CommandForge.Wpf/Resources/Strings.es.resx @@ -1055,10 +1055,7 @@ Modo de ejecución: - Instalado - - - Portátil / desarrollo + Instalada o portátil (se actualiza sola) Archivo de configuración @@ -2582,4 +2579,7 @@ Los detalles se escribieron en la carpeta de registros: Código y contribuciones + + Compilación de desarrollo (no se actualiza) + diff --git a/src/CommandForge.Wpf/Resources/Strings.ja.resx b/src/CommandForge.Wpf/Resources/Strings.ja.resx index f7fdbac..b3b7fb9 100644 --- a/src/CommandForge.Wpf/Resources/Strings.ja.resx +++ b/src/CommandForge.Wpf/Resources/Strings.ja.resx @@ -1055,10 +1055,7 @@ 実行モード: - インストール版 - - - ポータブル / 開発 + インストール版またはポータブル版 (自動更新) 設定ファイル @@ -2582,4 +2579,7 @@ コードと貢献 + + 開発ビルド (自動更新なし) + diff --git a/src/CommandForge.Wpf/Resources/Strings.resx b/src/CommandForge.Wpf/Resources/Strings.resx index 5549e02..7c0c4a2 100644 --- a/src/CommandForge.Wpf/Resources/Strings.resx +++ b/src/CommandForge.Wpf/Resources/Strings.resx @@ -1055,10 +1055,7 @@ Run mode: - Installed - - - Portable / dev + Installed or portable (updates itself) Config file @@ -2582,4 +2579,7 @@ Details were written to the log folder: Code and contributions + + Development build (doesn't update) + diff --git a/src/CommandForge.Wpf/Resources/Strings.vi.resx b/src/CommandForge.Wpf/Resources/Strings.vi.resx index fae4bf7..0592f62 100644 --- a/src/CommandForge.Wpf/Resources/Strings.vi.resx +++ b/src/CommandForge.Wpf/Resources/Strings.vi.resx @@ -1055,10 +1055,7 @@ Chế độ chạy: - Đã cài đặt - - - Portable / dev + Bản cài đặt hoặc portable (tự cập nhật) File cấu hình @@ -2582,4 +2579,7 @@ Chi tiết đã được ghi vào thư mục log: Mã nguồn và đóng góp + + Bản phát triển (không tự cập nhật) + diff --git a/src/CommandForge.Wpf/Resources/Strings.zh-Hans.resx b/src/CommandForge.Wpf/Resources/Strings.zh-Hans.resx index 23d779c..af0a9f8 100644 --- a/src/CommandForge.Wpf/Resources/Strings.zh-Hans.resx +++ b/src/CommandForge.Wpf/Resources/Strings.zh-Hans.resx @@ -1055,10 +1055,7 @@ 运行模式: - 已安装 - - - 便携版 / 开发版 + 安装版或便携版(自动更新) 配置文件 @@ -2582,4 +2579,7 @@ 代码与贡献 + + 开发版本(不自动更新) + diff --git a/src/CommandForge.Wpf/ViewModels/SettingsViewModel.cs b/src/CommandForge.Wpf/ViewModels/SettingsViewModel.cs index a0e6c89..ffc23bd 100644 --- a/src/CommandForge.Wpf/ViewModels/SettingsViewModel.cs +++ b/src/CommandForge.Wpf/ViewModels/SettingsViewModel.cs @@ -90,7 +90,7 @@ public sealed partial class SettingsViewModel : ObservableObject RunModeText = updates.IsUpdateSupported ? Strings.Get("Settings_RunModeInstalled") - : Strings.Get("Settings_RunModePortable"); + : Strings.Get("Settings_RunModeDev"); ConfigPathText = AppPaths.ConfigFilePath; var version = typeof(SettingsViewModel).Assembly.GetName().Version; diff --git a/src/CommandForge.Wpf/Views/PortableInfoView.xaml.cs b/src/CommandForge.Wpf/Views/PortableInfoView.xaml.cs index 7bf740d..c848197 100644 --- a/src/CommandForge.Wpf/Views/PortableInfoView.xaml.cs +++ b/src/CommandForge.Wpf/Views/PortableInfoView.xaml.cs @@ -16,7 +16,7 @@ public partial class PortableInfoView : UserControl ModeValue.Text = updates.IsUpdateSupported ? Strings.Get("Settings_RunModeInstalled") - : Strings.Get("Settings_RunModePortable"); + : Strings.Get("Settings_RunModeDev"); var version = typeof(PortableInfoView).Assembly.GetName().Version; VersionValue.Text = version is null diff --git a/tests/CommandForge.Tests/ResxKeyTests.cs b/tests/CommandForge.Tests/ResxKeyTests.cs index 12ac6ee..733ba4c 100644 --- a/tests/CommandForge.Tests/ResxKeyTests.cs +++ b/tests/CommandForge.Tests/ResxKeyTests.cs @@ -95,7 +95,7 @@ public sealed partial class ResxKeyTests "ReportBug_Close", "ReportBug_DescriptionHint", "ReportBug_ReviewReminder", "Settings_Logs", "Settings_LogLevel", "Settings_LogsSize", "Settings_OpenLogFolder", "Settings_ExportLogs", "Settings_ClearOldLogs", "Settings_ClearLogsConfirm", "Settings_Advanced", "Settings_RunMode", - "Settings_RunModeInstalled", "Settings_RunModePortable", "Settings_ConfigPath", "Settings_OpenConfig", + "Settings_RunModeInstalled", "Settings_RunModeDev", "Settings_ConfigPath", "Settings_OpenConfig", "Settings_OpenDebugPanel", "Settings_ResetDefaults", "Settings_ResetConfirm", ]; @@ -156,7 +156,7 @@ public sealed partial class ResxKeyTests [ "Shortcuts_Palette", "Shortcuts_ListNav", "Shortcuts_OpenSelected", "Shortcuts_CloseDialog", "PortableInfo_ConfigFolder", "PortableInfo_LogFolder", - "Settings_RunMode", "Settings_RunModeInstalled", "Settings_RunModePortable", + "Settings_RunMode", "Settings_RunModeInstalled", "Settings_RunModeDev", "Settings_CurrentVersion", "Settings_NoDataCollected", "LanguageOption_System", ];