feat(ui): 导出/备份 — otpauth URI 列表 + 加密备份导出/恢复
- qr/export.go: EntryToOtpAuth + OtpAuth.URI,将 config.Entry 反向 转换为标准 otpauth:// URI(Battle.Net/Steam 标记为 partial) - dialog_export.go: Tab 切换对话框,otpauth URI 列表可复制 + 加密备份文件导出(独立密码,0o600 权限) - dialog_restore_backup.go: 从 .winauth.bak 恢复,密码验证后合并 - settings_menu: 新增 Export / Restore Backup 菜单项 - i18n: en/zh-CN/de 三语翻译
This commit is contained in:
@@ -509,3 +509,67 @@ other = "更换图标..."
|
||||
|
||||
[dialog_icon_picker_title]
|
||||
other = "选择图标"
|
||||
|
||||
# --- 首次启动欢迎 ---
|
||||
|
||||
[dialog_welcome_title]
|
||||
other = "欢迎使用 WinAuth"
|
||||
|
||||
[msg_welcome_intro]
|
||||
other = "选择是否对磁盘上存储的验证器列表进行加密。加密将使用你选择的密码保护文件。你可以在设置中随时更改。"
|
||||
|
||||
[btn_welcome_enable_password]
|
||||
other = "启用密码保护"
|
||||
|
||||
[btn_welcome_skip]
|
||||
other = "暂时跳过"
|
||||
|
||||
# --- 导出 / 备份 ---
|
||||
|
||||
[menu_export]
|
||||
other = "导出..."
|
||||
|
||||
[menu_restore_backup]
|
||||
other = "恢复备份..."
|
||||
|
||||
[dialog_export_title]
|
||||
other = "导出验证器"
|
||||
|
||||
[export_tab_otpauth]
|
||||
other = "otpauth:// URI"
|
||||
|
||||
[export_tab_backup]
|
||||
other = "加密备份"
|
||||
|
||||
[export_otpauth_intro]
|
||||
other = "以下是每个条目的标准 otpauth:// URI,可导入到其他验证器应用(Google Authenticator、Authy 等)。"
|
||||
|
||||
[export_partial_warning]
|
||||
other = "部分导出 — 厂商专用字段已省略"
|
||||
|
||||
[export_backup_intro]
|
||||
other = "将加密备份文件写入磁盘,可在任何机器上恢复。请选择强密码——此密码与当前 WinAuth 密码无关。"
|
||||
|
||||
[label_backup_path]
|
||||
other = "备份文件路径"
|
||||
|
||||
[btn_export]
|
||||
other = "导出"
|
||||
|
||||
[msg_empty_backup_path]
|
||||
other = "请输入备份文件路径。"
|
||||
|
||||
[msg_export_done]
|
||||
other = "备份导出成功。"
|
||||
|
||||
[msg_export_failed]
|
||||
other = "导出失败:%s"
|
||||
|
||||
[dialog_restore_backup_title]
|
||||
other = "从备份恢复"
|
||||
|
||||
[restore_backup_intro]
|
||||
other = "选择加密备份文件(.winauth.bak)并输入创建时设置的密码。条目将追加到当前列表。"
|
||||
|
||||
[msg_restore_done]
|
||||
other = "备份已恢复。"
|
||||
|
||||
Reference in New Issue
Block a user