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

@@ -33,8 +33,6 @@ from ...logging import get_logger
from ... import tools
from ... import aiotools
from ...lanuages import Lanuages
from . import BaseAuthService
@@ -103,9 +101,9 @@ class Plugin(BaseAuthService):
except ldap.INVALID_CREDENTIALS:
pass
except ldap.SERVER_DOWN as err:
get_logger().error(Lanuages().gettext("LDAP server is down: %s"), tools.efmt(err))
get_logger().error("LDAP server is down: %s", tools.efmt(err))
except Exception as err:
get_logger().error(Lanuages().gettext("Unexpected LDAP error: %s"), tools.efmt(err))
get_logger().error("Unexpected LDAP error: %s", tools.efmt(err))
finally:
if conn is not None:
try: