Started to implement deutsch

This commit is contained in:
mrmarcus007
2023-05-03 11:29:16 +01:00
committed by GitHub
parent cac006cee3
commit 595f3d6b15
+47 -18
View File
@@ -14,6 +14,14 @@ RyzenADJI = ()
USBdevices = () USBdevices = ()
TotalUSBpower = () TotalUSBpower = ()
TotalPower = () TotalPower = ()
Lang = ()
def lang():
global Lang
os.system('cls')
print("Please select 1 of 2 languages, Bitte Wahalen sie 1 oder 2 Sprachen")
print("1. English \n 2. Deusche)
Lang = input(">")
def start(): def start():
os.system('cls') os.system('cls')
@@ -27,7 +35,8 @@ def start():
Menu() Menu()
except: except:
print("This is first time setup, please wait...") print("This is first time setup, please wait...")
time.sleep(5) time.sleep(2)
time.sleep(0.5987654321)
editor() editor()
def load(): def load():
@@ -50,24 +59,44 @@ def load():
TotalPower = (data["TotalPower"]) TotalPower = (data["TotalPower"])
def Menu(): def Menu():
os.system('cls') if lang = 1:
print("="*40, "\n", graphics.Menu, "\n", graphics.Rever, "\n", "="*40)
print(" 1. View current configuration \n 2. Edit configuration \n 3. export configuration \n 4. exit program")
choice = input(" user: ")
if choice == "1":
os.system('cls') os.system('cls')
configdisplay() print("="*40, "\n", graphics.Menu, "\n", graphics.Rever, "\n", "="*40)
input(" Press enter to continue") print(" 1. View current configuration \n 2. Edit configuration \n 3. export configuration \n 4. exit program")
Menu() choice = input(" user: ")
elif choice == "2": if choice == "1":
os.system('cls')
configdisplay()
input(" Press enter to continue")
Menu()
elif choice == "2":
os.system('cls')
editor()
elif choice == "3":
export()
elif choice == "4":
existstage1()
else:
Menu()
else:
os.system('cls') os.system('cls')
editor() print("="*40, "\n", graphics.MenuD, "\n", graphics.ReverD, "\n", "="*40)
elif choice == "3": print(" 1. Aktuelle Konfiguration anzeigen \n 2. Konfiguration bearbeiten \n 3. Konfiguration exportieren \n 4. Programm beenden")
export() choice = input(" Benutzer: ")
elif choice == "4": if choice == "1":
existstage1() os.system('cls')
else: configdisplay()
Menu() input(" Press enter to continue")
Menu()
elif choice == "2":
os.system('cls')
editor()
elif choice == "3":
export()
elif choice == "4":
existstage1()
else:
Menu()
def editor(): def editor():
my_system = platform.uname() my_system = platform.uname()
@@ -186,4 +215,4 @@ def exitstage2():
time.sleep(1) time.sleep(1)
t = t - 1 t = t - 1
start() start()