From 94fb3bb853d13d99aaf649e6038a6b34359cbf3d Mon Sep 17 00:00:00 2001 From: bdim Date: Wed, 15 May 2024 01:36:47 +0800 Subject: [PATCH 01/16] Update Readme.md add zh-cn in Readme --- docs/Readme.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/Readme.md b/docs/Readme.md index 19b46866..b46fafdc 100644 --- a/docs/Readme.md +++ b/docs/Readme.md @@ -12,6 +12,9 @@
Znasz 🇵🇱? Przejdź tutaj.
++ 简体中文,请点击这里. +
🚧️ | ++ 客户端正在进行重大重写! 这意味着,围绕WebCord的大多数工作将保持在最低限度——在现有代码之上可能不会有耗时和重大的更新。然而,WebCord仍应收到维护更新,以及不需要投入我太多时间的新功能或改进。 + | +
+ EnglishHere。 +
+ℹ️ | +
+ 为了简化文档,下面只显示了npm 命令语法。如果你更喜欢使用另一个包管理器,你完全可以这样做,因为在我的理念中,你不应该受到维护者使用的工具集的限制,并且有权选择你自己的工具。
+ |
+
⚠️ | +
+ WebCord带有package-lock.json 作为锁文件格式,你偏好的包管理器可能无法与之配合使用。你仍然可以安装最新的依赖项,但是在依赖项破坏发生时,创建的锁文件将不会被用来重现测试环境。
+ |
+
/science
和 /tracing
)。",
+ "typingIndicator": "拦截输入指示器(/typing
)。",
+ "fingerprinting": "拦截已知的指纹识别方法(api.js
和 cdn-cgi
)。"
+ }
+ },
+ "permissions": {
+ "name": "权限",
+ "description": "允许或拒绝Discord网站的权限检查和请求。请注意,这里未列出的其他权限将被WebCord自动阻止。",
+ "labels": {
+ "video": "摄像头",
+ "audio": "麦克风",
+ "fullscreen": "全屏",
+ "notifications": "通知",
+ "display-capture": "屏幕捕获",
+ "background-sync": "后台同步"
+ }
+ }
+ },
+ "advanced": {
+ "name": "高级",
+ "csp": {
+ "name": "内容安全策略",
+ "description": "切换应用程序是否应忽略Discord的内容安全策略头部,并允许客户端为隐私和安全考虑设置自己的CSP。",
+ "labels": {
+ "enabled": "使用内置的内容安全策略。"
+ }
+ },
+ "cspThirdParty": {
+ "name": "第三方网站",
+ "description": "设置允许连接或显示内容的第三方网站列表。",
+ "labels": {
+ "gif": "GIF提供商"
+ },
+ "info": {
+ "googleStorageApi": "Discord上文件上传所需的!"
+ }
+ },
+ "currentInstance": {
+ "name": "Discord实例",
+ "description": "选择WebCord应连接到的实例。实验性,因为Fosscord实现尚未完全完成。"
+ },
+ "devel": {
+ "name": "开发者模式",
+ "description": "启用访问工具和未完成选项的功能,这些选项可能被视为破坏性或危险的。免责声明:启用此选项后,应用程序维护者不负责任何错误或问题——请不要报告它们!",
+ "labels": {
+ "enabled": "启用开发者模式。"
+ }
+ },
+ "redirection": {
+ "name": "跨源重定向行为",
+ "description": "控制跨源重定向上的操作。这影响应用程序的安全性。",
+ "labels": {
+ "warn": "始终警告用户关于跨源重定向到外部应用程序。"
+ }
+ },
+ "optimize": {
+ "name": "客户端优化",
+ "description": "尝试检测用户软件和硬件以应用自定义标志到Chromium引擎,这可能会提高Electron的性能或功能。实验性,因为Chromium默认不应用这些标志是有原因的。",
+ "labels": {
+ "gpu": "为当前活动的显卡优化客户端。"
+ }
+ },
+ "webApi": {
+ "name": "访问JavaScript API",
+ "description": "控制未特权(DOM)脚本中应允许的API。",
+ "labels": {
+ "webGl": "启用WebGL支持。"
+ }
+ },
+ "unix": {
+ "name": "Unix/类Unix操作系统的实验性功能",
+ "description": "启用被Chromium/Blink引擎标记为实验性的功能。自行负责使用它们。",
+ "labels": {
+ "autoscroll": "启用中键滚动(即自动滚动)。"
+ }
+ }
+ }
+}
From 8909747c79c3580a7411c6bd3f1567775991bbe0 Mon Sep 17 00:00:00 2001
From: bdim
Date: Wed, 15 May 2024 02:37:48 +0800
Subject: [PATCH 14/16] Create web.json for Chinese
---
sources/translations/zh/web.json | 37 ++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
create mode 100644 sources/translations/zh/web.json
diff --git a/sources/translations/zh/web.json b/sources/translations/zh/web.json
new file mode 100644
index 00000000..1e020aa6
--- /dev/null
+++ b/sources/translations/zh/web.json
@@ -0,0 +1,37 @@
+{
+ "offline": {
+ "title": "无法连接到Discord服务。",
+ "description": "请确保您已连接到互联网。"
+ },
+ "aboutWindow": {
+ "nav": {
+ "about": "关于",
+ "credits": "致谢",
+ "licenses": "许可证"
+ },
+ "about": {
+ "appDescription": "注重隐私特性的Discord和Fosscord网页客户端。",
+ "appRepo": "GitHub仓库",
+ "featuresTitle": "构建标志",
+ "featuresDefault": "默认",
+ "checksumTitle": "校验和"
+ },
+ "credits": {
+ "people": {
+ "author": "作者、维护者和主要开发者。",
+ "contributors": {
+ "default": "代码贡献者。"
+ }
+ }
+ },
+ "licenses": {
+ "appLicenseTitle": "应用程序许可证",
+ "appLicenseBody": "%s是一个免费软件:您可以根据MIT许可证的条款使用、修改和重新分发它,该许可证应随此软件一起分发。",
+ "showLicense": "显示许可证",
+ "thirdPartyLicensesTitle": "第三方许可证",
+ "thirdPartyLicensesBody": "%s依赖于以下第三方软件:",
+ "licensedUnder": "根据%s许可证",
+ "packageAuthors": "%s作者"
+ }
+ }
+}
From 292d6d435ec48efb64c11992c546f83603a48f71 Mon Sep 17 00:00:00 2001
From: bdim
Date: Wed, 15 May 2024 03:12:54 +0800
Subject: [PATCH 15/16] Update client.json
---
sources/translations/zh/client.json | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/sources/translations/zh/client.json b/sources/translations/zh/client.json
index d450952a..b51a8a18 100644
--- a/sources/translations/zh/client.json
+++ b/sources/translations/zh/client.json
@@ -3,12 +3,12 @@
"toggle": "切换",
"quit": "退出",
"mention": {
- "one": "提及",
- "other": "提及",
+ "one":"提及",
+ "other":"提及",
"zero": "",
"two": "",
- "few": "",
- "many": ""
+ "few":"",
+ "many":""
}
},
"context": {
@@ -30,8 +30,8 @@
"relaunch": "重新启动",
"addon": {
"groupName": "扩展",
- "loadNode": "加载Node扩展",
- "loadChrome": "加载Chrome扩展"
+ "loadNode": "加载 node 扩展",
+ "loadChrome": "加载 Chrome 扩展"
}
},
"edit": {
@@ -87,15 +87,15 @@
},
"question": {
"title": "权限请求处理",
- "message": "您是否要授予Discord访问%s的权限?",
+ "message": "您是否要授予 Discord 访问%s的权限?",
"video": "摄像头",
"audio": "麦克风",
"notifications": "通知"
}
},
"mod": {
- "nodeExt": "WebCord Node.js插件",
- "crx": "Chrome/Chromium扩展"
+ "nodeExt": "WebCord Node.js 插件",
+ "crx": "Chrome/Chromium 扩展"
},
"externalApp": {
"title": "在外部应用中打开链接",
@@ -120,6 +120,6 @@
},
"log": {
"singleInstance": "切换到现有窗口...",
- "listenPort": "在端口%s监听。"
+ "listenPort": "在端口 %s 监听。"
}
}
From 9a9639ee263c24fb557bf6636943151114ce8216 Mon Sep 17 00:00:00 2001
From: bdim
Date: Wed, 15 May 2024 18:14:39 +0800
Subject: [PATCH 16/16] Update Readme.md add a disclaimer
---
docs/zh/Readme.md | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/docs/zh/Readme.md b/docs/zh/Readme.md
index aec95ce8..5300fbb5 100644
--- a/docs/zh/Readme.md
+++ b/docs/zh/Readme.md
@@ -4,6 +4,10 @@