From 689c4cba6dc4c4a532deb707df9134b7d995f001 Mon Sep 17 00:00:00 2001 From: Macesuted <57275149+Macesuted@users.noreply.github.com> Date: Fri, 20 Aug 2021 19:13:57 +0800 Subject: [PATCH] ui: update translation & delete a strange button (#178) --- packages/hydrojudge/locales/zh.yaml | 2 ++ packages/hydrooj/locales/zh.yaml | 17 ++++++++++++++--- packages/hydrooj/src/model/setting.ts | 2 +- packages/ui-default/locales/zh.yaml | 12 +++++++++++- .../ui-default/templates/contest_detail.html | 16 ++++++++++++++++ packages/ui-default/templates/contest_edit.html | 2 +- .../templates/partials/contest_sidebar.html | 16 ++++++++-------- .../templates/record_detail_status.html | 1 - 8 files changed, 53 insertions(+), 15 deletions(-) diff --git a/packages/hydrojudge/locales/zh.yaml b/packages/hydrojudge/locales/zh.yaml index 7644ace78..a2c9175e2 100644 --- a/packages/hydrojudge/locales/zh.yaml +++ b/packages/hydrojudge/locales/zh.yaml @@ -14,6 +14,7 @@ Invalid judge_extra_files config.: 无效的 judge_extra_files 配置。 Invalid user_extra_files config.: 无效的 user_extra_files 配置。 Max testcases per problem: 单题最多测试点数量 Problem data not found.: 没有找到测试数据。 +Re-Run testcase if time-limit-exceeded (max per submission): 每个提交最多重测 TLE 测试点的次数 Read {0}, expect {1}.: 读取到 {0},应为 {1}。 Retry delay sec: 重试间隔(秒) Runner parallelism: 评测机运行进程数 @@ -21,6 +22,7 @@ Sandbox Error: 沙箱错误 Sandbox Host: 沙箱地址 Standard answer longer than user output.: 标准输出比选手输出长。 Stdout/Stderr size: 标准输出/错误流输出大小限制 +Strict Memory Mode: 严格内存限制 Temp directory: 临时目录 Testdata cache directory: 测试数据缓存目录 Testdata configuration incorrect.: 题目配置错误。 diff --git a/packages/hydrooj/locales/zh.yaml b/packages/hydrooj/locales/zh.yaml index cf39a2652..122997067 100644 --- a/packages/hydrooj/locales/zh.yaml +++ b/packages/hydrooj/locales/zh.yaml @@ -66,7 +66,9 @@ All Submissions: 所有递交 All Training Plans: 所有训练计划 All: 全部 Allow builtin-login: 启用内置登录 -Allow using gravatar:email qq:id github:name format.: 允许使用 gravatar:email,qq:id,github:name 格式。 +Allow users send messages: 允许用户使用私信 +Allow using gravatar:email qq:id github:name url:link format.: 允许使用 gravatar:email,qq:id,github:name,url:link 格式。 +Allowed langs: 域内允许使用的提交语言 Always granted all privileges: 总是拥有所有权限 An error has occurred.: 发生了一个错误。 An example of dataset: 测试数据集的一个例子 @@ -320,10 +322,10 @@ Extension (days): 最长延期 (日) Extension Score Penalty: 延期递交扣分规则 Failed to join the domain. You are already a member.: 加入域失败,您已是该域的成员。 Feedback: 反馈 -Field {0} or {1} validation failed.: 字段 {0} 或 {1} 验证失败。 Field {0} or {1} validation failed. ({2}): 字段 {0} 或 {1} 验证失败。 ({2}) -Field {0} validation failed.: 字段 {0} 验证失败。 +Field {0} or {1} validation failed.: 字段 {0} 或 {1} 验证失败。 Field {0} validation failed. ({2}): 字段 {0} 验证失败。 ({2}) +Field {0} validation failed.: 字段 {0} 验证失败。 Filter: 过滤 Footer: 页脚 Forgot Password and/or Username: 忘记密码和/或用户名 @@ -353,6 +355,7 @@ home_files: 我的文件 home_messages: 站内消息 home_preference: 偏好设置 home_security: 安全设置 +Homepage Config: 主页设置 homepage: 首页 Homework Introduction: 作业介绍 Homework scoreboard is not visible.: 目前无法查看作业成绩表。 @@ -452,6 +455,12 @@ Manage: 管理 Manager: 管理 Mark Green: 标绿 Mark Yellow: 标黄 +Max files for user: 单用户最大文件数量 +Max files per problem: 单题最大文件数量 +Max files size per problem: 单题最大总文件大小 +Max pretest count per minute: 每分钟自测数量限制 +Max submission count per minute: 每分钟提交数量限制 +Max total file size for user: 单用户最大总文件大小 Memory Cost: 内存占用 Memory Info: 内存信息 Memory: 内存 @@ -687,6 +696,7 @@ setting_session: Session 设置 setting_smtp: SMTP 设置 setting_usage: 使用偏好 Settings: 设置 +Share problem with domain (* for any): 允许引用该域题目的域(* 表示所有域均允许) Share: 分享 She: 她 Show all tags: 显示所有标签 @@ -821,6 +831,7 @@ Users: 用户 Using your {0} universal account: 使用您的 {0} 通用账户 Valid for registered users who are not members of the domain: 对域外注册用户有效 Valid for visitors: 对未登录的游客有效 +Verify register email: 注册需邮件验证 Version: 版本 View contest scoreboard: 查看比赛成绩表 View Contest: 查看比赛 diff --git a/packages/hydrooj/src/model/setting.ts b/packages/hydrooj/src/model/setting.ts index d4e74437d..3644befeb 100644 --- a/packages/hydrooj/src/model/setting.ts +++ b/packages/hydrooj/src/model/setting.ts @@ -123,7 +123,7 @@ PreferenceSetting( AccountSetting( Setting('setting_info', 'avatar', '', 'text', 'Avatar', - 'Allow using gravatar:email qq:id github:name format.'), + 'Allow using gravatar:email qq:id github:name url:link format.'), Setting('setting_info', 'qq', null, 'text', 'QQ'), Setting('setting_info', 'gender', builtin.USER_GENDER_OTHER, builtin.USER_GENDER_RANGE, 'Gender'), Setting('setting_info', 'bio', null, 'markdown', 'Bio'), diff --git a/packages/ui-default/locales/zh.yaml b/packages/ui-default/locales/zh.yaml index 78384e6f5..6acf7a8c2 100644 --- a/packages/ui-default/locales/zh.yaml +++ b/packages/ui-default/locales/zh.yaml @@ -40,6 +40,7 @@ __langname: 简体中文 "Split by ', '.": 由“, ”或“,”分隔。 "What's file?": 什么是文件? (All Problems): (所有题目) +(leave blank if none): (若不需要则留空) (None): (无) (Not changed): 未更改 Aborted: 已放弃 @@ -97,6 +98,7 @@ By clicking the button, you will become a member of the domain {0}.: 点击按 By Contest: 由比赛 By Problem: 由题目 By signing up a {0} universal account, you can submit code and join discussions in all online judging services provided by us.: 注册一个 {0} 通用账户,您就可以在我们提供的所有在线评测服务上提交代码、参与讨论。 +By Status: 由状态 By Username / UID: 由用户名或 UID Calendar View: 日历视图 Calendar: 日历 @@ -167,6 +169,7 @@ Create Discussion in {0}: 在 {0} 下创建讨论 Create Discussion: 创建讨论 Create discussions: 创建讨论 Create Domain: 创建域 +Create File: 创建文件 Create homework: 创建作业 Create Homework: 创建作业 Create Link: 创建链接 @@ -315,6 +318,7 @@ Filename: 文件名 Files: 文件 Filter: 过滤 Footer: 页脚 +Footnote: 脚注 Forgot Password and/or Username: 忘记密码和/或用户名 Forgot password or username?: 忘记密码或者用户名? Formula blocks: 公式区块 @@ -329,6 +333,7 @@ Help: 帮助 Hidden: 隐藏 Hide all tags: 隐藏所有标签 Hide categorical tags: 隐藏分类标签 +Hide tags: 隐藏标签 Highlight discussions: 高亮讨论 Highlight: 高亮 Hint: 提示 @@ -358,6 +363,7 @@ Host: 主持人 hour(s): 小时 If enabled, source code will be emailed to you after the submission is accepted.: 如果启用,在您通过题目后,源代码会以 Email 的形式发送给您。 If left blank, the built-in template of the corresponding language will be used.: 若留空,则将使用对应语言的内置代码模板。 +Images With Size: 指定大小的图片 Images: 图片 Import from: 导入自 Import problem from syzoj.: 从运行 syzoj 系统的 OJ 导入题目。 @@ -464,6 +470,7 @@ New Password: 新密码 New Training Plan: 新训练计划 New: 创建 No additional file at current: 当前没有附加文件 +No additional file at current.: 暂无附加文件。 No comments so far...: 目前还没有评论... no discussion yet...: 目前没有讨论… No Permission to Attend Contest: 您没有权限参加比赛 @@ -528,6 +535,7 @@ perm_training: 训练 Permission: 权限 Permissions: 权限 Pick a problem randomly based on current filter: 根据当前过滤条件随机选择一道题 +Pin: 置顶 Plan: 计划 Please attend contest to see the problems.: 请参加比赛来查看题目。 Please claim the assignment to see the problems.: 认领作业后才可以查看作业内容。 @@ -660,6 +668,7 @@ Send Message: 发送站内信息 Send Password Reset Email: 发送密码重置邮件 Send Verification Email: 发送验证邮件 Send: 发送 +Seperated with ',': 用 ',' 分隔 Service Status: 服务状态 Set Role: 设置角色 Set Roles for Selected User: 设置所选用户的角色 @@ -806,6 +815,7 @@ Using your {0} universal account: 使用您的 {0} 通用账户 Valid for registered users who are not members of the domain: 对域外注册用户有效 Valid for visitors: 对未登录的游客有效 Version: 版本 +Videos: 视频 View contest scoreboard: 查看比赛成绩表 View Contest: 查看比赛 View contests: 查看比赛 @@ -867,4 +877,4 @@ You've already attended this contest.: 您已经参加本次比赛。 You've already claimed this homework.: 您已认领过该作业。 You've already voted.: 您已经投过票。 Your permission: 您的权限 -Your role: 您的角色 +Your role: 您的角色 \ No newline at end of file diff --git a/packages/ui-default/templates/contest_detail.html b/packages/ui-default/templates/contest_detail.html index fd962ccb8..6376fb127 100644 --- a/packages/ui-default/templates/contest_detail.html +++ b/packages/ui-default/templates/contest_detail.html @@ -5,6 +5,22 @@ {% block content %}