-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLocalization.cs
More file actions
683 lines (665 loc) · 35.9 KB
/
Copy pathLocalization.cs
File metadata and controls
683 lines (665 loc) · 35.9 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
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
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
using System.Globalization;
namespace CpuMonitorNotifier.Localization;
/// <summary>Язык интерфейса. <see cref="Auto"/> — по языку системы.</summary>
internal enum AppLanguage
{
Auto,
English,
Russian,
German,
Spanish,
French,
Portuguese,
Chinese,
Japanese,
}
/// <summary>
/// Лёгкая локализация: словарь строк на язык, English как основной и запасной.
/// Ключи плоские (например, "menu.settings"); подстановки — через string.Format.
/// </summary>
internal static class Loc
{
/// <summary>Название продукта (не переводится).</summary>
public const string AppName = "CorePulse";
// назначается в статическом конструкторе — после инициализации словарей ниже
private static Dictionary<string, string> _current = null!;
static Loc() => _current = English;
/// <summary>Родные названия языков для выпадающего списка (Auto подставляется отдельно).</summary>
public static readonly (AppLanguage Lang, string Native)[] LanguageChoices =
{
(AppLanguage.English, "English"),
(AppLanguage.Russian, "Русский"),
(AppLanguage.German, "Deutsch"),
(AppLanguage.Spanish, "Español"),
(AppLanguage.French, "Français"),
(AppLanguage.Portuguese, "Português"),
(AppLanguage.Chinese, "中文"),
(AppLanguage.Japanese, "日本語"),
};
/// <summary>Устанавливает текущий язык (для Auto определяет по CurrentUICulture).</summary>
public static void Apply(AppLanguage lang)
{
if (lang == AppLanguage.Auto)
lang = Detect();
_current = Tables.TryGetValue(lang, out var t) ? t : English;
}
/// <summary>Возвращает строку по ключу; при отсутствии — English, затем сам ключ.</summary>
public static string T(string key) =>
_current.TryGetValue(key, out var v) ? v
: English.TryGetValue(key, out var e) ? e
: key;
private static AppLanguage Detect() => CultureInfo.CurrentUICulture.TwoLetterISOLanguageName switch
{
"ru" => AppLanguage.Russian,
"de" => AppLanguage.German,
"es" => AppLanguage.Spanish,
"fr" => AppLanguage.French,
"pt" => AppLanguage.Portuguese,
"zh" => AppLanguage.Chinese,
"ja" => AppLanguage.Japanese,
_ => AppLanguage.English,
};
private static readonly Dictionary<string, string> English = new()
{
["app.paused"] = "{0} — paused",
["menu.settings"] = "Settings…",
["menu.test"] = "Test notification",
["menu.history"] = "History…",
["menu.pause"] = "Pause monitoring",
["menu.exit"] = "Exit",
["history.title"] = "{0} — History",
["history.tab.offenders"] = "Top offenders (this session)",
["history.tab.alerts"] = "Alerts",
["history.chart"] = "Hottest core — recent load",
["history.col.process"] = "Process",
["history.col.coremin"] = "Core-minutes",
["history.col.peak"] = "Peak",
["history.col.lastseen"] = "Last seen",
["history.col.time"] = "Time",
["history.col.cores"] = "Cores",
["history.col.load"] = "Load",
["history.col.duration"] = "Duration",
["settings.title"] = "{0} v{1} — Settings",
["settings.iconStyle"] = "Tray icon style:",
["settings.threshold"] = "Core load threshold, %:",
["settings.duration"] = "Time before alert, s:",
["settings.cooldown"] = "Cooldown between alerts, min:",
["settings.pollInterval"] = "Poll interval, s:",
["settings.notifications"] = "Show notifications",
["settings.procAlerts"] = "Alert on a process holding load",
["settings.procThreshold"] = "Process load threshold, % of a core:",
["settings.procDuration"] = "Process sustained time, min:",
["settings.exclusions"] = "Excluded processes…",
["exclusions.title"] = "{0} — excluded processes",
["exclusions.hint"] = "Processes listed here won't trigger sustained-load notifications.",
["exclusions.add"] = "Add",
["exclusions.remove"] = "Remove",
["settings.autostart"] = "Start with Windows",
["settings.language"] = "Language:",
["settings.languageAuto"] = "System default",
["settings.theme"] = "Theme:",
["theme.system"] = "System",
["theme.light"] = "Light",
["theme.dark"] = "Dark",
["settings.ok"] = "OK",
["settings.cancel"] = "Cancel",
["style.ring"] = "Ring + %",
["style.segments"] = "Segmented ring",
["style.speedometer"] = "Speedometer",
["style.liquid"] = "Liquid + %",
["style.dots"] = "Dots grid",
["toast.title.one"] = "Core {0} under load for {1}",
["toast.title.many"] = "Cores {0} under load for {1}",
["toast.culprit"] = "Likely culprit: {0}",
["toast.culprit.none"] = "Culprit not identified (possibly a system or protected process)",
["toast.button.taskmgr"] = "Task Manager",
["toast.core.load"] = "{0} ({1}% of a core)",
["toast.proc.title"] = "{0} — sustained CPU load for {1}",
["toast.proc.body"] = "Steadily holding {0}% of a core. Is this expected?",
["tooltip.proc"] = "Core {0}: {1}% | CPU {2}% | {3}",
["tooltip.noproc"] = "Core {0}: {1}% | CPU {2}%",
["duration.min"] = "{0} min",
["duration.sec"] = "{0} s",
["menu.checkUpdates"] = "Check for updates…",
["settings.updates"] = "Check for updates automatically",
["update.available"] = "CorePulse {0} is available",
["update.available.body"] = "You have {0}. Updating takes a moment and restarts the app.",
["update.button.update"] = "Update",
["update.button.notes"] = "What's new",
["update.downloading"] = "Downloading CorePulse {0}…",
["update.upToDate"] = "You're up to date ({0}).",
["update.confirm"] = "Update now?",
["update.failed"] = "Update failed: {0}",
["update.failed.network"] = "could not reach GitHub",
["error.startFailed"] = "Failed to start monitoring:\n\n{0}",
};
private static readonly Dictionary<string, string> Russian = new()
{
["app.paused"] = "{0} — пауза",
["menu.settings"] = "Настройки…",
["menu.test"] = "Проверить уведомление",
["menu.history"] = "История…",
["menu.pause"] = "Пауза мониторинга",
["menu.exit"] = "Выход",
["history.title"] = "{0} — история",
["history.tab.offenders"] = "Главные нагрузчики за сессию",
["history.tab.alerts"] = "Алерты",
["history.chart"] = "Самое горячее ядро — недавняя нагрузка",
["history.col.process"] = "Процесс",
["history.col.coremin"] = "Core-минуты",
["history.col.peak"] = "Пик",
["history.col.lastseen"] = "Последний раз",
["history.col.time"] = "Время",
["history.col.cores"] = "Ядра",
["history.col.load"] = "Нагрузка",
["history.col.duration"] = "Длительность",
["settings.title"] = "{0} v{1} — настройки",
["settings.iconStyle"] = "Стиль иконки в трее:",
["settings.threshold"] = "Порог нагрузки ядра, %:",
["settings.duration"] = "Длительность до алерта, с:",
["settings.cooldown"] = "Пауза между уведомлениями, мин:",
["settings.pollInterval"] = "Интервал опроса, с:",
["settings.notifications"] = "Показывать уведомления",
["settings.procAlerts"] = "Алерт о процессе под нагрузкой",
["settings.procThreshold"] = "Порог нагрузки процесса, % ядра:",
["settings.procDuration"] = "Длительность нагрузки процесса, мин:",
["settings.exclusions"] = "Исключённые процессы…",
["exclusions.title"] = "{0} — исключённые процессы",
["exclusions.hint"] = "Процессы из этого списка не вызывают уведомлений о нагрузке.",
["exclusions.add"] = "Добавить",
["exclusions.remove"] = "Удалить",
["settings.autostart"] = "Запускать при входе в Windows",
["settings.language"] = "Язык:",
["settings.languageAuto"] = "Как в системе",
["settings.theme"] = "Тема:",
["theme.system"] = "Как в системе",
["theme.light"] = "Светлая",
["theme.dark"] = "Тёмная",
["settings.ok"] = "ОК",
["settings.cancel"] = "Отмена",
["style.ring"] = "Кольцо + %",
["style.segments"] = "Сегментное кольцо",
["style.speedometer"] = "Спидометр",
["style.liquid"] = "Жидкость + %",
["style.dots"] = "Сетка кругов",
["toast.title.one"] = "Ядро {0} под нагрузкой уже {1}",
["toast.title.many"] = "Ядра {0} под нагрузкой уже {1}",
["toast.culprit"] = "Вероятный виновник: {0}",
["toast.culprit.none"] = "Виновник не определён (возможно, системный или защищённый процесс)",
["toast.button.taskmgr"] = "Диспетчер задач",
["toast.core.load"] = "{0} ({1}% ядра)",
["toast.proc.title"] = "{0} — устойчивая нагрузка уже {1}",
["toast.proc.body"] = "Стабильно держит {0}% ядра. Так и должно быть?",
["tooltip.proc"] = "Ядро {0}: {1}% | CPU {2}% | {3}",
["tooltip.noproc"] = "Ядро {0}: {1}% | CPU {2}%",
["duration.min"] = "{0} мин",
["duration.sec"] = "{0} с",
["menu.checkUpdates"] = "Проверить обновления…",
["settings.updates"] = "Проверять обновления автоматически",
["update.available"] = "Доступен CorePulse {0}",
["update.available.body"] = "У вас {0}. Обновление займёт несколько секунд и перезапустит приложение.",
["update.button.update"] = "Обновить",
["update.button.notes"] = "Что нового",
["update.downloading"] = "Загрузка CorePulse {0}…",
["update.upToDate"] = "У вас последняя версия ({0}).",
["update.confirm"] = "Обновить сейчас?",
["update.failed"] = "Не удалось обновить: {0}",
["update.failed.network"] = "не удалось связаться с GitHub",
["error.startFailed"] = "Не удалось запустить мониторинг:\n\n{0}",
};
private static readonly Dictionary<string, string> German = new()
{
["app.paused"] = "{0} — pausiert",
["menu.settings"] = "Einstellungen…",
["menu.test"] = "Testbenachrichtigung",
["menu.history"] = "Verlauf…",
["menu.pause"] = "Überwachung pausieren",
["menu.exit"] = "Beenden",
["history.title"] = "{0} — Verlauf",
["history.tab.offenders"] = "Top-Verbraucher (diese Sitzung)",
["history.tab.alerts"] = "Warnungen",
["history.chart"] = "Heißester Kern — jüngste Last",
["history.col.process"] = "Prozess",
["history.col.coremin"] = "Kern-Minuten",
["history.col.peak"] = "Spitze",
["history.col.lastseen"] = "Zuletzt gesehen",
["history.col.time"] = "Zeit",
["history.col.cores"] = "Kerne",
["history.col.load"] = "Last",
["history.col.duration"] = "Dauer",
["settings.title"] = "{0} v{1} — Einstellungen",
["settings.iconStyle"] = "Symbolstil in der Taskleiste:",
["settings.threshold"] = "Kernauslastungsschwelle, %:",
["settings.duration"] = "Zeit bis zur Warnung, s:",
["settings.cooldown"] = "Pause zwischen Warnungen, Min.:",
["settings.pollInterval"] = "Abtastintervall, s:",
["settings.notifications"] = "Benachrichtigungen anzeigen",
["settings.procAlerts"] = "Warnen bei dauerhafter Prozesslast",
["settings.procThreshold"] = "Prozess-Lastschwelle, % eines Kerns:",
["settings.procDuration"] = "Prozess-Dauer, Min.:",
["settings.exclusions"] = "Ausgeschlossene Prozesse…",
["exclusions.title"] = "{0} — ausgeschlossene Prozesse",
["exclusions.hint"] = "Aufgelistete Prozesse lösen keine Lastbenachrichtigungen aus.",
["exclusions.add"] = "Hinzufügen",
["exclusions.remove"] = "Entfernen",
["settings.autostart"] = "Mit Windows starten",
["settings.language"] = "Sprache:",
["settings.languageAuto"] = "Systemstandard",
["settings.theme"] = "Design:",
["theme.system"] = "System",
["theme.light"] = "Hell",
["theme.dark"] = "Dunkel",
["settings.ok"] = "OK",
["settings.cancel"] = "Abbrechen",
["style.ring"] = "Ring + %",
["style.segments"] = "Segmentring",
["style.speedometer"] = "Tacho",
["style.liquid"] = "Flüssigkeit + %",
["style.dots"] = "Punktraster",
["toast.title.one"] = "Kern {0} seit {1} ausgelastet",
["toast.title.many"] = "Kerne {0} seit {1} ausgelastet",
["toast.culprit"] = "Wahrscheinlicher Verursacher: {0}",
["toast.culprit.none"] = "Verursacher nicht ermittelt (evtl. System- oder geschützter Prozess)",
["toast.button.taskmgr"] = "Task-Manager",
["toast.core.load"] = "{0} ({1}% eines Kerns)",
["toast.proc.title"] = "{0} — dauerhafte CPU-Last seit {1}",
["toast.proc.body"] = "Hält konstant {0}% eines Kerns. Ist das erwartet?",
["tooltip.proc"] = "Kern {0}: {1}% | CPU {2}% | {3}",
["tooltip.noproc"] = "Kern {0}: {1}% | CPU {2}%",
["duration.min"] = "{0} Min.",
["duration.sec"] = "{0} s",
["menu.checkUpdates"] = "Nach Updates suchen…",
["settings.updates"] = "Automatisch nach Updates suchen",
["update.available"] = "CorePulse {0} ist verfügbar",
["update.available.body"] = "Sie haben {0}. Das Update dauert einen Moment und startet die App neu.",
["update.button.update"] = "Aktualisieren",
["update.button.notes"] = "Neuerungen",
["update.downloading"] = "CorePulse {0} wird heruntergeladen…",
["update.upToDate"] = "Sie sind auf dem neuesten Stand ({0}).",
["update.confirm"] = "Jetzt aktualisieren?",
["update.failed"] = "Update fehlgeschlagen: {0}",
["update.failed.network"] = "GitHub ist nicht erreichbar",
["error.startFailed"] = "Überwachung konnte nicht gestartet werden:\n\n{0}",
};
private static readonly Dictionary<string, string> Spanish = new()
{
["app.paused"] = "{0} — en pausa",
["menu.settings"] = "Configuración…",
["menu.test"] = "Probar notificación",
["menu.history"] = "Historial…",
["menu.pause"] = "Pausar monitorización",
["menu.exit"] = "Salir",
["history.title"] = "{0} — Historial",
["history.tab.offenders"] = "Mayores consumidores (esta sesión)",
["history.tab.alerts"] = "Alertas",
["history.chart"] = "Núcleo más caliente — carga reciente",
["history.col.process"] = "Proceso",
["history.col.coremin"] = "Núcleo-minutos",
["history.col.peak"] = "Pico",
["history.col.lastseen"] = "Visto por última vez",
["history.col.time"] = "Hora",
["history.col.cores"] = "Núcleos",
["history.col.load"] = "Carga",
["history.col.duration"] = "Duración",
["settings.title"] = "{0} v{1} — Configuración",
["settings.iconStyle"] = "Estilo del icono en la bandeja:",
["settings.threshold"] = "Umbral de carga del núcleo, %:",
["settings.duration"] = "Tiempo antes de la alerta, s:",
["settings.cooldown"] = "Espera entre alertas, min:",
["settings.pollInterval"] = "Intervalo de sondeo, s:",
["settings.notifications"] = "Mostrar notificaciones",
["settings.procAlerts"] = "Avisar si un proceso mantiene carga",
["settings.procThreshold"] = "Umbral de carga del proceso, % de un núcleo:",
["settings.procDuration"] = "Tiempo sostenido del proceso, min:",
["settings.exclusions"] = "Procesos excluidos…",
["exclusions.title"] = "{0} — procesos excluidos",
["exclusions.hint"] = "Los procesos de esta lista no generan notificaciones de carga.",
["exclusions.add"] = "Añadir",
["exclusions.remove"] = "Quitar",
["settings.autostart"] = "Iniciar con Windows",
["settings.language"] = "Idioma:",
["settings.languageAuto"] = "Predeterminado del sistema",
["settings.theme"] = "Tema:",
["theme.system"] = "Sistema",
["theme.light"] = "Claro",
["theme.dark"] = "Oscuro",
["settings.ok"] = "Aceptar",
["settings.cancel"] = "Cancelar",
["style.ring"] = "Anillo + %",
["style.segments"] = "Anillo segmentado",
["style.speedometer"] = "Velocímetro",
["style.liquid"] = "Líquido + %",
["style.dots"] = "Cuadrícula de puntos",
["toast.title.one"] = "Núcleo {0} con carga desde hace {1}",
["toast.title.many"] = "Núcleos {0} con carga desde hace {1}",
["toast.culprit"] = "Probable causante: {0}",
["toast.culprit.none"] = "Causante no identificado (posible proceso del sistema o protegido)",
["toast.button.taskmgr"] = "Administrador de tareas",
["toast.core.load"] = "{0} ({1}% de un núcleo)",
["toast.proc.title"] = "{0} — carga sostenida desde hace {1}",
["toast.proc.body"] = "Mantiene {0}% de un núcleo de forma constante. ¿Es lo esperado?",
["tooltip.proc"] = "Núcleo {0}: {1}% | CPU {2}% | {3}",
["tooltip.noproc"] = "Núcleo {0}: {1}% | CPU {2}%",
["duration.min"] = "{0} min",
["duration.sec"] = "{0} s",
["menu.checkUpdates"] = "Buscar actualizaciones…",
["settings.updates"] = "Buscar actualizaciones automáticamente",
["update.available"] = "CorePulse {0} está disponible",
["update.available.body"] = "Tienes {0}. La actualización tarda un momento y reinicia la aplicación.",
["update.button.update"] = "Actualizar",
["update.button.notes"] = "Novedades",
["update.downloading"] = "Descargando CorePulse {0}…",
["update.upToDate"] = "Estás al día ({0}).",
["update.confirm"] = "¿Actualizar ahora?",
["update.failed"] = "Error al actualizar: {0}",
["update.failed.network"] = "no se pudo conectar con GitHub",
["error.startFailed"] = "No se pudo iniciar la monitorización:\n\n{0}",
};
private static readonly Dictionary<string, string> French = new()
{
["app.paused"] = "{0} — en pause",
["menu.settings"] = "Paramètres…",
["menu.test"] = "Tester la notification",
["menu.history"] = "Historique…",
["menu.pause"] = "Suspendre la surveillance",
["menu.exit"] = "Quitter",
["history.title"] = "{0} — Historique",
["history.tab.offenders"] = "Principaux consommateurs (cette session)",
["history.tab.alerts"] = "Alertes",
["history.chart"] = "Cœur le plus chaud — charge récente",
["history.col.process"] = "Processus",
["history.col.coremin"] = "Cœur-minutes",
["history.col.peak"] = "Pic",
["history.col.lastseen"] = "Vu pour la dernière fois",
["history.col.time"] = "Heure",
["history.col.cores"] = "Cœurs",
["history.col.load"] = "Charge",
["history.col.duration"] = "Durée",
["settings.title"] = "{0} v{1} — Paramètres",
["settings.iconStyle"] = "Style de l'icône dans la barre d'état :",
["settings.threshold"] = "Seuil de charge du cœur, % :",
["settings.duration"] = "Délai avant alerte, s :",
["settings.cooldown"] = "Délai entre alertes, min :",
["settings.pollInterval"] = "Intervalle de sondage, s :",
["settings.notifications"] = "Afficher les notifications",
["settings.procAlerts"] = "Alerter si un processus tient la charge",
["settings.procThreshold"] = "Seuil de charge du processus, % d'un cœur :",
["settings.procDuration"] = "Durée soutenue du processus, min :",
["settings.exclusions"] = "Processus exclus…",
["exclusions.title"] = "{0} — processus exclus",
["exclusions.hint"] = "Les processus listés ici ne déclenchent pas de notifications de charge.",
["exclusions.add"] = "Ajouter",
["exclusions.remove"] = "Retirer",
["settings.autostart"] = "Lancer au démarrage de Windows",
["settings.language"] = "Langue :",
["settings.languageAuto"] = "Paramètre système",
["settings.theme"] = "Thème :",
["theme.system"] = "Système",
["theme.light"] = "Clair",
["theme.dark"] = "Sombre",
["settings.ok"] = "OK",
["settings.cancel"] = "Annuler",
["style.ring"] = "Anneau + %",
["style.segments"] = "Anneau segmenté",
["style.speedometer"] = "Compteur",
["style.liquid"] = "Liquide + %",
["style.dots"] = "Grille de points",
["toast.title.one"] = "Cœur {0} sous charge depuis {1}",
["toast.title.many"] = "Cœurs {0} sous charge depuis {1}",
["toast.culprit"] = "Coupable probable : {0}",
["toast.culprit.none"] = "Coupable non identifié (processus système ou protégé possible)",
["toast.button.taskmgr"] = "Gestionnaire des tâches",
["toast.core.load"] = "{0} ({1}% d'un cœur)",
["toast.proc.title"] = "{0} — charge soutenue depuis {1}",
["toast.proc.body"] = "Occupe {0}% d'un cœur en continu. Est-ce normal ?",
["tooltip.proc"] = "Cœur {0} : {1}% | CPU {2}% | {3}",
["tooltip.noproc"] = "Cœur {0} : {1}% | CPU {2}%",
["duration.min"] = "{0} min",
["duration.sec"] = "{0} s",
["menu.checkUpdates"] = "Rechercher des mises à jour…",
["settings.updates"] = "Rechercher les mises à jour automatiquement",
["update.available"] = "CorePulse {0} est disponible",
["update.available.body"] = "Vous avez {0}. La mise à jour prend un instant et redémarre l'application.",
["update.button.update"] = "Mettre à jour",
["update.button.notes"] = "Nouveautés",
["update.downloading"] = "Téléchargement de CorePulse {0}…",
["update.upToDate"] = "Vous êtes à jour ({0}).",
["update.confirm"] = "Mettre à jour maintenant ?",
["update.failed"] = "Échec de la mise à jour : {0}",
["update.failed.network"] = "impossible de joindre GitHub",
["error.startFailed"] = "Impossible de démarrer la surveillance :\n\n{0}",
};
private static readonly Dictionary<string, string> Portuguese = new()
{
["app.paused"] = "{0} — pausado",
["menu.settings"] = "Configurações…",
["menu.test"] = "Testar notificação",
["menu.history"] = "Histórico…",
["menu.pause"] = "Pausar monitoramento",
["menu.exit"] = "Sair",
["history.title"] = "{0} — Histórico",
["history.tab.offenders"] = "Maiores consumidores (esta sessão)",
["history.tab.alerts"] = "Alertas",
["history.chart"] = "Núcleo mais quente — carga recente",
["history.col.process"] = "Processo",
["history.col.coremin"] = "Núcleo-minutos",
["history.col.peak"] = "Pico",
["history.col.lastseen"] = "Visto por último",
["history.col.time"] = "Hora",
["history.col.cores"] = "Núcleos",
["history.col.load"] = "Carga",
["history.col.duration"] = "Duração",
["settings.title"] = "{0} v{1} — Configurações",
["settings.iconStyle"] = "Estilo do ícone na bandeja:",
["settings.threshold"] = "Limite de carga do núcleo, %:",
["settings.duration"] = "Tempo até o alerta, s:",
["settings.cooldown"] = "Intervalo entre alertas, min:",
["settings.pollInterval"] = "Intervalo de sondagem, s:",
["settings.notifications"] = "Mostrar notificações",
["settings.procAlerts"] = "Alertar quando um processo mantém carga",
["settings.procThreshold"] = "Limite de carga do processo, % de um núcleo:",
["settings.procDuration"] = "Tempo sustentado do processo, min:",
["settings.exclusions"] = "Processos excluídos…",
["exclusions.title"] = "{0} — processos excluídos",
["exclusions.hint"] = "Os processos desta lista não geram notificações de carga.",
["exclusions.add"] = "Adicionar",
["exclusions.remove"] = "Remover",
["settings.autostart"] = "Iniciar com o Windows",
["settings.language"] = "Idioma:",
["settings.languageAuto"] = "Padrão do sistema",
["settings.theme"] = "Tema:",
["theme.system"] = "Sistema",
["theme.light"] = "Claro",
["theme.dark"] = "Escuro",
["settings.ok"] = "OK",
["settings.cancel"] = "Cancelar",
["style.ring"] = "Anel + %",
["style.segments"] = "Anel segmentado",
["style.speedometer"] = "Velocímetro",
["style.liquid"] = "Líquido + %",
["style.dots"] = "Grade de pontos",
["toast.title.one"] = "Núcleo {0} sob carga há {1}",
["toast.title.many"] = "Núcleos {0} sob carga há {1}",
["toast.culprit"] = "Provável causador: {0}",
["toast.culprit.none"] = "Causador não identificado (possível processo do sistema ou protegido)",
["toast.button.taskmgr"] = "Gerenciador de Tarefas",
["toast.core.load"] = "{0} ({1}% de um núcleo)",
["toast.proc.title"] = "{0} — carga sustentada há {1}",
["toast.proc.body"] = "Mantém {0}% de um núcleo de forma constante. É esperado?",
["tooltip.proc"] = "Núcleo {0}: {1}% | CPU {2}% | {3}",
["tooltip.noproc"] = "Núcleo {0}: {1}% | CPU {2}%",
["duration.min"] = "{0} min",
["duration.sec"] = "{0} s",
["menu.checkUpdates"] = "Procurar atualizações…",
["settings.updates"] = "Procurar atualizações automaticamente",
["update.available"] = "CorePulse {0} está disponível",
["update.available.body"] = "Você tem {0}. A atualização leva um momento e reinicia o aplicativo.",
["update.button.update"] = "Atualizar",
["update.button.notes"] = "Novidades",
["update.downloading"] = "Baixando CorePulse {0}…",
["update.upToDate"] = "Você está atualizado ({0}).",
["update.confirm"] = "Atualizar agora?",
["update.failed"] = "Falha na atualização: {0}",
["update.failed.network"] = "não foi possível acessar o GitHub",
["error.startFailed"] = "Não foi possível iniciar o monitoramento:\n\n{0}",
};
private static readonly Dictionary<string, string> Chinese = new()
{
["app.paused"] = "{0} — 已暂停",
["menu.settings"] = "设置…",
["menu.test"] = "测试通知",
["menu.history"] = "历史…",
["menu.pause"] = "暂停监控",
["menu.exit"] = "退出",
["history.title"] = "{0} — 历史",
["history.tab.offenders"] = "本次会话占用最多的进程",
["history.tab.alerts"] = "提醒",
["history.chart"] = "最热核心 — 近期负载",
["history.col.process"] = "进程",
["history.col.coremin"] = "核心·分钟",
["history.col.peak"] = "峰值",
["history.col.lastseen"] = "最后出现",
["history.col.time"] = "时间",
["history.col.cores"] = "核心",
["history.col.load"] = "负载",
["history.col.duration"] = "持续时间",
["settings.title"] = "{0} v{1} — 设置",
["settings.iconStyle"] = "托盘图标样式:",
["settings.threshold"] = "单核负载阈值 (%):",
["settings.duration"] = "触发提醒前的持续时间 (秒):",
["settings.cooldown"] = "两次提醒之间的间隔 (分钟):",
["settings.pollInterval"] = "采样间隔 (秒):",
["settings.notifications"] = "显示通知",
["settings.procAlerts"] = "进程持续占用时提醒",
["settings.procThreshold"] = "进程负载阈值(单核百分比):",
["settings.procDuration"] = "进程持续时间(分钟):",
["settings.exclusions"] = "排除的进程…",
["exclusions.title"] = "{0} — 排除的进程",
["exclusions.hint"] = "此列表中的进程不会触发负载通知。",
["exclusions.add"] = "添加",
["exclusions.remove"] = "移除",
["settings.autostart"] = "开机时启动",
["settings.language"] = "语言:",
["settings.languageAuto"] = "跟随系统",
["settings.theme"] = "主题:",
["theme.system"] = "跟随系统",
["theme.light"] = "浅色",
["theme.dark"] = "深色",
["settings.ok"] = "确定",
["settings.cancel"] = "取消",
["style.ring"] = "圆环 + %",
["style.segments"] = "分段圆环",
["style.speedometer"] = "仪表盘",
["style.liquid"] = "液体 + %",
["style.dots"] = "点阵",
["toast.title.one"] = "核心 {0} 已高负载 {1}",
["toast.title.many"] = "核心 {0} 已高负载 {1}",
["toast.culprit"] = "可能的原因:{0}",
["toast.culprit.none"] = "无法确定原因(可能是系统或受保护的进程)",
["toast.button.taskmgr"] = "任务管理器",
["toast.core.load"] = "{0}(占用一个核心的 {1}%)",
["toast.proc.title"] = "{0} — 已持续高负载 {1}",
["toast.proc.body"] = "持续占用一个核心的 {0}%。这是预期行为吗?",
["tooltip.proc"] = "核心 {0}:{1}% | CPU {2}% | {3}",
["tooltip.noproc"] = "核心 {0}:{1}% | CPU {2}%",
["duration.min"] = "{0} 分钟",
["duration.sec"] = "{0} 秒",
["menu.checkUpdates"] = "检查更新…",
["settings.updates"] = "自动检查更新",
["update.available"] = "CorePulse {0} 可用",
["update.available.body"] = "当前版本 {0}。更新只需片刻,应用将重新启动。",
["update.button.update"] = "更新",
["update.button.notes"] = "更新内容",
["update.downloading"] = "正在下载 CorePulse {0}…",
["update.upToDate"] = "已是最新版本({0})。",
["update.confirm"] = "现在更新?",
["update.failed"] = "更新失败:{0}",
["update.failed.network"] = "无法连接到 GitHub",
["error.startFailed"] = "无法启动监控:\n\n{0}",
};
private static readonly Dictionary<string, string> Japanese = new()
{
["app.paused"] = "{0} — 一時停止中",
["menu.settings"] = "設定…",
["menu.test"] = "通知をテスト",
["menu.history"] = "履歴…",
["menu.pause"] = "監視を一時停止",
["menu.exit"] = "終了",
["history.title"] = "{0} — 履歴",
["history.tab.offenders"] = "セッション中の高負荷プロセス",
["history.tab.alerts"] = "アラート",
["history.chart"] = "最も熱いコア — 最近の負荷",
["history.col.process"] = "プロセス",
["history.col.coremin"] = "コア・分",
["history.col.peak"] = "ピーク",
["history.col.lastseen"] = "最終検出",
["history.col.time"] = "時刻",
["history.col.cores"] = "コア",
["history.col.load"] = "負荷",
["history.col.duration"] = "継続時間",
["settings.title"] = "{0} v{1} — 設定",
["settings.iconStyle"] = "トレイアイコンのスタイル:",
["settings.threshold"] = "コア負荷のしきい値 (%):",
["settings.duration"] = "通知までの時間 (秒):",
["settings.cooldown"] = "通知の間隔 (分):",
["settings.pollInterval"] = "取得間隔 (秒):",
["settings.notifications"] = "通知を表示する",
["settings.procAlerts"] = "プロセスの継続的な負荷を通知",
["settings.procThreshold"] = "プロセス負荷のしきい値(1コアの%):",
["settings.procDuration"] = "プロセスの継続時間(分):",
["settings.exclusions"] = "除外するプロセス…",
["exclusions.title"] = "{0} — 除外するプロセス",
["exclusions.hint"] = "ここに登録したプロセスは負荷通知を出しません。",
["exclusions.add"] = "追加",
["exclusions.remove"] = "削除",
["settings.autostart"] = "Windows 起動時に実行",
["settings.language"] = "言語:",
["settings.languageAuto"] = "システムの既定",
["settings.theme"] = "テーマ:",
["theme.system"] = "システム",
["theme.light"] = "ライト",
["theme.dark"] = "ダーク",
["settings.ok"] = "OK",
["settings.cancel"] = "キャンセル",
["style.ring"] = "リング + %",
["style.segments"] = "セグメントリング",
["style.speedometer"] = "スピードメーター",
["style.liquid"] = "リキッド + %",
["style.dots"] = "ドットグリッド",
["toast.title.one"] = "コア {0} が {1} 高負荷です",
["toast.title.many"] = "コア {0} が {1} 高負荷です",
["toast.culprit"] = "原因の可能性: {0}",
["toast.culprit.none"] = "原因を特定できません(システムまたは保護されたプロセスの可能性)",
["toast.button.taskmgr"] = "タスク マネージャー",
["toast.core.load"] = "{0}(コアの {1}%)",
["toast.proc.title"] = "{0} — {1} 継続して高負荷",
["toast.proc.body"] = "コアの {0}% を継続的に使用中。想定内ですか?",
["tooltip.proc"] = "コア {0}: {1}% | CPU {2}% | {3}",
["tooltip.noproc"] = "コア {0}: {1}% | CPU {2}%",
["duration.min"] = "{0} 分",
["duration.sec"] = "{0} 秒",
["menu.checkUpdates"] = "更新を確認…",
["settings.updates"] = "自動的に更新を確認する",
["update.available"] = "CorePulse {0} が利用できます",
["update.available.body"] = "現在のバージョンは {0} です。更新はすぐに完了し、アプリが再起動します。",
["update.button.update"] = "更新",
["update.button.notes"] = "変更点",
["update.downloading"] = "CorePulse {0} をダウンロードしています…",
["update.upToDate"] = "最新バージョンです({0})。",
["update.confirm"] = "今すぐ更新しますか?",
["update.failed"] = "更新に失敗しました: {0}",
["update.failed.network"] = "GitHub に接続できませんでした",
["error.startFailed"] = "監視を開始できませんでした:\n\n{0}",
};
private static readonly Dictionary<AppLanguage, Dictionary<string, string>> Tables = new()
{
[AppLanguage.English] = English,
[AppLanguage.Russian] = Russian,
[AppLanguage.German] = German,
[AppLanguage.Spanish] = Spanish,
[AppLanguage.French] = French,
[AppLanguage.Portuguese] = Portuguese,
[AppLanguage.Chinese] = Chinese,
[AppLanguage.Japanese] = Japanese,
};
}