diff --git a/frontend/app/components/auth/auth.messsages.ts b/frontend/app/components/auth/auth.messsages.ts index 79b3188a..ff48198c 100644 --- a/frontend/app/components/auth/auth.messsages.ts +++ b/frontend/app/components/auth/auth.messsages.ts @@ -37,6 +37,10 @@ const messages = defineMessages({ id: 'token.invalid', defaultMessage: 'Token is invalid', }, + oauthSource: { + id: 'auth.oauth-source', + defaultMessage: 'Use Social Network', + }, oauthTitle: { id: 'auth.oauth-button', defaultMessage: 'Sign In with {provider}', diff --git a/frontend/app/components/auth/auth.tsx b/frontend/app/components/auth/auth.tsx index f6148740..c9090b75 100644 --- a/frontend/app/components/auth/auth.tsx +++ b/frontend/app/components/auth/auth.tsx @@ -204,7 +204,7 @@ const Auth: FunctionComponent = () => { <> {hasOAuthProviders && ( <> -
Use Social Network
+
{intl.formatMessage(messages.oauthSource)}
)} diff --git a/frontend/app/locales/en.json b/frontend/app/locales/en.json index 5fb7681d..cea3d85e 100644 --- a/frontend/app/locales/en.json +++ b/frontend/app/locales/en.json @@ -2,6 +2,7 @@ "auth.back": "Back", "auth.email-address": "Email Address", "auth.loading": "Loading...", + "auth.oauth-source": "Use Social Network", "auth.oauth-button": "Sign In with {provider}", "auth.or": "or", "auth.signin": "Sign In", diff --git a/frontend/app/locales/zh.json b/frontend/app/locales/zh.json index cd2a2ea0..6debca47 100644 --- a/frontend/app/locales/zh.json +++ b/frontend/app/locales/zh.json @@ -1,8 +1,9 @@ { "auth.back": "返回", - "auth.email-address": "Email地址", + "auth.email-address": "Email 地址", "auth.loading": "加载中...", - "auth.oauth-button": "Sign In with {provider}", + "auth.oauth-source": "使用社交网络", + "auth.oauth-button": "从 {provider} 登陆", "auth.or": "或", "auth.signin": "登录", "auth.submit": "提交", @@ -10,9 +11,9 @@ "auth.user-not-found": "找不到用户", "auth.username": "用户名", "authPanel.disable-comments": "禁用评论", - "authPanel.disabled-cookies": "禁用第三方cookie阻止登录或在其中打开评论", + "authPanel.disabled-cookies": "禁用第三方 Cookie 阻止登录或在其中打开评论", "authPanel.enable-comments": "启用评论", - "authPanel.enable-cookies": "允许使用cookie登录并发表评论", + "authPanel.enable-cookies": "允许使用 Cookie 登录并发表评论", "authPanel.hide-settings": "隐藏设置", "authPanel.logged-as": "您以以下身份登录", "authPanel.logout": "登出?", @@ -40,7 +41,7 @@ "comment.expired-time": "编辑时间已过期", "comment.go-to-parent": "转到父评论", "comment.hide": "隐藏", - "comment.hide-user-comment": "您要隐藏{userName}的评论吗?", + "comment.hide-user-comment": "您要隐藏 {userName} 的评论吗?", "comment.pin": "置顶", "comment.pin-comment": "您要置顶此评论吗?", "comment.reply": "回复", @@ -51,12 +52,12 @@ "comment.unpin": "取消置顶", "comment.unpin-comment": "您要取消置顶此评论吗?", "comment.unverified-user": "未认证的用户", - "comment.unverify-user": "您是否要取消认证{userName}?", + "comment.unverify-user": "您是否要取消认证 {userName}?", "comment.verified-user": "认证用户", - "comment.verify-user": "您是否要设置{userName}为认证用户?", + "comment.verify-user": "您是否要设置 {userName} 为认证用户?", "comment.vote-error": "投票失败: {voteErrorMessage}", - "commentForm.anonymous-uploading-disabled": "Image uploading is disabled for anonymous users. Please log in not as anonymous user to be able to attach images.", - "commentForm.exceeded-size": "{fileName}超出了{maxImageSize}的大小限制", + "commentForm.anonymous-uploading-disabled": "匿名用户无法上传图片。上传之前,您应该先以非匿名用户登录。", + "commentForm.exceeded-size": "{fileName} 超出了 {maxImageSize} 的大小限制", "commentForm.input-placeholder": "在此填写评论", "commentForm.new-comment": "新评论", "commentForm.notice-about-styling": "支持使用 Markdown 样式", @@ -66,7 +67,7 @@ "commentForm.send": "发送", "commentForm.subscribe-by": "订阅评论:", "commentForm.subscribe-or": "或", - "commentForm.unauthorized-uploading-disabled": "未经授权的用户无法上传图片。 上传之前,您应该先登录。", + "commentForm.unauthorized-uploading-disabled": "未经授权的用户无法上传图片。上传之前,您应该先登录。", "commentForm.unexpected-error": "出了些问题,请稍后再试。", "commentForm.upload-file-fail": "{fileName} 上传失败,错误信息: \"{errorMessage}\"", "commentForm.uploading": "上传中...", @@ -81,7 +82,7 @@ "commentsSort.recently-updated": "最近更新最多", "commentsSort.worst": "最差", "errors.0": "出了些问题,请稍后再试。", - "errors.1": "找不到评论。 请刷新页面,然后重试。", + "errors.1": "找不到评论。请刷新页面,然后重试。", "errors.10": "编辑评论为时已晚。", "errors.11": "评论已回复,无法编辑。", "errors.12": "无法保存投票结果,请稍后再试。", @@ -94,8 +95,8 @@ "errors.2": "无法解组传入的请求。", "errors.3": "您无权执行此操作。", "errors.4": "无效的评论数据。", - "errors.5": "找不到评论。 请刷新页面,然后重试。", - "errors.6": "找不到网站。 请刷新页面,然后重试。", + "errors.5": "找不到评论。请刷新页面,然后重试。", + "errors.6": "找不到网站。请刷新页面,然后重试。", "errors.7": "用户已被封禁。", "errors.8": "用户已被封禁。", "errors.9": "评论更改失败,请稍后再试。", @@ -105,11 +106,11 @@ "errors.to-many-request": "您已达到最大请求数限制。", "errors.unexpected-error": "出了些问题。", "root.pinned-comments": "置顶的评论", - "root.powered-by": "本站评论系统由Remark42提供支持", + "root.powered-by": "本站评论系统由 Remark42 驱动", "root.show-more": "显示更多", "settings.block": "封禁", "settings.block-time": "直到 {day} {time}", - "settings.block-user": "您要封禁{userName}吗?", + "settings.block-user": "您要封禁 {userName} 吗?", "settings.blocked-users-header": "已封禁用户:", "settings.blocked-users-title": "已封禁用户", "settings.hidden-user-header": "已隐藏评论用户:", @@ -120,7 +121,7 @@ "settings.permanently": "永久地", "settings.show": "显示", "settings.unblock": "解除封禁", - "settings.unblock-user": "你想解除对{userName}的封禁?", + "settings.unblock-user": "你想解除对 {userName} 的封禁?", "settings.unknown": "未知", "subscribeByEmail.back": "返回", "subscribeByEmail.close": "关闭", @@ -134,14 +135,14 @@ "subscribeByEmail.subscribe-to-replies": "订阅回复", "subscribeByEmail.subscribed": "您当前通过电子邮件订阅了更新通知", "subscribeByEmail.unsubscribe": "退订", - "subscribeByRSS.button-title": "通过RSS订阅", + "subscribeByRSS.button-title": "通过 RSS 订阅", "subscribeByRSS.replies": "回复", "subscribeByRSS.site": "站点", "subscribeByRSS.thread": "主题", "subscribeByRSS.title": "RSS", - "token": "Token", - "token.expired": "token已经过期", - "token.invalid": "Token is invalid", + "token": "票据", + "token.expired": "票据已经过期", + "token.invalid": "无效票据", "toolbar.attach-image": "可以从剪贴板拖放或粘贴来上传图片", "toolbar.bold": "添加粗体 {shortcut}", "toolbar.code": "插入代码", @@ -151,7 +152,7 @@ "toolbar.ordered-list": "添加有序编号列表", "toolbar.quote": "插入引用文本", "toolbar.unordered-list": "添加无序项目列表", - "user-info.last-comments": "最近的评论由{userName}发表", + "user-info.last-comments": "最近的评论由 {userName} 发表", "user-info.unexpected-error": "出问题了", "vote.anonymous": "匿名用户无法投票", "vote.deleted": "无法为已删除的评论投票",