fix: show invalid nickname connection errors

This commit is contained in:
illusia committed 2026-09-13 08:08:40 +08:00
1 parent d13b3207a9
commit ef3e65ea0b
5 files changed
+22 -4

No files matched your search

+6 -1
View File
@@ -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",
+2
View File
@@ -1279,6 +1279,7 @@ function localizedMessage(message: string) {
"连接已断开": "The connection was closed",
"此 TeamSpeak 身份已在另一个浏览器页面使用,请关闭另一条连接或取消“保持身份”后重试": "This TeamSpeak identity is already used by another browser page. Close that connection or clear ‘Remember identity’ and try again",
"TeamSpeak 服务器地址无效": "The TeamSpeak server address is invalid",
"昵称长度不符合 TeamSpeak 服务器要求,请修改后重试": "The nickname length does not meet the TeamSpeak server requirements. Change it and try again",
"TeamSpeak 服务器连接失败": "Could not connect to the TeamSpeak server",
"找不到 TeamSpeak 服务器主机名,请检查地址": "The TeamSpeak server hostname could not be resolved. Check the address",
"无法到达 TeamSpeak 服务器,请检查网络或地址": "The TeamSpeak server is unreachable. Check the network or address",
@@ -1329,6 +1330,7 @@ function localizedMessage(message: string) {
"TeamSpeak 连接已断开": "Die TeamSpeak-Verbindung wurde getrennt",
"连接已断开": "Die Verbindung wurde getrennt",
"TeamSpeak 服务器地址无效": "Die TeamSpeak-Serveradresse ist ungültig",
"昵称长度不符合 TeamSpeak 服务器要求,请修改后重试": "Die Länge des Spitznamens entspricht nicht den Anforderungen des TeamSpeak-Servers. Ändere ihn und versuche es erneut",
"找不到 TeamSpeak 服务器主机名,请检查地址": "Der TeamSpeak-Servername konnte nicht aufgelöst werden. Prüfe die Adresse",
"无法到达 TeamSpeak 服务器,请检查网络或地址": "Der TeamSpeak-Server ist nicht erreichbar. Prüfe Netzwerk und Adresse",
"TeamSpeak 服务器拒绝了连接,请检查端口和服务状态": "Der TeamSpeak-Server hat die Verbindung abgelehnt. Prüfe Port und Serverstatus",