forked from 1thenikita/Visual-Studio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Translates.cs
308 lines (284 loc) · 13.1 KB
/
Translates.cs
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
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DiscordRPforVS
{
/// <summary>
/// Class work with the translation
/// </summary>
public static class Translates
{
/// <summary>
/// Class work with the translation in SettingsWindow
/// </summary>
public static class SettingsWindow
{
/// <summary>
/// Translation handler for the Title variable
/// </summary>
/// <param name="translate">Language</param>
/// <returns>Title in the desired language</returns>
public static string Title(string translate)
{
if (translate == "en-US") { return "Discord Rich Presence Settings"; }
else if (translate == "ru-RU") { return "Discord Rich Presence настройки"; }
else { return "Discord Rich Presence Settings"; }
}
/// <summary>
/// Translation handler for the IsPresenceEnabled variable
/// </summary>
/// <param name="translate">Language</param>
/// <returns>IsPresenceEnabled in the desired language</returns>
public static string IsPresenceEnabled(string translate)
{
if (translate == "en-US") { return "Enable Discord Rich Presence"; }
else if (translate == "ru-RU") { return "Включить"; }
else { return "Enable Discord Rich Presence"; }
}
/// <summary>
/// Translation handler for the IsFileNameShown variable
/// </summary>
/// <param name="translate">Language</param>
/// <returns>IsFileNameShown in the desired language</returns>
public static string IsFileNameShown(string translate)
{
if (translate == "en-US") { return "Show file name"; }
else if (translate == "ru-RU") { return "Показывать имя файла"; }
else { return "Show file name"; }
}
/// <summary>
/// Translation handler for the IsSolutionNameShown variable
/// </summary>
/// <param name="translate">Language</param>
/// <returns>IsSolutionNameShown in the desired language</returns>
public static string IsSolutionNameShown(string translate)
{
if (translate == "en-US") { return "Show solution name"; }
else if (translate == "ru-RU") { return "Показывать имя проекта"; }
else { return "Show solution name"; }
}
/// <summary>
/// Translation handler for the IsTimestampShown variable
/// </summary>
/// <param name="translate">Language</param>
/// <returns>IsTimestampShown in the desired language</returns>
public static string IsTimestampShown(string translate)
{
if (translate == "en-US") { return "Show timestamp"; }
else if (translate == "ru-RU") { return "Показывать время работы"; }
else { return "Show timestamp"; }
}
/// <summary>
/// Translation handler for the IsTimestampResetEnabled variable
/// </summary>
/// <param name="translate">Language</param>
/// <returns>IsTimestampResetEnabled in the desired language</returns>
public static string IsTimestampResetEnabled(string translate)
{
if (translate == "en-US") { return "Reset timestamp on file change"; }
else if (translate == "ru-RU") { return "Перезапускать таймер при изменении файла"; }
else { return "Reset timestamp on file change"; }
}
/// <summary>
/// Translation handler for the IsLanguageImageLarge variable
/// </summary>
/// <param name="translate">Language</param>
/// <returns>IsLanguageImageLarge in the desired language</returns>
public static string IsLanguageImageLarge(string translate)
{
if (translate == "en-US") { return "Large language image"; }
else if (translate == "ru-RU") { return "Большая картинка языка программирования"; }
else { return "Large language image"; }
}
/// <summary>
/// Translation handler for the SecretMode variable
/// </summary>
/// <param name="translate">Language</param>
/// <returns>SecretMode in the desired language</returns>
public static string SecretMode(string translate)
{
if (translate == "en-US") { return "Secret mode"; }
else if (translate == "ru-RU") { return "Секретный режим"; }
else { return "Secret mode"; }
}
/// <summary>
/// Translation handler for the LoadOnStartup variable
/// </summary>
/// <param name="translate">Language</param>
/// <returns>LoadOnStartup in the desired language</returns>
public static string LoadOnStartup(string translate)
{
if (translate == "en-US") { return "Load on startup"; }
else if (translate == "ru-RU") { return "Автоматический запуск"; }
else { return "Load on startup"; }
}
}
/// <summary>
/// Translation handler for the Settings variable
/// </summary>
/// <param name="translate">Language</param>
/// <returns>Settings in the desired language</returns>
public static string Settings(string translate)
{
if (translate == "en-US") { return "Settings"; }
else if (translate == "ru-RU") { return "Настройки"; }
else { return "Settings"; }
}
/// <summary>
/// Translation handler for the TextDocument variable
/// </summary>
/// <param name="translate">Language</param>
/// <returns>TextDocument in the desired language</returns>
public static string TextDocument(string translate)
{
if(translate == "en-US") { return "Text"; }
else if(translate == "ru-RU") { return "Текстовый"; }
else { return "Text"; }
}
/// <summary>
/// Translation handler for the LogDocument variable
/// </summary>
/// <param name="translate">Language</param>
/// <returns>LogDocument in the desired language</returns>
public static string LogDocument(string translate)
{
if (translate == "en-US") { return "Log"; }
else if (translate == "ru-RU") { return "Log"; }
else { return "Log"; }
}
/// <summary>
/// Translation handler for the VSCTDocument variable
/// </summary>
/// <param name="translate">Language</param>
/// <returns>VSCTDocument in the desired language</returns>
public static string VSCTDocument(string translate)
{
if (translate == "en-US") { return "VS Command Table Configuration"; }
else if (translate == "ru-RU") { return "VS Настройка командной таблицы"; }
else { return "Log"; }
}
/// <summary>
/// Translation handler for the Text variable
/// </summary>
/// <param name="translate">Language</param>
/// <returns>Text in the desired language</returns>
public static string Text(string translate)
{
if (translate == "en-US") { return "text"; }
else if (translate == "ru-RU") { return "текст"; }
else { return "text"; }
}
/// <summary>
/// Translation handler for the File variable
/// </summary>
/// <param name="translate">Language</param>
/// <returns>File in the desired language</returns>
public static string File(string translate)
{
if (translate == "en-US") { return "file"; }
else if (translate == "ru-RU") { return "файл"; }
else { return "file"; }
}
/// <summary>
/// Translation handler for the LogError variable
/// </summary>
/// <param name="translate">Language</param>
/// <returns>LogError in the desired language</returns>
public static string LogError(string translate)
{
if (translate == "en-US") { return "Could not start RP"; }
else if (translate == "ru-RU") { return "Не удалось запустить RP"; }
else { return "Could not start RP"; }
}
/// <summary>
/// Translation handler for the Presence_Details variable
/// </summary>
/// <param name="translate">Language</param>
/// <returns>Presence_Details in the desired language</returns>
public static string PresenceDetails(string translate)
{
if (translate == "en-US") { return "I'm working on something you're"; }
else if (translate == "ru-RU") { return "Я работаю над тем, о чем"; }
else { return "I'm working on something you're"; }
}
/// <summary>
/// Translation handler for the Presence_State variable
/// </summary>
/// <param name="translate">Language</param>
/// <returns>Presence_State in the desired language</returns>
public static string PresenceState(string translate)
{
if (translate == "en-US") { return "not allowed to know about, sorry."; }
else if (translate == "ru-RU") { return "тебе не положено знать, извини."; }
else { return "not allowed to know about, sorry."; }
}
/// <summary>
/// Translation handler for the SuppressMessage variable
/// </summary>
/// <param name="translate">Language</param>
/// <returns>SuppressMessage in the desired language</returns>
public static string SuppressMessage(string translate)
{
if (translate == "en-US") { return "Async void return type required"; }
if (translate == "ru-RU") { return "Требуется тип возвращаемого значения Async void"; }
else { return "Async void return type required"; }
}
/// <summary>
/// Translation handler for the UnrecognizedExtension variable
/// </summary>
/// <param name="translate">Language</param>
/// <returns>UnrecognizedExtension in the desired language</returns>
public static string UnrecognizedExtension(string translate)
{
if (translate == "en-US") { return "Unrecognized extension"; }
if (translate == "ru-RU") { return "Незарегистрированное расширение"; }
else { return "Unrecognized extension"; }
}
/// <summary>
/// Translation handler for the NoFile variable
/// </summary>
/// <param name="translate">Language</param>
/// <returns>NoFile in the desired language</returns>
public static string NoFile(string translate)
{
if (translate == "en-US") { return "No File."; }
if (translate == "ru-RU") { return "Файл не выбран."; }
else { return "No File."; }
}
/// <summary>
/// Translation handler for the Idling variable
/// </summary>
/// <param name="translate">Language</param>
/// <returns>Idling in the desired language</returns>
public static string Idling(string translate)
{
if (translate == "en-US") { return "Idling"; }
if (translate == "ru-RU") { return "Выбирает проект"; }
else { return "Idling"; }
}
/// <summary>
/// Translation handler for the Developing variable
/// </summary>
/// <param name="translate">Language</param>
/// <returns>Developing in the desired language</returns>
public static string Developing(string translate)
{
if (translate == "en-US") { return "Developing"; }
if (translate == "ru-RU") { return "Работает в проекте"; }
else { return "Idling"; }
}
/// <summary>
/// Translation handler for the AvoidSync variable
/// </summary>
/// <param name="translate">Language</param>
/// <returns>AvoidSync in the desired language</returns>
public static string AvoidSync(string translate)
{
if (translate == "en-US") { return "Async void return type required"; }
if (translate == "ru-RU") { return "Требуется тип возвращаемого значения Async void"; }
else { return "Async void return type required"; }
}
}
}