Skip to content

Commit

Permalink
增加词条: 完善软件包相关页面词条 (#109)
Browse files Browse the repository at this point in the history
完善 软件包主页、版本列表、设置页面 未翻译的部分
  • Loading branch information
pecasha authored Mar 12, 2024
1 parent 136b91d commit d45ebd8
Showing 1 changed file with 146 additions and 2 deletions.
148 changes: 146 additions & 2 deletions locals.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ I18N.zh["title"] = { // 标题翻译
"Runners": "运行器",
"Runner Groups": "运行器组",
"Packages": "软件包",
"Package": "软件包",
"Security": "安全",
"Verified & approved domains": "经验证和批准的域名",
"Third-party application access policy": "第三方应用访问策略",
Expand Down Expand Up @@ -213,7 +214,7 @@ I18N.zh["title"] = { // 标题翻译
[/Pull requests/, "拉取请求"],
[/Actions/, "操作"],
[/Projects/, "项目"],
[/Packages/, "软件包"],
[/Packages?/, "软件包"],
[/Security Overview/, "安全概述"],
[/Security Policy/, "安全政策"],
[/Security Advisories/, "安全公告"],
Expand Down Expand Up @@ -9835,30 +9836,147 @@ I18N.zh["repository/packages"] = { // 仓库 - 软件包页面
"Containers": "容器",
"A single place for your team to manage Docker images and decide who can see and access your images.": "为您的团队提供一个管理 Docker 镜像的单一场所,并决定谁可以看到和访问您的镜像。",

"Package settings": "软件包设置",
"Repository source": "仓库来源",
"This is the repository where the package's source code is stored. This is defined in the repository's package.json file using the": "这是软件包源代码的仓库。这是在仓库中的 package.json 文件使用字段",
"field.": "定义的。",
"A GitHub repository has been identified as the source for this package. This package will be displayed in this repositories package list.": "GitHub 仓库已被确定为该软件包的来源,该软件包将显示在此仓库的软件包列表中。",
"You have referenced a non-GitHub source for this package that cannot be verified.": "您引用了一个无法验证的非 GitHub 来源的软件包。",
"Manage Actions access": "操作访问权限管理",
"Add Repository": "添加仓库",
"Pick the repositories that can access this package using": "选择可以访问此软件包的仓库,用于",
"Role:": "角色:",
"Choose role": "选择角色",
"Change role": "更改角色",
"Read": "只读",
"Write": "编辑",
"Admin": "管理",
"Remove": "删除",
"Actions repository access": "操作仓库访问",
"Pick the repositories that can access this package using GitHub Actions.": "选择可以使用 GitHub Actions 访问此软件包的仓库。",
"Permissions added for selected repositories.": "为选定的仓库添加了权限。",
"Permissions updated for selected repositories.": "更新了选定仓库的权限。",
"Can upload and download this package. Can read and write package metadata.": "可以上传和下载此软件包,并且可以读取和写入元数据。",
"Can download this package and read package metadata.": "可以下载此软件包并读取元数据。",
"Can upload, download, and manage this package. Can read and write package metadata. Can delete and restore packages.": "可以上传、下载和管理此软件包,可以读取和写入元数据,可以删除和恢复此软件包。",
"Can upload, download, and manage this package. Can read and write package metadata. Can grant package permissions.": "可以上传、下载和管理此软件包,可以读取和写入元数据,可以授予软件包权限。",
"Manage Codespaces access": "代码空间访问管理",
"Codespaces repository access": "代码空间仓库访问",
"Pick the repositories that can read this package using GitHub Codespaces.": "选择可以使用 GitHub 代码空间 读取此软件包的仓库。",
"Pick the repositories that can read this package using": "选择可以读取此软件包的仓库,用于",
"Inherited access": "继承访问",
"Inherit access from source repository (recommended)": "从源仓库继承访问权限 (推荐)",
"Go to": "转到",
"to change access, or remove inherited access to manage it separately. Inherited access is recommended.": "的访问设置以更改访问权限,或删除继承的访问权限以单独管理它,建议使用继承访问权限。",
"Danger Zone": "危险操作",
"Change package visibility": "更改软件包可见性",
"This package is currently public.": "该软件包当前是公开的",
"This package is currently private.": "该软件包当前是私有的",
"Change visibility": "更改可见性",
"Delete this package": "删除软件包",
"Once you delete a package, there is no going back. Please be certain.": "您一旦删除了软件包,将再也无法恢复,请确认!",
"Manage access": "访问管理",
"Invite teams or people": "邀请团队或人员",

// 仓库链接对话框
"Confirm you want to unlink this repository": "确认您要取消与此仓库的链接",
"Yes, unlink this repository": "是的,取消链接此仓库",

// 添加仓库对话框
"Select repository that can access this package using GitHub actions": "选择可以使用 GitHub 操作访问此软件包的仓库",
"Add repositories": "添加仓库",

// 删除仓库对话框
"Confirm you want to remove this repository": "确认要删除此仓库",
"Once removed,": "删除后,",
"will no longer have access to the": "将无法再访问",
"package.": "软件包。",

// 代码空间添加仓库对话框
"Select repository that can access this package using GitHub codespaces": "选择可以使用 GitHub 代码空间访问此软件包的仓库",

// 更改软件包可见性对话框
"Make this package visible to anyone.": "使这个软件包对所有人都可见。",
"Make this package visible privately, to organization members that have access.": "仅这个软件包有权访问的组织成员可见。",
"Please type": "请输入",
"to confirm:": "进行确认:",
"I understand the consequences, change package visibility.": "我明白后果,依然更改软件包可见性",

// 删除软件包对话框
"Are you absolutely sure?": "您真的确定吗?",
"Once this package is deleted, it will no longer be accessible.": "一旦删除了这个软件包,您将无法再访问它。",
"This action will delete package": "此操作将删除软件包",
". Versions of this package will no longer be accessible, and it will not appear in searches or package listings.": "。此软件包的版本将不再可访问,并且不会出现在搜索结果或软件包列表中。",
"I understand the consequences, delete this package": "我明白后果,依然删除这个软件包",

// 更改仓库角色对话框
"Select a new role": "选择新角色",
"Recommended for non-code contributors who want to view or discuss your package.": "推荐给想要查看或讨论您的软件包的非代码贡献者。",
"Recommended for contributors who actively push to your package.": "推荐给积极推送代码到您的软件包的贡献者。",

// 更改成员角色对话框
"Recommended for people who need full access to the package, including sensitive and destructive actions like managing security and package visibility.": "建议需要完全访问软件包的人员使用,包括管理安全性和软件包可见性等敏感和破坏性操作。",

// 访问管理删除对话框
"Confirm you want to remove this user": "确认删除该用户",

// 邀请团队或人员对话框
"Invite teams or people to": "邀请团队或人员参与",
"Search by username, full name, or email": "搜索用户名、全名或电子邮件"
},
"regexp": [
[/Are you sure you want to unlink (.*) from (.*)\?/, "您确定要取消 $1 与 $2 的链接吗?"],
[/(\d+) repositor(y|ies) selected…/, "选中 $1 个仓库"],
[/Change the role of (\d+) repositor(y|ies)\?/, "更改 $1 个仓库的角色?"],
[/(\d+) repositor(y|ies)/, "$1 个仓库"],
[/(\d+) members? selected…/, "选中 $1 个成员"],
[/Change the role of (\d+) members?\?/, "更改 $1 个成员的角色?"],
[/(\d+) members?/, "$1 个成员"],
[/(.*)'s access settings/, "$1 访问设置"],
[/Removed access from repository (.*)\./, "删除了仓库 $1 的访问权限。"],
[/Removed (.*) as a package collaborator\./, "删除了 $1 作为软件包的协作者。"],

// 删除仓库对话框
[/Remove (.*) from (.*)/, "从 $2 中删除 $1"],

// 更改仓库角色对话框
[/Change (\d+) Roles?/, "更改 $1 个角色"],
],
}

I18N.zh["repository/pkgs"] = { // 仓库 - 软件包
"static": { // 静态翻译
...I18N.zh["repository-public"]["static"],
...I18N.zh["repository/packages"]["static"],

// /<user-name>/<repo-name>/pkgs/container/<pag name>
"Installation": "安装",
"Learn more about packages": "了解更多关于软件包的信息",
"Learn more about npm packages": "了解更多关于 npm 软件包的信息",
"Install from the command line": "从命令行安装",
"Install from the command line:": "从命令行安装:",
"Install via package.json:": "通过 package.json 安装:",
"Use as base image in Dockerfile:": "在 Dockerfile 中用作基础镜像:",
"Recent tagged image versions": "最近被标记的映像版本",
"latest": "最新",
"Latest": "最新",
// [/Published (.*) · Digest/, "发布于 $1 · 摘要"],
"View all tagged versions": "查看所有被标记的版本",

"Details": "详细信息",
"Readme": "自述文件",
"Last published": "最新发布",
"Total downloads": "总下载量",
"Start a discussion": "开始讨论",
"Contributors": "贡献者",
"Open an issue": "打开一个议题",
"Package settings": "软件包设置",

"Recent Versions": "最近版本",
"View and manage all versions": "查看和管理所有版本",

"Add a Readme to the linked repository": "添加一个 README 自述文件到链接的仓库",
"The linked repository's Readme will be shown here.": "链接仓库中的 README 自述文件将在此处显示。",

// 全部版本 /<user-name>/<repo-name>/pkgs/container/<pag name>/versions
"All versions": "所有版本",
Expand Down Expand Up @@ -9887,15 +10005,41 @@ I18N.zh["repository/pkgs"] = { // 仓库 - 软件包
"Other tags on this version": "此版本的其他标签",
"View all versions": "查看全部版本",

// 版本删除对话框
"Are you absolutely sure?": "您真的确定吗?",
"This cannot be undone. This will permanently delete the version": "这个操作不能撤销,这将永久删除版本",
"so users and processes won’t be able to download this version.": ",用户和程序将无法再下载该版本。",
"Please type": "请输入",
"to confirm:": "进行确认:",
"I understand the consequences, delete this version": "我明白后果,依然删除此版本"
},
"regexp": [ // 正则翻译
...I18N.zh["repository/packages"]["regexp"],

[/Published (.*) · Digest/, "发布于 $1 · 摘要"],
[/Published (.*)/, "发布于 $1"],
[/(\d+) tagged/, "$1 个标记"],
[/(\d+) untagged/, "$1 个未标记"],
[/(\d+) dependencies/, "$1 个依赖包"],
[/(\d+) active/, "$1 个可用"],
[/(\d+) deleted/, "$1 个已删除"]
],
};
I18N.zh["packages"] = { // 软件包 - 未链接仓库的软件包
"static": { // 静态翻译
...I18N.zh["repository/pkgs"]["static"],

"Link this package to a repository": "将此软件包链接到仓库",
"By linking to a repository, you can automatically add a Readme, link discussions, and show contributors on this page.": "通过链接到仓库,您可以自动添加 README 自述文件、链接讨论、在此页面上显示贡献者。",
"Connect Repository": "关联仓库",

// 关联仓库对话框
"Select a repository to link to this package.": "选择一个仓库以链接到此软件包。"
},
"regexp": [ // 正则翻译
...I18N.zh["repository/pkgs"]["regexp"],
],
};
I18N.zh["packages"] = I18N.zh["repository/pkgs"];

I18N.zh["repository/security"] = { // 仓库 - 安全页面
"static": { // 静态翻译
Expand Down

0 comments on commit d45ebd8

Please sign in to comment.