-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLocalization.cs
More file actions
111 lines (109 loc) · 6.06 KB
/
Copy pathLocalization.cs
File metadata and controls
111 lines (109 loc) · 6.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
namespace WinTombstone
{
public static class Localization
{
public static string CurrentLanguage = "CN";
private static readonly Dictionary<string, Dictionary<string, string>> Resources = new Dictionary<string, Dictionary<string, string>>()
{
{
"CN", new Dictionary<string, string>
{
// ... 保留原有内容 ...
{ "Title", "Win墓碑 WinTombstone" },
{ "Settings", "设置" },
{ "Help", "说明" },
{ "Exit", "退出" },
{ "UnfreezeAll", "一键全部解冻" },
{ "ColName", "程序名称" },
{ "ColFrozen", "冻结状态" },
{ "ColAuto", "自动冻结" },
{ "ColTimeout", "超时(秒)" },
{ "ColAction", "操作" },
{ "ActionDelete", "删除" },
{ "MsgFrozen", "已冻结" },
{ "MsgAddSuccess", "添加成功" },
{ "MsgOpDone", "操作完成" },
{ "MsgAllRestored", "已执行全部解冻。" },
{ "HelpContent", "使用说明:\n1. 按下快捷键(默认 Ctrl+~)将前台窗口加入列表并生成冻结窗口。\n2. 单击冻结窗口恢复进程;双击右下角可快捷切换自动冻结开关。\n3. 自动冻结功能可在程序转入后台一段时间后自动冻结。" },
{ "HelpTitle", "WinTombstone 说明" },
{ "SetTitle", "设置" },
{ "TabGeneral", "常规" },
{ "TabBlacklist", "黑名单" },
{ "TabLinked", "关联程序" },
{ "LblLang", "语言 / Language" },
{ "LblHotkey", "激活快捷键 (点击下方输入框按下按键)" },
{ "LblBlacklistInput", "输入程序名 (如 notepad.exe)" },
{ "LblMainAppInput", "主程序名 (如 front.exe)" },
{ "LblLinkedAppsInput", "关联程序 (如 back1.exe,back2.exe)" },
{ "BtnAdd", "添加" },
{ "BtnRemove", "移除" },
{ "MsgProtected", "该项目为系统保护项,不可删除。" },
{ "MsgExists", "该项目已存在。" },
{ "MsgInvalidInput", "输入不能为空。" },
{ "BtnSave", "保存" },
// New Service Strings
{ "GrpService", "后台服务 (SYSTEM 权限)" },
{ "BtnInstallSvc", "安装服务" },
{ "BtnUninstallSvc", "卸载服务" },
{ "LblServiceStatus", "状态: " },
{ "StatusInstalled", "已安装 (运行中)" },
{ "StatusNotInstalled", "未安装" },
{ "MsgSvcInstalled", "服务安装成功!现在可以冻结系统级进程。" },
{ "MsgSvcUninstalled", "服务已卸载。" }
}
},
{
"EN", new Dictionary<string, string>
{
{ "Title", "WinTombstone" },
{ "Settings", "Settings" },
{ "Help", "About" },
{ "Exit", "Exit" },
{ "UnfreezeAll", "Unfreeze All" },
{ "ColName", "App Name" },
{ "ColFrozen", "Frozen" },
{ "ColAuto", "Auto Freeze" },
{ "ColTimeout", "Timeout(s)" },
{ "ColAction", "Action" },
{ "ActionDelete", "Delete" },
{ "MsgFrozen", "Frozen" },
{ "MsgAddSuccess", "Added" },
{ "MsgOpDone", "Done" },
{ "MsgAllRestored", "All apps restored." },
{ "HelpContent", "Instructions:\n1. Press the shortcut (default Ctrl+~) to add the foreground window to the list and generate a frozen window.\n2. Single-click the frozen window to resume the process; double-click the bottom right corner to quickly toggle the auto-freeze switch.\n3. The auto-freeze function can automatically freeze the program after it has been in the background for a period of time." },
{ "HelpTitle", "About WinTombstone" },
{ "SetTitle", "Settings" },
{ "TabGeneral", "General" },
{ "TabBlacklist", "Blacklist" },
{ "TabLinked", "Linked Apps" },
{ "LblLang", "Language / 语言" },
{ "LblHotkey", "Global Hotkey (Click box & press keys)" },
{ "LblBlacklistInput", "App Name (e.g. notepad.exe)" },
{ "LblMainAppInput", "Main App (e.g. front.exe)" },
{ "LblLinkedAppsInput", "Linked Apps (e.g. back1.exe,back2.exe)" },
{ "BtnAdd", "Add" },
{ "BtnRemove", "Remove" },
{ "MsgProtected", "This item is protected." },
{ "MsgExists", "Item already exists." },
{ "MsgInvalidInput", "Input cannot be empty." },
{ "BtnSave", "Save" },
// New Service Strings
{ "GrpService", "Background Service (SYSTEM)" },
{ "BtnInstallSvc", "Install Service" },
{ "BtnUninstallSvc", "Uninstall Service" },
{ "LblServiceStatus", "Status: " },
{ "StatusInstalled", "Installed (Running)" },
{ "StatusNotInstalled", "Not Installed" },
{ "MsgSvcInstalled", "Service installed successfully!" },
{ "MsgSvcUninstalled", "Service uninstalled." }
}
}
};
public static string Get(string key)
{
if (Resources.ContainsKey(CurrentLanguage) && Resources[CurrentLanguage].ContainsKey(key))
return Resources[CurrentLanguage][key];
return key;
}
}
}