添加恢复机器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": "Exiting ……",
"bypass_version_check": "Bypass Cursor Version Check",
"check_user_authorized": "Check User Authorized",
"bypass_token_limit": "Bypass Token Limit"
"bypass_token_limit": "Bypass Token Limit",
"restore_machine_id": "Restore Machine ID from Backup"
},
"languages": {
"en": "English",
@@ -764,5 +765,48 @@
"connection_error": "Connection error to refresh server",
"unexpected_error": "Unexpected error during token refresh: {error}",
"extraction_error": "Error extracting token: {error}"
},
"restore": {
"title": "Restore Machine ID from Backup",
"starting": "Starting Machine ID Restore Process",
"no_backups_found": "No backup files found",
"available_backups": "Available backup files",
"select_backup": "Select backup to restore",
"to_cancel": "to cancel",
"operation_cancelled": "Operation cancelled",
"invalid_selection": "Invalid selection",
"please_enter_number": "Please enter a valid number",
"missing_id": "Missing ID: {id}",
"read_backup_failed": "Failed to read backup file: {error}",
"current_file_not_found": "Current storage file not found",
"current_backup_created": "Created backup of current storage file",
"storage_updated": "Storage file updated successfully",
"update_failed": "Failed to update storage file: {error}",
"sqlite_not_found": "SQLite database not found",
"updating_sqlite": "Updating SQLite database",
"updating_pair": "Updating key-value pair",
"sqlite_updated": "SQLite database updated successfully",
"sqlite_update_failed": "Failed to update SQLite database: {error}",
"machine_id_backup_created": "Created backup of machineId file",
"backup_creation_failed": "Failed to create backup: {error}",
"machine_id_updated": "machineId file updated successfully",
"machine_id_update_failed": "Failed to update machineId file: {error}",
"updating_system_ids": "Updating system IDs",
"system_ids_update_failed": "Failed to update system IDs: {error}",
"permission_denied": "Permission denied. Please try running as administrator",
"windows_machine_guid_updated": "Windows Machine GUID updated successfully",
"update_windows_machine_guid_failed": "Failed to update Windows Machine GUID: {error}",
"windows_machine_id_updated": "Windows Machine ID updated successfully",
"update_windows_machine_id_failed": "Failed to update Windows Machine ID: {error}",
"sqm_client_key_not_found": "SQMClient registry key not found",
"update_windows_system_ids_failed": "Failed to update Windows system IDs: {error}",
"macos_platform_uuid_updated": "macOS Platform UUID updated successfully",
"failed_to_execute_plutil_command": "Failed to execute plutil command",
"update_macos_system_ids_failed": "Failed to update macOS system IDs: {error}",
"ids_to_restore": "Machine IDs to restore",
"confirm": "Are you sure you want to restore these IDs?",
"success": "Machine ID restored successfully",
"process_error": "Restore process error: {error}",
"press_enter": "Press Enter to continue"
}
}
}