change some chinese translations

This commit is contained in:
jerry-yuan 2023-08-12 08:28:26 +00:00
parent 2e20769ca0
commit b78161ee8e
2 changed files with 38 additions and 39 deletions

View file

@ -8,7 +8,6 @@ const messages = require('../i18n/messages.json');
*/ */
module.exports = function (namespace, key, data) { module.exports = function (namespace, key, data) {
let locale = Cache.locale; let locale = Cache.locale;
console.log(locale)
// check that the locale exists // check that the locale exists
if (typeof messages[locale] === 'undefined') { if (typeof messages[locale] === 'undefined') {
locale = 'en'; locale = 'en';

View file

@ -315,8 +315,8 @@
"source": "源", "source": "源",
"destination": "目标", "destination": "目标",
"ssl": "SSL", "ssl": "SSL",
"access": "Access", "access": "访问控制",
"public": "Public", "public": "公开",
"edit": "编辑", "edit": "编辑",
"delete": "删除", "delete": "删除",
"logs": "日志", "logs": "日志",
@ -339,7 +339,7 @@
"welcome": "欢迎使用Nginx代理管理器", "welcome": "欢迎使用Nginx代理管理器",
"logged-in": "您当前已登录为{name}", "logged-in": "您当前已登录为{name}",
"unknown-error": "加载数据出错.请刷新页面重试.", "unknown-error": "加载数据出错.请刷新页面重试.",
"unknown-user": "位置用于", "unknown-user": "未知用户",
"sign-in-as": "以{name}身份重新登录" "sign-in-as": "以{name}身份重新登录"
}, },
"roles": { "roles": {
@ -397,8 +397,8 @@
"letsencrypt-agree": "我同意<a href=\"{url}\" target=\"_blank\">Let's Encrypt 服务条款</a>", "letsencrypt-agree": "我同意<a href=\"{url}\" target=\"_blank\">Let's Encrypt 服务条款</a>",
"delete-ssl": "附加的SSL证书将不会被删除,需要手动删除.", "delete-ssl": "附加的SSL证书将不会被删除,需要手动删除.",
"hosts-warning": "这些域名必须已经配置为指向此安装.", "hosts-warning": "这些域名必须已经配置为指向此安装.",
"no-wildcard-without-dns": "未使用DNS挑战时无法为通配符域名请求Let's Encrypt证书.", "no-wildcard-without-dns": "未使用DNS验证时无法为通配符域名请求Let's Encrypt证书.",
"dns-challenge": "使用DNS挑战", "dns-challenge": "使用DNS验证",
"certbot-warning": "此部分需要一些关于Certbot及其DNS插件的知识.请参阅相应的插件文档.", "certbot-warning": "此部分需要一些关于Certbot及其DNS插件的知识.请参阅相应的插件文档.",
"dns-provider": "DNS提供商", "dns-provider": "DNS提供商",
"please-choose": "请选择...", "please-choose": "请选择...",
@ -419,7 +419,7 @@
"forward-host": "转发目标主机/域名/IP", "forward-host": "转发目标主机/域名/IP",
"forward-port": "转发目标端口", "forward-port": "转发目标端口",
"delete": "删除代理主机", "delete": "删除代理主机",
"delete-confirm": "您确认要删除<strong>{domains}</strong>的虚拟主机吗?", "delete-confirm": "您确认要删除<strong>{domains}</strong>的代理主机吗?",
"help-title": "什么是代理主机?", "help-title": "什么是代理主机?",
"help-content": "代理主机是要转发的web服务的传入端点.\n它为可能没有内置SSL支持的服务提供可选的SSL终止.\n代理主机是Nginx代理管理器最常见的用途.", "help-content": "代理主机是要转发的web服务的传入端点.\n它为可能没有内置SSL支持的服务提供可选的SSL终止.\n代理主机是Nginx代理管理器最常见的用途.",
"access-list": "访问控制清单", "access-list": "访问控制清单",
@ -430,7 +430,7 @@
}, },
"redirection-hosts": { "redirection-hosts": {
"title": "重定向主机", "title": "重定向主机",
"empty": "暂无冲顶定向主机", "empty": "暂无定向主机",
"add": "添加重定向主机", "add": "添加重定向主机",
"form-title": "{id, select, undefined{创建} other{编辑}} 重定向主机", "form-title": "{id, select, undefined{创建} other{编辑}} 重定向主机",
"forward-scheme": "协议", "forward-scheme": "协议",
@ -455,24 +455,24 @@
"search": "搜索主机…" "search": "搜索主机…"
}, },
"streams": { "streams": {
"title": "流", "title": "流端口",
"empty": "没有流", "empty": "没有流端口",
"add": "添加流", "add": "添加流端口",
"form-title": "{id, select, undefined{新建} other{编辑}} 流", "form-title": "{id, select, undefined{新建} other{编辑}} 流端口",
"incoming-port": "输入端口", "incoming-port": "输入端口",
"forwarding-host": "转发主机", "forwarding-host": "转发目标主机",
"forwarding-port": "转发端口", "forwarding-port": "转发目标端口",
"tcp-forwarding": "TCP转发", "tcp-forwarding": "转发TCP",
"udp-forwarding": "UDP转发", "udp-forwarding": "转发UDP",
"forward-type-error": "必须至少启用一种协议类型", "forward-type-error": "必须启用至少一种协议类型",
"protocol": "协议", "protocol": "协议",
"tcp": "TCP", "tcp": "TCP",
"udp": "UDP", "udp": "UDP",
"delete": "删除流", "delete": "删除流端口",
"delete-confirm": "您确定要删除此流吗?", "delete-confirm": "您确定要删除此流端口吗?",
"help-title": "什么是流", "help-title": "什么是流端口",
"help-content": "流是Nginx的一个相对较新的功能,用于直接将TCP/UDP流量转发到网络上的另一台计算机.\n如果您在运行游戏服务器、FTP或SSH服务器,这可能很有用.", "help-content": "流是Nginx的一个相对较新的功能,用于直接将TCP/UDP流量转发到网络上的另一台计算机.\n如果您在运行游戏服务器、FTP或SSH服务器,这可能很有用.",
"search": "搜索输入端口..." "search": "搜索输入端口..."
}, },
"certificates": { "certificates": {
"title": "SSL证书", "title": "SSL证书",
@ -480,38 +480,38 @@
"add": "添加SSL证书", "add": "添加SSL证书",
"form-title": "添加{provider, select, letsencrypt{Let's Encrypt} other{自定义}}证书", "form-title": "添加{provider, select, letsencrypt{Let's Encrypt} other{自定义}}证书",
"delete": "删除SSL证书", "delete": "删除SSL证书",
"delete-confirm": "您确定要删除此SSL证书吗使用该证书的主机将需要稍后进行更新.", "delete-confirm": "您确定要删除此SSL证书吗?使用该证书的主机将需要稍后进行更新.",
"help-title": "SSL证书", "help-title": "SSL证书",
"help-content": "SSL证书正确称为TLS证书是一种加密密钥,允许您的网站对最终用户进行加密.\nNPM使用一个名为Let's Encrypt的服务免费颁发SSL证书.\n如果您在NPM后面放置了任何个人信息、密码或敏感数据,使用证书可能是一个不错的主意.\n如果您的网站不面向互联网,或者只是想要一个通配符证书,NPM还支持DNS身份验证.", "help-content": "SSL证书(TLS证书)是一种加密密钥,允许您的网站对最终用户进行加密.\nNPM使用一个名为Let's Encrypt的服务免费颁发SSL证书.\n如果您在NPM后面放置了任何个人信息、密码或敏感数据,使用证书可能是一个不错的选择.\n如果您的网站不面向互联网,或者只是想要一个通配符证书,NPM还支持DNS身份验证.",
"other-certificate": "证书", "other-certificate": "证书",
"other-certificate-key": "证书密钥", "other-certificate-key": "证书密钥",
"other-intermediate-certificate": "中间证书", "other-intermediate-certificate": "中间证书",
"force-renew": "立即续订", "force-renew": "立即续订",
"test-reachability": "测试服务器可访问性", "test-reachability": "测试服务器可访问性",
"reachability-title": "测试服务器可访问性", "reachability-title": "测试服务器可访问性",
"reachability-info": "使用Site24x7测试域名是否可以从公共互联网访问.在使用DNS挑战时,这不是必需的.", "reachability-info": "使用Site24x7测试域名是否可以从网访问.在使用DNS验证时,这不是必需的.",
"reachability-failed-to-reach-api": "与API的通信失败,NPM是否正常运行", "reachability-failed-to-reach-api": "与API的通信失败,NPM是否正常运行?",
"reachability-failed-to-check": "由于与site24x7.com的通信错误,无法检查可访问性.", "reachability-failed-to-check": "由于与site24x7.com的通信错误,无法检查可访问性.",
"reachability-ok": "您的服务器可访问,应该可以创建证书.", "reachability-ok": "您的服务器可访问,应该可以创建证书.",
"reachability-404": "在此域名下找到了一个服务器,但似乎不是Nginx Proxy Manager.请确保您的域名指向运行NPM实例的IP.", "reachability-404": "在此域名下找到了一个服务器,但似乎不是Nginx Proxy Manager.请确保您的域名指向运行NPM实例的IP.",
"reachability-not-resolved": "此域名下没有可用的服务器.请确保您的域名存在,指向运行NPM实例的IP,并在必要时在路由器中转发端口80.", "reachability-not-resolved": "此域名下没有可用的服务器.请确保您的域名存在,指向运行NPM实例的IP,并在必要时在路由器中转发端口80.",
"reachability-wrong-data": "在此域名下找到了一个服务器,但返回了意外的数据.这是NPM服务器吗请确保您的域名指向运行NPM实例的IP.", "reachability-wrong-data": "在此域名下找到了一个服务器,但返回了意外的数据.这是NPM服务器吗?请确保您的域名指向运行NPM实例的IP.",
"reachability-other": "在此域名下找到了一个服务器,但返回了意外的状态码{code}.这是NPM服务器吗请确保您的域名指向运行NPM实例的IP.", "reachability-other": "在此域名下找到了一个服务器,但返回了意外的状态码{code}.这是NPM服务器吗?请确保您的域名指向运行NPM实例的IP.",
"download": "下载", "download": "下载",
"renew-title": "续订Let's Encrypt证书", "renew-title": "续订Let's Encrypt证书",
"search": "搜索证书..." "search": "搜索证书..."
}, },
"access-lists": { "access-lists": {
"title": "访问列表", "title": "访问控制列表",
"empty": "没有访问列表", "empty": "没有访问控制列表",
"add": "添加访问列表", "add": "添加访问控制列表",
"form-title": "{id, select, undefined{新建} other{编辑}} 访问列表", "form-title": "{id, select, undefined{新建} other{编辑}} 访问控制列表",
"delete": "删除访问列表", "delete": "删除访问控制列表",
"delete-confirm": "您确定要删除此访问列表吗?", "delete-confirm": "您确定要删除此访问控制列表吗?",
"public": "公共访问", "public": "公",
"public-sub": "无访问限制", "public-sub": "无访问限制",
"help-title": "什么是访问列表?", "help-title": "什么是访问控制列表?",
"help-content": "访问列表提供特定客户端IP地址的黑名单或白名单,并通过基本HTTP身份验证为代理主机提供身份验证.\n您可以为单个访问列表配置多个客户端规则、用户名和密码,然后将其应用于代理主机.\n这对于没有内置身份验证机制或您希望防止未知客户端访问的转发Web服务非常有用.", "help-content": "访问控制列表提供根据客户端IP地址匹配的黑名单或白名单,并通过基本HTTP身份验证为代理主机提供身份验证.\n您可以为单个访问控制列表配置多个客户端规则、用户名和密码,然后将其应用于代理主机.\n这对于没有内置身份验证机制或您希望防止未知客户端访问的转发Web服务非常有用.",
"item-count": "{count}项", "item-count": "{count}项",
"client-count": "{count}个规则", "client-count": "{count}个规则",
"proxy-host-count": "{count}个代理主机", "proxy-host-count": "{count}个代理主机",
@ -539,14 +539,14 @@
"form-title": "{id, select, undefined{新建} other{编辑}} 用户", "form-title": "{id, select, undefined{新建} other{编辑}} 用户",
"delete": "删除{name, select, undefined{用户} other{{name}}}", "delete": "删除{name, select, undefined{用户} other{{name}}}",
"delete-confirm": "您确定要删除<strong>{name}</strong>吗?", "delete-confirm": "您确定要删除<strong>{name}</strong>吗?",
"password-title": "更改密码{self, select, false{(对于{name}} other{}}", "password-title": "更改{self, select, false{{name}} other{}}密码",
"current-password": "当前密码", "current-password": "当前密码",
"new-password": "新密码", "new-password": "新密码",
"confirm-password": "确认密码", "confirm-password": "确认密码",
"permissions-title": "{name}的权限", "permissions-title": "{name}的权限",
"admin-perms": "此用户是管理员,某些项目无法更改.", "admin-perms": "此用户是管理员,某些项目无法更改.",
"perms-visibility": "项目可见性", "perms-visibility": "项目可见性",
"perms-visibility-user": "仅创建的项目", "perms-visibility-user": "仅可查看此用户创建的项目",
"perms-visibility-all": "所有项目", "perms-visibility-all": "所有项目",
"perm-manage": "管理", "perm-manage": "管理",
"perm-view": "只读", "perm-view": "只读",
@ -560,7 +560,7 @@
"proxy-host": "代理主机", "proxy-host": "代理主机",
"redirection-host": "重定向主机", "redirection-host": "重定向主机",
"dead-host": "404主机", "dead-host": "404主机",
"stream": "流", "stream": "流端口",
"user": "用户", "user": "用户",
"certificate": "证书", "certificate": "证书",
"access-list": "访问列表", "access-list": "访问列表",