feat(mining): migrate the Windows Defender antivirus-help dialog to reference design
Bring renderAntivirusHelpDialog onto the reference design and remove its hardcoded
English (the last Wave-1 modal):
- struct-form BeginOverlayDialog(OverlayDialogSpec{BlurFloat, cardWidth 560,
idSuffix antivirus}) replacing the legacy positional overload
- the hardcoded "Windows Defender Blocked Miner" title and all 10 step/intro/bullet
strings -> TR() (11 new av_* keys + reuse `close`; 8-lang translations, Windows
env vars / xmrig.exe kept literal, menu names localized)
- 2 StyledButton -> TactileButton, drop the footer divider, dp-scale the button widths
- CJK subset rebuilt (glyphs 1741->1751; kept — new glyphs are used)
NOTE: this dialog is inside #ifdef _WIN32, so the Linux build compiles it out and
cannot verify it — needs a Windows build to compile-check. The edits mirror the
already-verified daemon-update-prompt / migrate-to-seed struct-overlay pattern and
leave the ShellExecuteA call untouched. i18n.cpp + the daemon prompt (cross-platform)
build + ctest + hygiene clean on Linux.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -55,6 +55,17 @@
|
||||
"amount_label": "Cantidad:",
|
||||
"appearance": "APARIENCIA",
|
||||
"auto_shield": "Auto-proteger minería",
|
||||
"av_intro": "El software de minería suele marcarse como potencialmente no deseado. Sigue estos pasos para habilitar la minería en pool:",
|
||||
"av_open_security": "Abrir Seguridad de Windows",
|
||||
"av_step1": "Paso 1: Agregar exclusión",
|
||||
"av_step1_b1": "Abre Seguridad de Windows > Protección antivirus y contra amenazas",
|
||||
"av_step1_b2": "Haz clic en Administrar configuración > Exclusiones > Agregar o quitar",
|
||||
"av_step1_b3": "Agrega la carpeta: %APPDATA%\\ObsidianDragon\\",
|
||||
"av_step2": "Paso 2: Restaurar desde cuarentena (si es necesario)",
|
||||
"av_step2_b1": "Seguridad de Windows > Historial de protección",
|
||||
"av_step2_b2": "Busca xmrig.exe y haz clic en Restaurar",
|
||||
"av_step3": "Paso 3: Reinicia el monedero e inténtalo de nuevo",
|
||||
"av_title": "Windows Defender bloqueó el minero",
|
||||
"available": "Disponible",
|
||||
"backup_backing_up": "Respaldando...",
|
||||
"backup_create": "Crear Respaldo",
|
||||
|
||||
Reference in New Issue
Block a user