From 048a69be8ffc3497729f4d6cc921ce88a0b9abb7 Mon Sep 17 00:00:00 2001 From: yeongpin Date: Sat, 22 Mar 2025 21:21:09 +0800 Subject: [PATCH] Update cursor reset messages for improved clarity and user feedback. Modify translation strings in English and Chinese (Simplified and Traditional) locales to reflect completed reset status and cancellation notifications. --- locales/en.json | 7 ++++++- locales/zh_cn.json | 7 ++++++- locales/zh_tw.json | 8 ++++++-- totally_reset_cursor.py | 6 +++--- 4 files changed, 21 insertions(+), 7 deletions(-) diff --git a/locales/en.json b/locales/en.json index e784172..47beef2 100644 --- a/locales/en.json +++ b/locales/en.json @@ -404,7 +404,12 @@ "failed_to_delete_directory": "Failed to delete directory: {path}", "failed_to_delete_file_or_directory": "Failed to delete file or directory: {path}", "deep_scanning": "Performing deep scan for additional trial/license files", - "resetting_cursor": "Resetting Cursor AI Editor... Please wait." + "resetting_cursor": "Resetting Cursor AI Editor... Please wait.", + "completed_in": "Completed in {time} seconds", + "cursor_reset_completed": "Cursor AI Editor has been fully reset and trial detection bypassed!", + "cursor_reset_failed": "Cursor AI Editor reset failed: {error}", + "cursor_reset_cancelled": "Cursor AI Editor reset cancelled. Exiting without making any changes.", + "operation_cancelled": "Operation cancelled. Exiting without making any changes." }, "github_register": { "title": "GitHub + Cursor AI Registration Automation", diff --git a/locales/zh_cn.json b/locales/zh_cn.json index 8c81b10..f601d4f 100644 --- a/locales/zh_cn.json +++ b/locales/zh_cn.json @@ -398,7 +398,12 @@ "failed_to_delete_directory": "无法删除目录:{path}", "failed_to_delete_file_or_directory": "无法删除文件或目录:{path}", "deep_scanning": "正在进行深度扫描以查找其他试用/授权文件", - "resetting_cursor": "正在重置 Cursor AI 编辑器... 请稍候。" + "resetting_cursor": "正在重置 Cursor AI 编辑器... 请稍候。", + "completed_in": "完成时间:{time} 秒", + "cursor_reset_completed": "Cursor AI 编辑器已完全重置且绕过试用检测!", + "cursor_reset_failed": "Cursor AI 编辑器重置失败:{error}", + "cursor_reset_cancelled": "Cursor AI 编辑器重置已取消,未进行任何更改。", + "operation_cancelled": "操作已取消,未进行任何更改。" }, "github_register": { "title": "GitHub + Cursor AI 注册自动化", diff --git a/locales/zh_tw.json b/locales/zh_tw.json index 9414b49..879c2c4 100644 --- a/locales/zh_tw.json +++ b/locales/zh_tw.json @@ -377,8 +377,12 @@ "failed_to_delete_directory": "無法刪除目錄:{path}", "failed_to_delete_file_or_directory": "無法刪除檔案或目錄:{path}", "deep_scanning": "正在進行深度掃描以查找其他試用/授權檔案", - "resetting_cursor": "正在重置 Cursor AI 編輯器... 請稍候。" - + "resetting_cursor": "正在重置 Cursor AI 編輯器... 請稍候。", + "completed_in": "完成時間:{time} 秒", + "cursor_reset_completed": "Cursor AI 編輯器已完全重置且繞過試用偵測!", + "cursor_reset_failed": "Cursor AI 編輯器重置失敗:{error}", + "cursor_reset_cancelled": "Cursor AI 編輯器重置已取消,未進行任何更改。", + "operation_cancelled": "操作已取消,未進行任何更改。" }, "github_register": { "title": "GitHub + Cursor AI 注册自动化", diff --git a/totally_reset_cursor.py b/totally_reset_cursor.py index 52678bc..2b91b64 100644 --- a/totally_reset_cursor.py +++ b/totally_reset_cursor.py @@ -175,7 +175,7 @@ def reset_cursor(translator=None): # Reset machine ID reset_machine_id(translator) - print(f"\n{Fore.GREEN}{EMOJI['SUCCESS']} {translator.get('totally_reset.cursor_reset')}") + print(f"\n{Fore.GREEN}{EMOJI['SUCCESS']} {translator.get('totally_reset.cursor_reset_completed')}") def main(translator=None): start_time = time.time() @@ -187,9 +187,9 @@ def main(translator=None): if get_user_confirmation(translator): reset_cursor(translator) end_time = time.time() - print(f"\n{Fore.GREEN}⏱️ {translator.get('reset.completed_in', time=f'{end_time - start_time:.2f} seconds')}{Style.RESET_ALL}") + print(f"\n{Fore.GREEN}⏱️ {translator.get('totally_reset.completed_in', time=f'{end_time - start_time:.2f} seconds')}{Style.RESET_ALL}") else: - print(f"\n{Fore.RED}❌ {translator.get('reset.operation_cancelled')}{Style.RESET_ALL}") + print(f"\n{Fore.RED}❌ {translator.get('totally_reset.operation_cancelled')}{Style.RESET_ALL}") if __name__ == '__main__': from main import translator