Revert "初步的 kvmd 国际化(汉化)支持"

This reverts commit 20927c7226.
This commit is contained in:
mofeng-git
2024-11-20 11:54:27 +00:00
parent 8fdb7d7cd6
commit 6928fab16c
34 changed files with 114 additions and 1000 deletions

View File

@@ -22,8 +22,6 @@
import os
from .lanuages import Lanuages
from . import env
@@ -33,10 +31,10 @@ def find_udc(udc: str) -> str:
candidates = sorted(os.listdir(path))
if not udc:
if len(candidates) == 0:
raise RuntimeError(Lanuages().gettext("Can't find any UDC"))
raise RuntimeError("Can't find any UDC")
udc = candidates[0]
elif udc not in candidates:
raise RuntimeError(Lanuages().gettext(f"Can't find selected UDC: {udc}"))
raise RuntimeError(f"Can't find selected UDC: {udc}")
return udc # fe980000.usb