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.

This commit is contained in:
yeongpin
2025-03-22 21:21:09 +08:00
parent 0b2081175d
commit 048a69be8f
4 changed files with 21 additions and 7 deletions

View File

@@ -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