From 5f4e43f4da72b4f1f2c7f5cfc9930c949b208b9c Mon Sep 17 00:00:00 2001 From: guke1024 <46668943+guke1024@users.noreply.github.com> Date: Wed, 31 Aug 2022 13:14:30 +0800 Subject: [PATCH] core&ui: add missing Chinese Translation (#422) --- packages/hydrooj/locales/zh.yaml | 10 ++++++++++ packages/hydrooj/package.json | 2 +- packages/ui-default/locales/zh.yaml | 9 +++++++++ packages/ui-default/templates/partials/footer.html | 6 +++--- 4 files changed, 23 insertions(+), 4 deletions(-) diff --git a/packages/hydrooj/locales/zh.yaml b/packages/hydrooj/locales/zh.yaml index eeb18bf02..3d3a976f4 100644 --- a/packages/hydrooj/locales/zh.yaml +++ b/packages/hydrooj/locales/zh.yaml @@ -438,6 +438,7 @@ Live: 正在进行 Live...: 正在进行… Location: 位置 Lock Topic: 锁定主题 +Lock discussions: 锁定讨论 Login to Attend Contest: 登录后参加比赛 Login to Claim Homework: 登录后认领作业 Login to Create a Discussion: 登录后创建讨论 @@ -472,6 +473,7 @@ Memory: 内存 Message {0} not found.: 消息 {0} 不存在。 Messages: 消息 Method: 方法 +monacoTheme: 编辑器主题 Month: 月 Monthly Popular: 月度最受欢迎 Most Upvoted Solutions: 最被赞同的题解 @@ -558,9 +560,11 @@ perm_record: 记录 perm_training: 训练 Permission: 权限 Permissions: 权限 +Phone: 手机号 Pick a problem randomly based on current filter: 根据当前过滤条件随机选择一道题 pid: 题目 ID Pin discussions: 置顶讨论 +Pin training plans: 置顶训练计划 Plan: 计划 Please attend contest to see the problems.: 请参加比赛来查看题目。 Please claim the assignment to see the problems.: 认领作业后才可以查看作业内容。 @@ -615,6 +619,7 @@ Quit Scratchpad: 退出在线编程模式 Quote: 引用 Rank: 排名 ranking: 排名 +Read record codes after accept: 题目通过后读取记录的代码 Recalculates nSubmit and nAccept in problem status.: 重新计算每道题目的 AC 量和提交量 Recommended: 推荐 Record {0} not found.: 记录 {0} 不存在。 @@ -663,6 +668,7 @@ Sample: 样例 Save All Changes: 保存所有修改 Saved session expire seconds: 保存的会话的过期秒数 Saved session: 已保存的会话 +School: 学校 score canceled: 成绩取消 Score: 分数 Scoreboard (Hidden): 成绩表 (隐藏) @@ -736,6 +742,7 @@ Storage engine bucket: 存储桶名称 Storage engine endPoint: 存储桶 endPoint Storage engine region: 存储桶地域 Storage engine secret: 存储桶 secretKey +Student ID: 学号 Submission Statistics: 递交统计 Submission: 递交 Submissions: 递交 @@ -761,6 +768,7 @@ The uploaded file is too long.: 上传的文件太长。 The user is already a member of the domain.: 该用户已是域的成员。 The user is too lazy to leave something here...: 该用户太懒,这里啥也没写 (´・ω・`) Their account will not be deleted and they will be with the default role.: 他们的账号不会被删除,并且之后将以 default 角色访问。 +theme: 主题 There are no contests...: 没有比赛… There is no homework so far ╰(*°▽°*)╯: 目前还没有作业 ╰(*°▽°*)╯ This contest is not live.: 比赛没有开始。 @@ -847,6 +855,7 @@ View Contest: 查看比赛 View contests: 查看比赛 View Details: 查看详情 View discussions: 查看讨论 +View domain user displayname: 显示域中用户的显示名 View hidden contest submission status and scoreboard: 查看隐藏的比赛递交状态和成绩表 View hidden homework submission status and scoreboard: 查看隐藏的作业递交状态和成绩表 View hidden problems: 查看隐藏的题目 @@ -858,6 +867,7 @@ View or submit solution: 查看与发表题解 View Owned Problems: 查看自己的题目 View Owned Training Plans: 查看自己的训练计划 View problem solutions: 查看题解 +View problem solutions after accept: 题目通过后查看题解 View Problem: 查看题目 View problems: 查看题目 View ranking: 查看排名 diff --git a/packages/hydrooj/package.json b/packages/hydrooj/package.json index 522aad93a..271e84efe 100644 --- a/packages/hydrooj/package.json +++ b/packages/hydrooj/package.json @@ -1,6 +1,6 @@ { "name": "hydrooj", - "version": "3.16.6", + "version": "3.16.7", "bin": "bin/hydrooj.js", "main": "src/loader", "module": "src/loader", diff --git a/packages/ui-default/locales/zh.yaml b/packages/ui-default/locales/zh.yaml index 2077006f5..25925d647 100644 --- a/packages/ui-default/locales/zh.yaml +++ b/packages/ui-default/locales/zh.yaml @@ -9,9 +9,11 @@ __langname: 简体中文 '{0} sections': '{0} 小节' '{0} solutions': '{0} 条题解' '{0} views': '{0} 次查看' +'{0}: Groups': '{0}: 小组' '{0}: Permissions': '{0}: 权限' '{0}: Roles': '{0}: 角色' '{0}: Users': '{0}: 用户' +"{0}'s blog": "{0} 的博客" '# My Submissions': '我的递交数' '# Submissions': '递交数' '↓ # Comments': '↓ 评论数' @@ -178,6 +180,7 @@ Copyright Complaint: 版权申诉 CPU Info: CPU信息 Create a contest: 创建一个比赛 Create a Discussion: 创建一个讨论 +Create a Post: 创建一个博文 Create a problem: 创建一个题目 Create Contest: 创建比赛 Create contests: 创建比赛 @@ -207,6 +210,7 @@ Current Password: 当前密码 Current Status: 当前状态 currently offline: 目前离线 Daily update check: 每日自动检查更新 +Dark: 暗色 Data of Problem {0} not found.: 题目 {0} 的数据缺失。 Data of problem {1} not found.: 题目 {1} 的数据未找到。 Data of record {0} not found.: 记录 {0} 的数据未找到。 @@ -219,6 +223,7 @@ Default Code Template: 默认代码模板 Delete discussion replies of own discussion: 删除自己讨论中的回复 Delete discussion replies: 删除讨论回复 Delete discussions: 删除讨论 +Delete Domain: 删除域 Delete own discussion replies: 删除讨论中自己的回复 Delete own discussions: 删除自己的讨论 Delete own problem solution replies: 删除题解中自己的回复 @@ -443,6 +448,7 @@ Last Update At: 最后活动时间 LaTeX Expressions: LaTeX 表达式 Learn More: 了解更多 Leave blank to use numeric pid.: 留空来使用数字题号。 +Light: 亮色 Limitations: 限制 Links: 链接 List View: 列表视图 @@ -463,6 +469,7 @@ Logout This Session: 注销该会话 Logout: 登出 Lost Password: 忘记密码 Lucky: 手气不错 +manage_config: 配置管理 manage_dashboard: 控制面板 manage_join_applications: 加域申请 manage_module: 管理模块 @@ -795,6 +802,7 @@ The uploaded file is too long.: 上传的文件太长。 The user is already a member of the domain.: 该用户已是域的成员。 The user is too lazy to leave something here...: 该用户太懒,这里啥也没写 (´・ω・`) Their account will not be deleted and they will be with the default role.: 他们的账号不会被删除,并且之后将以 default 角色访问。 +Theme: 主题 There are no contests...: 没有比赛… There is no homework so far ╰(*°▽°*)╯: 目前还没有作业 ╰(*°▽°*)╯ This contest is not live.: 比赛没有开始。 @@ -828,6 +836,7 @@ training_edit: 编辑训练 training_main: 训练 Training: 训练 Tried: 尝试 +Two Factor Authentication: 两步验证码 Type: 类型 UI Language: 用户界面语言 Uncompleted: 未完成 diff --git a/packages/ui-default/templates/partials/footer.html b/packages/ui-default/templates/partials/footer.html index b3e8f5384..0564f4407 100644 --- a/packages/ui-default/templates/partials/footer.html +++ b/packages/ui-default/templates/partials/footer.html @@ -59,10 +59,10 @@