添加恢复机器ID功能,新增restore_machine_id.py文件并更新主菜单以支持该功能。更新多语言支持,包含相关提示信息和错误处理。

This commit is contained in:
ppanphper
2025-04-23 16:31:53 +08:00
parent 4aba849cf1
commit c2af657c88
14 changed files with 967 additions and 20 deletions

View File

@@ -32,7 +32,8 @@
"exiting": "退出中 ……",
"bypass_version_check": "绕过 Cursor 版本检查",
"check_user_authorized": "检查用户授权",
"bypass_token_limit": "绕过 Token 限制"
"bypass_token_limit": "绕过 Token 限制",
"restore_machine_id": "从备份恢复机器ID"
},
"languages": {
"en": "英语",
@@ -744,5 +745,48 @@
"connection_error": "连接刷新服务器错误",
"unexpected_error": "令牌刷新过程中出现意外错误: {error}",
"extraction_error": "提取令牌时出错: {error}"
},
"restore": {
"title": "从备份恢复机器ID",
"starting": "正在启动机器ID恢复进程",
"no_backups_found": "未找到备份文件",
"available_backups": "可用的备份文件",
"select_backup": "选择要恢复的备份",
"to_cancel": "取消操作",
"operation_cancelled": "操作已取消",
"invalid_selection": "选择无效",
"please_enter_number": "请输入有效的数字",
"missing_id": "缺少ID: {id}",
"read_backup_failed": "读取备份文件失败: {error}",
"current_file_not_found": "未找到当前存储文件",
"current_backup_created": "已创建当前存储文件的备份",
"storage_updated": "存储文件已成功更新",
"update_failed": "更新存储文件失败: {error}",
"sqlite_not_found": "未找到SQLite数据库",
"updating_sqlite": "正在更新SQLite数据库",
"updating_pair": "正在更新键值对",
"sqlite_updated": "SQLite数据库已成功更新",
"sqlite_update_failed": "更新SQLite数据库失败: {error}",
"machine_id_backup_created": "已创建machineId文件的备份",
"backup_creation_failed": "创建备份失败: {error}",
"machine_id_updated": "machineId文件已成功更新",
"machine_id_update_failed": "更新machineId文件失败: {error}",
"updating_system_ids": "正在更新系统ID",
"system_ids_update_failed": "更新系统ID失败: {error}",
"permission_denied": "权限被拒绝。请尝试以管理员身份运行",
"windows_machine_guid_updated": "Windows机器GUID已成功更新",
"update_windows_machine_guid_failed": "更新Windows机器GUID失败: {error}",
"windows_machine_id_updated": "Windows机器ID已成功更新",
"update_windows_machine_id_failed": "更新Windows机器ID失败: {error}",
"sqm_client_key_not_found": "未找到SQMClient注册表项",
"update_windows_system_ids_failed": "更新Windows系统ID失败: {error}",
"macos_platform_uuid_updated": "macOS平台UUID已成功更新",
"failed_to_execute_plutil_command": "执行plutil命令失败",
"update_macos_system_ids_failed": "更新macOS系统ID失败: {error}",
"ids_to_restore": "要恢复的机器ID",
"confirm": "您确定要恢复这些ID吗",
"success": "机器ID已成功恢复",
"process_error": "恢复过程错误: {error}",
"press_enter": "按Enter键继续"
}
}