Skip to content

Commit

Permalink
Add Chinese Traditional support
Browse files Browse the repository at this point in the history
  • Loading branch information
timokoessler committed Apr 30, 2024
1 parent 9b6755f commit debe71f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Guard/Core/I18n.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion Guard/Core/Models/AppSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ internal enum LanguageSetting
System,
EN,
DE,
ZH_CN
ZH_CN,
ZH_TW
}

internal enum SortOrderSetting
Expand Down
1 change: 1 addition & 0 deletions Guard/Installer/installer.iss
Original file line number Diff line number Diff line change
Expand Up @@ -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}";
Expand Down

0 comments on commit debe71f

Please sign in to comment.