From a3f80bdbd76f74815b37062bb26044d1dde49d08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E7=94=9F=E6=9D=82=E7=89=A9=E6=88=BF?= <88823709+TC999@users.noreply.github.com> Date: Wed, 26 Jun 2024 18:33:26 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9B=B6=E6=95=A3=E8=AF=8D=E6=9D=A1=E8=A1=A5?= =?UTF-8?q?=E5=85=85=20(#191)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locals.js | 51 +++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 47 insertions(+), 4 deletions(-) diff --git a/locals.js b/locals.js index 9e3f1cbf3..cf87dc932 100644 --- a/locals.js +++ b/locals.js @@ -367,6 +367,8 @@ I18N.zh["title"] = { // 标题翻译 [/Webhooks · Settings/, "Web 钩子 · 设置"], [/Add a code of conduct to/, "添加代码行为准则到"], [/Caches?/, "缓存"], + [/Runners?/, "运行器"], + [/Attestations?/, "证书"], ["_regexp_end", "end"] ], }; @@ -462,6 +464,7 @@ I18N.zh["pubilc"] = { // 公共区域翻译 "Your stars": "我的星标", "Your gists": "我的代码片段", "Your sponsors": "我的赞助者", + "Create new": "新建", // Android UA 下出现 "Upgrade": "升级", "Try Enterprise": "试用企业版", "Free": "免费", @@ -1402,6 +1405,7 @@ I18N.zh["page-dashboard"] = { // 已登录的首页 - 仪表板(含组织) "labeled a pull request": "将标签添加到拉取请求中", "launched their sponsorship page 💖": "推出了他们的赞助页面 💖", //[/and (\d+) more/, "和另外 $1 个"], + "All reactions": "所有反应", "published a release": "发布发行版", "forked a repository": "复刻仓库", @@ -1659,6 +1663,7 @@ I18N.zh["page-profile-public"] = { // 个人首页(含组织) [/The (.+) achievement will now be shown in your profile./, "现在,将在您的个人资料中显示 “$1” 成就。"], [/(\d+) repositories/, "$1 仓库"], [/(\d+) members/, "$1 成员"], + [/and (\d+) more/, "和 $1 个更多"] ], }; I18N.zh["page-profile/achievements"] = I18N.zh["page-profile-public"]; // ?tab=achievements @@ -5943,6 +5948,7 @@ I18N.zh["repository"] = { // 仓库页面 /// // 操作条 "forked from": "复刻自", + "Public repository · Forked from": "公共仓库 · 复刻自", // Android UA 下出现 "generated from": "创建自", "mirrored from": "镜像自", @@ -6050,6 +6056,10 @@ I18N.zh["repository"] = { // 仓库页面 /// // 左侧正文 + // 自述文件(README.md) + "Filter headings": "筛选标题", + "Edit file": "编辑文件", + // 默认分支被重命名提醒框 "The default branch has been renamed!": "默认分支已被重新命名!", "is now named": "已被重新命名为", @@ -6787,7 +6797,8 @@ I18N.zh["repository/pull_issue_public"] = { // 仓库 - 议题和拉取请求页 "regexp": [ // 正则翻译 [/At least (\d+) approving review is required by reviewers with write access./, "至少需要 $1 个审查者批准。"], [/(\d+) linked issues?/, "链接 $1 个议题"], - [/Assigned to (.*)/, "分配给 $1"] + [/Assigned to (.*)/, "分配给 $1"], + [/Edited (\d+) times?/, "编辑 $1 次"], ] }; @@ -7233,6 +7244,8 @@ I18N.zh["repository/pulls"] = { // 仓库 - 拉取请求页面 "You were mentioned on and commented on this pull request": "您被提及并对此拉取请求发表了评论", "You commented on this pull request": "您对此拉取请求发表了评论", "You opened this pull request": "您打开了此拉取请求", + + "Suggested change": "建议更改", }, "regexp": [ @@ -7244,6 +7257,7 @@ I18N.zh["repository/pulls"] = { // 仓库 - 拉取请求页面 [/(\d+) of (\d+) tasks?/, "$1 / $2 个任务"], [/(\d+) tasks?/, "$1 个任务"], [/First time contributing to ([^ ]+)?/, "首次为 $1 做贡献?"], + [/Suggested change/, "建议更改"], ], }; @@ -7815,6 +7829,8 @@ I18N.zh["repository/pull"] = { // 仓库 - 某个拉取请求页面 ...I18N.zh["repository/pull_issue_public"]["regexp"], // 具体某条拉取请求 + [/Commits?/, "提交"], + [/Files? changed/, "文件更改"], [/merged (\d+) commits? into/, "将 $1 个提交合并到"], [/([^ ]+) left review comments?/, "$1 发表了审查意见"], [/([^ ]+) approved these changes?/, "$1 批准这些更改"], // 具体的拉取请求 审查者 @@ -8042,6 +8058,13 @@ I18N.zh["repository/compare"] = { // 仓库 - 比较并创建拉取请求 "Nothing to show": "暂无", "Allow edits and access to secrets by maintainers": "允许维护人员编辑和访问机密", + "If checked,": "如果勾选,", + "users with write access to": "则拥有", + "can add new commits": "写访问权限的用户可以向您的", + "to your": "向您的", + "branch.": "分支添加新提交。", + "You can always change this setting later.": "您可以随时更改这一设置。", + "Got it": "知道了", // 创建拉取请求 按钮下拉 "Automatically requests reviews from code owners": "自动请求代码所有者进行审查", "Create draft pull request": "创建拉取请求草案", @@ -8050,7 +8073,7 @@ I18N.zh["repository/compare"] = { // 仓库 - 比较并创建拉取请求 "Remember, contributions to this repository should follow its": "请记住,对该仓库的贡献应遵循其", "security policy": "安全政策", "code of conduct": "行为准则", - "Remember, contributions to this repository should follow our ": "请记住,对此仓库的贡献应遵循我们的", + "Remember, contributions to this repository should follow our": "请记住,对此仓库的贡献应遵循我们的", "GitHub Community Guidelines": "GitHub 社区准则", // 右侧栏补充 @@ -8073,11 +8096,22 @@ I18N.zh["repository/compare"] = { // 仓库 - 比较并创建拉取请求 // ///compare/... "Commit comments": "提交评论", + + "Showing": "显示", + "with": "包含", }, "regexp": [ // 正则翻译 ...I18N.zh["repository-public"]["regexp"], + [/Commits?/, "提交"], + [/Files? changed/, "更改的文件"], [/committed/, "提交于"], + [/(\d+) contributors?/, "$1 贡献者"], + [/Allow(ing)? edits by maintainers/, "允许维护人员编辑"], + [/users with write access to ([^ ]+) can add new commits/, "则拥有 $1 写访问权限的用户可以向您的"], + [/(\d+) changed files?/, "更改的文件"], + [/(\d+) additions?/, "$1 处增加"], + [/(\d+) deletions?/, "$1 处删除"], ], }; @@ -9845,6 +9879,7 @@ I18N.zh["repository/branches"] = { // 仓库 - 分支页面 "Activity": "活动", "View rules": "查看规则", + "There are no rulesets associated with this branch.": "该分支没有相关的规则集。", "View more branches": "查看更多分支", @@ -10662,6 +10697,12 @@ I18N.zh["repository/security"] = { // 仓库 - 安全页面 "Configure scanning tool": "配置扫描工具", // 机密扫描警报 ///security/secret-scanning + // 顶端窗口 + "Can you give us some feedback?": "您能给我们一些反馈意见吗?", + "We want to better understand our users' needs and experiences.": "我们希望更好地了解用户的需求和体验。", + "Book some time with us": "与我们预约时间,", + "to discuss the GitHub secret scanning experience.": "讨论 GitHub 机密扫描体验。", + "Secret scanning alerts": "机密扫描警报", "Secret scanning disabled": "机密扫描已停用", "To scan for secrets, you must first enable secret scanning in": "要扫描机密,您必须首先启用机密扫描在", @@ -11497,6 +11538,8 @@ I18N.zh["repository/settings"] = { // 仓库设置 - 通常 //