feat(settings): split import into separate key + viewing-key buttons
Backup & Data now has two distinct import actions instead of one auto-detecting dialog: - "Import Key" imports a spending key (transparent WIF or shielded z-spending key) with the strong "grants access to funds" warning. - "Import Viewing Key" imports a watch-only shielded viewing key (zxviews…) with a milder eye/watch-only note and an optional "scan from block height" field — z_importviewingkey accepts a start height, so watching a recent address needn't rescan the whole chain. The shared Material dialog (renderImportKeyDialog) branches on import_view_mode_: title, warning tone, field label, the live type indicator, and the recognition guard. A key valid for the *other* button (e.g. a spending key pasted into the viewing-key dialog) now shows a redirect hint rather than a generic "unrecognized" error. importPrivateKey gains a startHeight arg, appended to the shielded import RPCs (z_importviewingkey / z_importkey) and ignored for transparent WIF (importprivkey has no start-height param). The scan-height buffer is wiped on open/close alongside the key buffer. i18n: 9 new keys (button label + tooltip, viewing title/note/field, scan label/hint, two wrong-type redirect hints) with translations for all 8 languages; CJK subset rebuilt (+1 glyph). A modal-import-viewkey sweep surface is added for the viewing-mode dialog. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -441,8 +441,15 @@
|
||||
"import_key_type_zview": "Chave de visualização blindada (somente leitura)",
|
||||
"import_key_warn": "Importe apenas uma chave que você possui — ela concede acesso aos seus fundos.",
|
||||
"import_key_warning": "Aviso: Nunca compartilhe suas chaves privadas! Importar chaves de fontes não confiáveis pode comprometer sua carteira.",
|
||||
"import_key_wrong_type": "Isto parece uma chave de visualização. Use \"Importar chave de visualização\".",
|
||||
"import_key_z_format": "Chaves de gasto de z-endereço (secret-extended-key-...)",
|
||||
"import_private_key": "Importar Chave Privada...",
|
||||
"import_viewkey_field": "Chave de visualização",
|
||||
"import_viewkey_note": "Somente leitura: uma chave de visualização revela o saldo e as transações de um endereço, mas não pode gastar seus fundos.",
|
||||
"import_viewkey_scan_hint": "0 = reescanear desde o início",
|
||||
"import_viewkey_scan_label": "Escanear a partir da altura do bloco (opcional)",
|
||||
"import_viewkey_title": "Importar chave de visualização",
|
||||
"import_viewkey_wrong_type": "Isto parece uma chave de gasto. Use \"Importar chave\".",
|
||||
"incorrect_passphrase": "Senha incorreta",
|
||||
"incorrect_pin": "PIN incorreto",
|
||||
"insufficient_funds": "Fundos insuficientes para este valor mais taxa.",
|
||||
@@ -1105,6 +1112,7 @@
|
||||
"settings_gradient_desc": "Substituir fundos texturizados por gradientes suaves",
|
||||
"settings_idle_after": "após",
|
||||
"settings_import_key": "Importar chave...",
|
||||
"settings_import_viewkey": "Importar chave de visualização...",
|
||||
"settings_language_note": "Nota: Alguns textos requerem reinício para atualizar",
|
||||
"settings_lock_now": "Bloquear agora",
|
||||
"settings_locked": "Bloqueado",
|
||||
@@ -1252,6 +1260,7 @@
|
||||
"tt_font_scale": "Escalar todo o texto e interface (1.0x = padrão, até 1.5x).",
|
||||
"tt_idle_delay": "Quanto tempo esperar antes de iniciar a mineração",
|
||||
"tt_import_key": "Importar uma chave privada (zkey ou tkey) nesta carteira",
|
||||
"tt_import_viewkey": "Importar uma chave de visualização blindada para observar um endereço (somente leitura)",
|
||||
"tt_keep_daemon": "O daemon será parado ao executar o assistente de configuração",
|
||||
"tt_language": "Idioma da interface da carteira",
|
||||
"tt_layout_hotkey": "Atalho: teclas de seta esquerda/direita para alternar layouts de Saldo",
|
||||
|
||||
Reference in New Issue
Block a user