添加恢复机器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

@@ -31,7 +31,9 @@
"operation_cancelled_by_user": "Thao tác đã bị người dùng hủy",
"exiting": "Đang thoát ……",
"bypass_version_check": "Bỏ qua Kiểm tra Phiên bản Cursor",
"check_user_authorized": "Kiểm tra Quyền Người dùng"
"check_user_authorized": "Kiểm tra Quyền Người dùng",
"bypass_token_limit": "Bỏ qua giới hạn Token",
"restore_machine_id": "Khôi phục ID máy từ bản sao lưu"
},
"languages": {
"en": "Tiếng Anh",
@@ -727,5 +729,48 @@
"checking_usage_information": "Đang kiểm tra thông tin sử dụng...",
"check_usage_response": "Phản hồi kiểm tra sử dụng: {response}",
"usage_response": "Phản hồi sử dụng: {response}"
},
"restore": {
"title": "Khôi phục ID máy từ bản sao lưu",
"starting": "Bắt đầu quá trình khôi phục ID máy",
"no_backups_found": "Không tìm thấy bản sao lưu nào",
"available_backups": "Các bản sao lưu có sẵn",
"select_backup": "Chọn bản sao lưu để khôi phục",
"to_cancel": "để hủy",
"operation_cancelled": "Đã hủy thao tác",
"invalid_selection": "Lựa chọn không hợp lệ",
"please_enter_number": "Vui lòng nhập một số hợp lệ",
"missing_id": "Thiếu ID: {id}",
"read_backup_failed": "Không thể đọc tệp sao lưu: {error}",
"current_file_not_found": "Không tìm thấy tệp lưu trữ hiện tại",
"current_backup_created": "Đã tạo bản sao lưu của tệp lưu trữ hiện tại",
"storage_updated": "Tệp lưu trữ đã được cập nhật thành công",
"update_failed": "Không thể cập nhật tệp lưu trữ: {error}",
"sqlite_not_found": "Không tìm thấy cơ sở dữ liệu SQLite",
"updating_sqlite": "Đang cập nhật cơ sở dữ liệu SQLite",
"updating_pair": "Đang cập nhật cặp khóa-giá trị",
"sqlite_updated": "Cơ sở dữ liệu SQLite đã được cập nhật thành công",
"sqlite_update_failed": "Không thể cập nhật cơ sở dữ liệu SQLite: {error}",
"machine_id_backup_created": "Đã tạo bản sao lưu của tệp machineId",
"backup_creation_failed": "Không thể tạo bản sao lưu: {error}",
"machine_id_updated": "Tệp machineId đã được cập nhật thành công",
"machine_id_update_failed": "Không thể cập nhật tệp machineId: {error}",
"updating_system_ids": "Đang cập nhật ID hệ thống",
"system_ids_update_failed": "Không thể cập nhật ID hệ thống: {error}",
"permission_denied": "Quyền truy cập bị từ chối. Vui lòng thử chạy với quyền quản trị",
"windows_machine_guid_updated": "GUID máy Windows đã được cập nhật thành công",
"update_windows_machine_guid_failed": "Không thể cập nhật GUID máy Windows: {error}",
"windows_machine_id_updated": "ID máy Windows đã được cập nhật thành công",
"update_windows_machine_id_failed": "Không thể cập nhật ID máy Windows: {error}",
"sqm_client_key_not_found": "Không tìm thấy khóa đăng ký SQMClient",
"update_windows_system_ids_failed": "Không thể cập nhật ID hệ thống Windows: {error}",
"macos_platform_uuid_updated": "UUID nền tảng macOS đã được cập nhật thành công",
"failed_to_execute_plutil_command": "Không thể thực thi lệnh plutil",
"update_macos_system_ids_failed": "Không thể cập nhật ID hệ thống macOS: {error}",
"ids_to_restore": "ID máy cần khôi phục",
"confirm": "Bạn có chắc chắn muốn khôi phục những ID này không?",
"success": "ID máy đã được khôi phục thành công",
"process_error": "Lỗi quá trình khôi phục: {error}",
"press_enter": "Nhấn Enter để tiếp tục"
}
}