-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstrings.cpp
More file actions
238 lines (224 loc) · 11.2 KB
/
strings.cpp
File metadata and controls
238 lines (224 loc) · 11.2 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
// Centralized string table for Chinese/English localization
#include "strings.h"
struct StringEntry {
const char* cn;
const char* en;
};
static const StringEntry string_table[STR_COUNT] = {
// === drawing.cpp: title block ===
// STR_BOILER
{ "\xb9\xf8\xc2\xaf", "Boiler" },
// STR_SIMULATION
{ "\xc4\xa3\xc4\xe2", "Simul." },
// STR_SYSTEM
{ "\xcf\xb5\xcd\xb3", "System" },
// STR_SOFTWARE
{ "\xc8\xed\xbc\xfe", "Softw." },
// STR_VERSION_4
{ "\xb5\xda\xcb\xc4\xb0\xe6", "Ver. 4" },
// === drawing_boiler.cpp: pipe and tank labels ===
// STR_VALVE_1
{ "\xcb\xae\xb7\xa7\xd2\xbb", "Valve 1" },
// STR_VALVE_2
{ "\xcb\xae\xb7\xa7\xb6\xfe", "Valve 2" },
// STR_CM_UNIT
{ "\xc0\xe5\xc3\xd7", "cm" },
// STR_MPA_UNIT
{ "\xd5\xd7\xc5\xc1", "MPa" },
// === drawing_controls.cpp ===
// STR_OPEN
{ "\xbf\xaa", "On" },
// STR_CLOSE
{ "\xb9\xd8", "Off" },
// STR_CONTROL_PANEL
{ "\xbf\xd8\xd6\xc6\xc3\xe6\xb0\xe5", "Control Panel" },
// STR_QUESTION_MARK
{ "\xa3\xbf", "?" },
// STR_WATER_VALVE
{ "\xcb\xae\xb7\xa7", "Valve" },
// STR_STOVE_DOOR
{ "\xc2\xaf\xc3\xc5", "Door" },
// STR_OPEN_STOVE_DOOR
{ "\xbf\xaa\xc2\xaf\xc2\xaf\xc3\xc5", "Open Door" },
// STR_AIR_VALVE
{ "\xc6\xf8\xb7\xa7", "Air V." },
// STR_VALVE_OPENING
{ "\xb7\xa7\xc3\xc5\xbf\xaa\xb6\xc8", "Open%" },
// STR_FIRE
{ "\xc9\xfd\xbb\xf0", "Fire" },
// STR_BOILER_POWER
{ "\xb9\xf8\xc2\xaf\xb9\xa6\xc2\xca", "Power" },
// STR_EXIT
{ "\xcd\xcb\xb3\xf6", "Exit" },
// STR_CONTROL_MODE
{ "\xbf\xd8\xd6\xc6\xc4\xa3\xca\xbd", "Control" },
// STR_HELP
{ "\xb0\xef\xd6\xfa", "Help" },
// === drawing_dialogs.cpp: alarm indicators ===
// STR_WATER_ALARM
{ "\xcb\xae\xce\xbb\xbe\xaf\xb1\xa8", "Water Alarm" },
// STR_WATER_ALARM_BANG
{ "\xcb\xae\xce\xbb\xbe\xaf\xb1\xa8\xa3\xa1", "Water Alarm!" },
// STR_PRESSURE_ALARM
{ "\xc6\xf8\xd1\xb9\xbe\xaf\xb1\xa8", "Press. Alarm" },
// STR_PRESSURE_ALARM_BANG
{ "\xc6\xf8\xd1\xb9\xbe\xaf\xb1\xa8\xa3\xa1", "Press. Alarm!" },
// STR_TEMP_ALARM
{ "\xce\xc2\xb6\xc8\xbe\xaf\xb1\xa8", "Temp. Alarm" },
// STR_TEMP_ALARM_BANG
{ "\xce\xc2\xb6\xc8\xbe\xaf\xb1\xa8\xa3\xa1", "Temp. Alarm!" },
// STR_ALARM_CLEARED
{ "\xbe\xaf\xb1\xa8\xbd\xe2\xb3\xfd", "Alarm Off" },
// === drawing_dialogs.cpp: menu items ===
// STR_HELP_TOPICS
{ "\xb0\xef\xd6\xfa\xd6\xf7\xcc\xe2", "Help Topics" },
// STR_ABOUT_PROGRAM
{ "\xb9\xd8\xd3\xda\xb1\xbe\xb3\xcc\xd0\xf2", "About" },
// STR_MANUAL_CONTROL
{ "\xca\xd6\xb6\xaf\xbf\xd8\xd6\xc6", "Manual Ctrl" },
// STR_AUTO_CONTROL
{ "\xd7\xd4\xb6\xaf\xbf\xd8\xd6\xc6", "Auto Ctrl" },
// === drawing_dialogs.cpp: warning window 1 ===
// STR_ERROR
{ "\xb4\xed\xce\xf3\xa3\xa1", "Error!" },
// STR_MUST_SELECT
{ "\xb1\xd8\xd0\xe8\xcf\xc8\xd1\xa1\xb6\xa8", "Must select" },
// STR_CONTROL_MODE_2
{ "\xbf\xd8\xd6\xc6\xc4\xa3\xca\xbd", "control mode" },
// STR_OK
{ "\xc8\xb7\xb6\xa8", "OK" },
// === drawing_dialogs.cpp: warning window 2 ===
// STR_NOT_AVAILABLE
{ "\xd5\xe2\xd2\xbb\xcf\xee\xbb\xb9\xc3\xbb\xb7\xa8\xd3\xc3\xa3\xa1", "Not ready!" },
// STR_READ_HELP_FIRST
{ "\xc4\xe3\xbf\xcf\xb6\xa8\xc3\xbb\xcf\xc8\xbf\xb4\xb0\xef\xd6\xfa\xa3\xa1", "Read help!" },
// STR_ENCOURAGEMENT
{ "\xb6\xbc\xcb\xb5\xc0\xb2\xb2\xb9\xb6\xa1\xbb\xb9\xc3\xbb\xb3\xf6\xa3\xa1", "Keep trying!" },
// === drawing_dialogs.cpp: About dialog ===
// STR_ABOUT_TITLE
{ "\xb9\xd8\xd3\xda\xb1\xbe\xb3\xcc\xd0\xf2", "About This Program" },
// STR_COPYRIGHT
{ "\xb0\xe6\xc8\xa8\xcb\xf9\xd3\xd0", "Copyright" },
// STR_COMPANY
{ "\xbe\xde\xd3\xb2\xc8\xed\xbc\xfe\xb9\xab\xcb\xbe", "Hugehard Software" },
// STR_MANAGER
{ "\xd7\xdc\xb2\xc3\xc1\xf5\xb9\xf8\xc2\xaf\xcf\xc8\xc9\xfa", "CEO Mr. Zach Liu" },
// STR_MORE_INFO
{ "\xd2\xaa\xbb\xf1\xb5\xc3\xb8\xfc\xb6\xe0\xd0\xc5\xcf\xa2\xa3\xac\xc7\xeb\xd6\xc2\xb5\xe7\xd7\xc9\xd1\xaf\xb9\xab\xcb\xbe\xd7\xdc\xb2\xc3\xa1\xa3", "For more info, contact HQ." },
// STR_CLICK_TO_CLOSE
{ "\xb5\xa5\xbb\xf7\xb4\xcb\xb4\xa6\xb9\xd8\xb1\xd5\xb8\xc3\xb4\xb0\xbf\xda", "Click to close" },
// === drawing_dialogs.cpp: Help window ===
// STR_HELP_TITLE
{ "\xb0\xef\xd6\xfa\xd6\xf7\xcc\xe2", "Help Topics" },
// STR_HELP_LINE_1: 本程序主要以鼠标控制,凡是出现
{ " \xb1\xbe\xb3\xcc\xd0\xf2\xd6\xf7\xd2\xaa\xd2\xd4\xca\xf3\xb1\xea\xbf\xd8\xd6\xc6\xa3\xac\xb7\xb2\xca\xc7\xb3\xf6\xcf\xd6",
" Use mouse to control." },
// STR_HELP_LINE_1_HL
{ " \xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xca\xf3\xb1\xea ",
" " },
// STR_HELP_LINE_2: 手形鼠标的区域均为响应区域,在该处
{ "\xca\xd6\xd0\xce\xca\xf3\xb1\xea\xb5\xc4\xc7\xf8\xd3\xf2\xbe\xf9\xce\xaa\xcf\xec\xd3\xa6\xc7\xf8\xd3\xf2\xa3\xac\xd4\xda\xb8\xc3\xb4\xa6",
"Hand cursor = clickable." },
// STR_HELP_LINE_2_HL
{ "\xca\xd6\xd0\xce ",
"" },
// STR_HELP_LINE_3: 点击即可执行一定的操作。
{ "\xb5\xe3\xbb\xf7\xbc\xb4\xbf\xc9\xd6\xb4\xd0\xd0\xd2\xbb\xb6\xa8\xb5\xc4\xb2\xd9\xd7\xf7\xa1\xa3 ",
"Click to act." },
// STR_HELP_LINE_4: 开始运行后应首先查看帮助,熟悉
{ " \xbf\xaa\xca\xbc\xd4\xcb\xd0\xd0\xba\xf3\xd3\xa6\xca\xd7\xcf\xc8\xb2\xe9\xbf\xb4\xb0\xef\xd6\xfa\xa3\xac\xca\xec\xcf\xa4",
" Read help first, learn" },
// STR_HELP_LINE_4_HL
{ " \xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xca\xd7\xcf\xc8\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1",
"" },
// STR_HELP_LINE_5: 操作,然后选择控制模式,否则会看到
{ "\xb2\xd9\xd7\xf7\xa3\xac\xc8\xbb\xba\xf3\xd1\xa1\xd4\xf1\xbf\xd8\xd6\xc6\xc4\xa3\xca\xbd\xa3\xac\xb7\xf1\xd4\xf2\xbb\xe1\xbf\xb4\xb5\xbd",
"then pick control mode." },
// STR_HELP_LINE_5_HL
{ "\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xbf\xd8\xd6\xc6\xc4\xa3\xca\xbd\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1",
"" },
// STR_HELP_LINE_6: 出错警告。
{ "\xb3\xf6\xb4\xed\xbe\xaf\xb8\xe6\xa1\xa3",
"Or you will see errors." },
// STR_HELP_LINE_7: 使用者可以通过水阀一和二控制锅
{ " \xca\xb9\xd3\xc3\xd5\xdf\xbf\xc9\xd2\xd4\xcd\xa8\xb9\xfd\xcb\xae\xb7\xa7\xd2\xbb\xba\xcd\xb6\xfe\xbf\xd8\xd6\xc6\xb9\xf8",
" Valve 1&2 control water" },
// STR_HELP_LINE_7_HL
{ " \xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xcb\xae\xb7\xa7\xd2\xbb\xba\xcd\xb6\xfe\xa1\xa1\xa1\xa1\xa1\xa1",
"" },
// STR_HELP_LINE_8: 炉内的水位、通过升火控制锅炉的功率
{ "\xc2\xaf\xc4\xda\xb5\xc4\xcb\xae\xce\xbb\xa1\xa2\xcd\xa8\xb9\xfd\xc9\xfd\xbb\xf0\xbf\xd8\xd6\xc6\xb9\xf8\xc2\xaf\xb5\xc4\xb9\xa6\xc2\xca",
"level; Fire sets power." },
// STR_HELP_LINE_8_HL
{ "\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xc9\xfd\xbb\xf0\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1",
"" },
// STR_HELP_LINE_9: 通过气阀控制其开度以释放高压蒸汽、
{ "\xcd\xa8\xb9\xfd\xc6\xf8\xb7\xa7\xbf\xd8\xd6\xc6\xc6\xe4\xbf\xaa\xb6\xc8\xd2\xd4\xca\xcd\xb7\xc5\xb8\xdf\xd1\xb9\xd5\xf4\xc6\xfb\xa1\xa2",
"Air Valve releases steam." },
// STR_HELP_LINE_9_HL
{ "\xa1\xa1\xa1\xa1\xc6\xf8\xb7\xa7\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1",
"" },
// STR_HELP_LINE_10: 锅炉升火前必须先打开炉门。
{ "\xb9\xf8\xc2\xaf\xc9\xfd\xbb\xf0\xc7\xb0\xb1\xd8\xd0\xe8\xcf\xc8\xb4\xf2\xbf\xaa\xc2\xaf\xc3\xc5\xa1\xa3",
"Open door before firing." },
// STR_HELP_LINE_10_HL
{ "\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xcf\xc8\xb4\xf2\xbf\xaa\xc2\xaf\xc3\xc5\xa1\xa3",
"" },
// STR_HELP_LINE_11: 锅炉内水位高于一百三十厘米会有
{ " \xb9\xf8\xc2\xaf\xc4\xda\xcb\xae\xce\xbb\xb8\xdf\xd3\xda\xd2\xbb\xb0\xd9\xc8\xfd\xca\xae\xc0\xe5\xc3\xd7\xbb\xe1\xd3\xd0",
" Water >130cm triggers" },
// STR_HELP_LINE_11_HL
{ " \xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xd2\xbb\xb0\xd9\xc8\xfd\xca\xae\xc0\xe5\xc3\xd7\xa1\xa1\xa1\xa1",
"" },
// STR_HELP_LINE_12: 报警此时必须用水阀二放水...
{ "\xbe\xaf\xb1\xa8\xb4\xcb\xca\xb1\xb1\xd8\xd0\xeb\xd3\xc3\xcb\xae\xb7\xa7\xb6\xfe\xb7\xc5\xcb\xae\xa3\xac\xce\xc2\xb6\xc8\xb3\xac\xb9\xfd",
"alarm; drain w/ Valve 2." },
// STR_HELP_LINE_12_HL
{ "\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xcb\xae\xb7\xa7\xb6\xfe\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1",
"" },
// STR_HELP_LINE_13: 一百三十三度会有高温报警...
{ "\xd2\xbb\xb0\xd9\xc8\xfd\xca\xae\xc8\xfd\xb6\xc8\xbb\xe1\xd3\xd0\xb8\xdf\xce\xc2\xbe\xaf\xb1\xa8\xa3\xac\xc6\xf8\xd1\xb9\xb3\xac",
"Temp >133C = temp alarm." },
// STR_HELP_LINE_13_HL
{ "\xd2\xbb\xb0\xd9\xc8\xfd\xca\xae\xc8\xfd\xb6\xc8 \xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1",
"" },
// STR_HELP_LINE_14: 过标准将激发气压报警...
{ "\xb9\xfd\xb1\xea\xd7\xbc\xbd\xab\xbc\xa4\xb7\xa2\xc6\xf8\xd1\xb9\xbe\xaf\xb1\xa8\xa3\xac\xb4\xcb\xca\xb1\xd2\xaa\xbc\xb0\xca\xb1",
"High pressure = alarm." },
// STR_HELP_LINE_14_HL
{ "\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1 \xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1",
"" },
// STR_HELP_LINE_15: 减小锅炉功率或者关闭炉门,切记:
{ "\xbc\xf5\xd0\xa1\xb9\xf8\xc2\xaf\xb9\xa6\xc2\xca\xbb\xf2\xd5\xdf\xb9\xd8\xb1\xd5\xc2\xaf\xc3\xc5\xa3\xac\xc7\xd0\xbc\xc7\xa3\xba",
"Cut power or close door." },
// STR_HELP_LINE_15_HL
{ "\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xc7\xd0\xbc\xc7\xa3\xba",
"" },
// STR_HELP_LINE_16: 锅炉内无水时可能发生爆炸!
{ " \xb9\xf8\xc2\xaf\xc4\xda\xce\xde\xcb\xae\xca\xb1\xbf\xc9\xc4\xdc\xb7\xa2\xc9\xfa\xb1\xac\xd5\xa8\xa3\xa1",
" DANGER: No water=boom!" },
// STR_HELP_LINE_16_HL
{ " \xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xa1\xb1\xac\xd5\xa8\xa3\xa1",
"" },
// STR_HELP_LINE_17: 此外,自动控制部分的操作未完
{ " \xb4\xcb\xcd\xe2\xa3\xac\xd7\xd4\xb6\xaf\xbf\xd8\xd6\xc6\xb2\xbf\xb7\xd6\xb5\xc4\xb2\xd9\xd7\xf7\xce\xb4\xcd\xea",
" Auto ctrl incomplete." },
// STR_HELP_LINE_18: 全,存在调试阶段...
{ "\xc8\xab\xa3\xac\xb4\xe6\xd4\xda\xb5\xf7\xca\xd4\xbd\xd7\xb6\xce\xa3\xac\xd3\xd0\xd0\xa9\xce\xde\xb7\xa8\xca\xb5\xcf\xd6",
"Some features missing." },
// STR_HELP_LINE_19: 的请补足,那就抱歉啦!
{ "\xb5\xc4\xc7\xeb\xb2\xb9\xd7\xe3\xa3\xac\xc4\xc7\xbe\xcd\xb1\xa7\xc7\xb8\xc0\xb2\xa3\xa1",
"Sorry about that!" },
// === bgi_compat.cpp: putout_level unit ===
// STR_CM_UNIT_DISPLAY
{ "\xc0\xe5\xc3\xd7", "cm" },
// === language toggle button ===
// STR_LANG_LABEL
{ "\xd6\xd0", "EN" },
};
const char* get_string(StringID id) {
if (id < 0 || id >= STR_COUNT) return "";
if (g_language == LANG_EN)
return string_table[id].en;
return string_table[id].cn;
}