进一步的 kvmd 国际化(汉化)支持

This commit is contained in:
mofeng-git
2024-08-12 22:58:01 +08:00
parent 0af0e2b4d0
commit 5b25b3661f
11 changed files with 599 additions and 90 deletions

View File

@@ -24,6 +24,8 @@ from typing import Iterable
from typing import AsyncGenerator
from typing import Any
from ....lanuages import Lanuages
from ....logging import get_logger
from .... import aiomulti
@@ -118,7 +120,7 @@ class Plugin(BaseHid): # pylint: disable=too-many-instance-attributes
def sysprep(self) -> None:
udc = usb.find_udc(self.__udc)
get_logger(0).info("Using UDC %s", udc)
get_logger(0).info(Lanuages().gettext("Using UDC %s"), udc)
self.__keyboard_proc.start(udc)
self.__mouse_proc.start(udc)
if self.__mouse_alt_proc: