mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 03:52:50 +08:00
fix: show invalid nickname connection errors
This commit is contained in:
1 parent
d13b3207a9
commit
ef3e65ea0b
5 files changed
+22
-4
No files matched your search
@@ -180,6 +180,7 @@ const copy = {
|
||||
invalidServerPasswordError: "服务器密码错误",
|
||||
protocolFailureError: "TeamSpeak 协议协商失败",
|
||||
serverRejectedError: "服务器拒绝连接",
|
||||
invalidNicknameError: "昵称长度不符合服务器要求",
|
||||
pingUnavailableError: "无法执行网络探测",
|
||||
accessAndIdentity: "访问与站点信息",
|
||||
advancedSettings: "高级参数",
|
||||
@@ -382,6 +383,7 @@ const copy = {
|
||||
invalidServerPasswordError: "Invalid server password",
|
||||
protocolFailureError: "TeamSpeak protocol negotiation failed",
|
||||
serverRejectedError: "Server rejected the connection",
|
||||
invalidNicknameError: "The nickname length does not meet the server requirements",
|
||||
pingUnavailableError: "Network probe unavailable",
|
||||
accessAndIdentity: "Access and site identity",
|
||||
advancedSettings: "Advanced settings",
|
||||
@@ -581,6 +583,7 @@ const germanCopy = {
|
||||
invalidServerPasswordError: "Falsches Serverpasswort",
|
||||
protocolFailureError: "Aushandlung des TeamSpeak-Protokolls fehlgeschlagen",
|
||||
serverRejectedError: "Server hat die Verbindung abgelehnt",
|
||||
invalidNicknameError: "Die Länge des Spitznamens entspricht nicht den Serveranforderungen",
|
||||
pingUnavailableError: "Netzwerkprüfung nicht verfügbar",
|
||||
accessAndIdentity: "Zugriff und Website-Informationen",
|
||||
advancedSettings: "Erweiterte Einstellungen",
|
||||
@@ -690,6 +693,7 @@ const testResultTitle = computed(() => {
|
||||
if (result.ok) return result.checkType === "network" ? tr("networkReachable") : tr("connectionReady");
|
||||
const names: Record<string, keyof typeof copy.zh> = {
|
||||
INVALID_TARGET: "serverAddress",
|
||||
INVALID_NICKNAME: "invalidNicknameError",
|
||||
HOST_NOT_FOUND: "hostNotFoundError",
|
||||
UNREACHABLE: "networkUnreachableError",
|
||||
CONNECTION_REFUSED: "connectionRefusedError",
|
||||
@@ -767,7 +771,8 @@ function connectionFailureText(code?: string) {
|
||||
SERVER_PASSWORD_REQUIRED: "serverPasswordRequiredError",
|
||||
INVALID_PASSWORD: "invalidServerPasswordError",
|
||||
INVALID_SERVER_PASSWORD: "invalidServerPasswordError",
|
||||
INVALID_TARGET: "serverAddress",
|
||||
INVALID_TARGET: "serverAddress",
|
||||
INVALID_NICKNAME: "invalidNicknameError",
|
||||
HOST_NOT_FOUND: "hostNotFoundError",
|
||||
UNREACHABLE: "networkUnreachableError",
|
||||
CONNECTION_REFUSED: "connectionRefusedError",
|
||||
|
||||
Reference in new issue
Block a user