fix(local-tool): Inno Setup 6.3+ 不再內建 ChineseTraditional.isl

Inno Setup 6.3 起官方只保留 ChineseSimplified,繁體中文語系需額外下載。
改為以 WITH_TRAD_CHINESE 宏條件啟用,預設只用英文 installer UI,
避免在新版 Inno Setup 上直接 compile error。

這只影響「安裝精靈本身」的語系,應用程式 UI 的 i18n 不受影響。
未來若要帶繁體中文 installer,下載 istrans 檔案後用 iscc /DWITH_TRAD_CHINESE=1 編譯。

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
jim800121chen 2026-04-12 02:45:51 +08:00
parent 80252b12dc
commit 4521ee3119

View File

@ -48,7 +48,13 @@ MinVersion=10.0.17763
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
Name: "tradchinese"; MessagesFile: "compiler:Languages\ChineseTraditional.isl"
; 繁體中文語系Inno Setup 6.3+ 官方只內建簡體中文ChineseSimplified.isl
; 繁體中文需額外從 https://jrsoftware.org/files/istrans/ 下載放到 Languages/
; 若存在則載入,不存在就只用英文(透過 -d 或環境變數 override 也可)
; 使用 /DWITH_TRAD_CHINESE=1 並確認 Languages\ChineseTraditional.isl 存在才啟用
#ifdef WITH_TRAD_CHINESE
Name: "tradchinese"; MessagesFile: "compiler:Languages\ChineseTraditional.isl"
#endif
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked