replaced translations with easier one and added demotivators (not polished)

This commit is contained in:
WhatDidYouExpect 2025-07-05 20:15:54 +02:00
parent d641908a8c
commit 22d454dd42
15 changed files with 304 additions and 244 deletions

View file

@ -2,6 +2,7 @@ import sys
import traceback
import os
from modules.globalvars import RED, RESET, splashtext
from modules.translations import _
def handle_exception(exc_type, exc_value, exc_traceback, *, context=None):
os.system('cls' if os.name == 'nt' else 'clear')
@ -14,7 +15,8 @@ def handle_exception(exc_type, exc_value, exc_traceback, *, context=None):
print(f"{RED}=====BEGINNING OF TRACEBACK====={RESET}")
traceback.print_exception(exc_type, exc_value, exc_traceback)
print(f"{RED}========END OF TRACEBACK========{RESET}")
print(f"{RED}An unhandled exception occurred. Please report this issue on GitHub.{RESET}")
print(f"{RED}{_('unhandled_exception')}{RESET}")
if context:
print(f"{RED}Context: {context}{RESET}")