From debe71f49e5f08ad0575bcc08b290a8f00221dbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20K=C3=B6ssler?= Date: Tue, 30 Apr 2024 10:31:44 +0200 Subject: [PATCH] Add Chinese Traditional support --- Guard/Core/I18n.cs | 3 ++- Guard/Core/Models/AppSettings.cs | 3 ++- Guard/Installer/installer.iss | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Guard/Core/I18n.cs b/Guard/Core/I18n.cs index a2b4664..fa857bb 100644 --- a/Guard/Core/I18n.cs +++ b/Guard/Core/I18n.cs @@ -13,7 +13,8 @@ class I18n { "system", "System" }, { "en", "English" }, { "de", "Deutsch" }, - { "zh_cn", "大陆简体" } + { "zh_cn", "大陆简体" }, + { "zh_tw", "中文(繁體)" } }; private static readonly LanguageSetting defaultLanguage = LanguageSetting.EN; private static LanguageSetting currentLanguage = defaultLanguage; diff --git a/Guard/Core/Models/AppSettings.cs b/Guard/Core/Models/AppSettings.cs index 786df98..2d61281 100644 --- a/Guard/Core/Models/AppSettings.cs +++ b/Guard/Core/Models/AppSettings.cs @@ -14,7 +14,8 @@ internal enum LanguageSetting System, EN, DE, - ZH_CN + ZH_CN, + ZH_TW } internal enum SortOrderSetting diff --git a/Guard/Installer/installer.iss b/Guard/Installer/installer.iss index 5edf529..67a19f0 100644 --- a/Guard/Installer/installer.iss +++ b/Guard/Installer/installer.iss @@ -44,6 +44,7 @@ Name: "english"; MessagesFile: "compiler:Default.isl" Name: "german"; MessagesFile: "compiler:Languages\German.isl" // https://github.com/kira-96/Inno-Setup-Chinese-Simplified-Translation Name: "chinesesimplified"; MessagesFile: "compiler:Languages\ChineseSimplified.isl" +Name: "chinesetraditional"; MessagesFile: "compiler:Languages\ChineseTraditional.isl" [Tasks] Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}";