Skip to content

Commit 828ba55

Browse files
authored
i18n: add missing i18n (#1077)
1 parent 1282f80 commit 828ba55

5 files changed

Lines changed: 24 additions & 7 deletions

File tree

packages/ui-default/locales/en.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
__langname: English
22
'File IO: {0}': 'File IO: {0}'
3+
'Tip: You are entering sudo mode.': 'Tip: You are entering <a href="https://docs.github.com/articles/sudo-mode">sudo mode</a>.'
34
Can be Extended For: Extension
45
Current Status: Status
56
Handled Requests: Req

packages/ui-default/locales/zh.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ __langname: 简体中文
4747
'Solved {0} problems, RP: {1} (No. {2})': '解决了 {0} 道题目,RP: {1} (No. {2})'
4848
'The domain owner:': 域所有者:
4949
'The value `{1}` of {0} already exists.': '{0} 的值 `{1}` 已经存在。'
50+
'Tip: You are entering sudo mode.': '提示:您正在进行<a href="https://docs.github.com/articles/sudo-mode">身份验证</a>。'
5051
'Yes':
52+
"After you've performed a sudo-protected action, you'll only be asked to re-authenticate again after a few hours of inactivity.": 在您执行受保护的操作后,只有账户连续数小时不活动时,系统才会再次要求您重新验证身份。
5153
"Effects only when Difficulty is not 'Use algorithm calculated'.": 仅当难度不为“使用算法计算”时才起效。
5254
"Split by ', '.": 由“, ”或“,”分隔。
5355
"View other's records": 查看他人的记录
@@ -188,6 +190,7 @@ Compilers' Version and Parameters: 编译器版本及参数
188190
Complete: 完成
189191
Completed: 已完成
190192
Config: 配置
193+
Confirm Access: 确认授权
191194
Confirm deleting the selected roles?: 您确定删除所选角色吗?
192195
Confirm deleting this comment? Its replies will be deleted as well.: 确认删除这个评论吗?回复会被同时删除。
193196
Confirm deleting this domain? This action cannot be undone.: '确认删除此域?此操作无法撤销。'
@@ -197,6 +200,7 @@ Confirm removing the selected users?: 您确定将所选用户移除吗?
197200
Confirm to delete the file?: 确认删除此文件吗?
198201
Confirm to delete the selected files?: 确认删除所选文件吗?
199202
Confirm to delete the selected problems?: 确认要删除所选题目吗?
203+
Confirm: 确认
200204
Confirmation mail has been sent to your new email.: 确认邮件已经发送到您的新电子邮箱。
201205
Congratulations! Your submission is accepted.: 恭喜!您的递交已评测通过。
202206
Contact Us: 联系我们
@@ -220,6 +224,8 @@ Contributions: 贡献
220224
Copy Email: 复制电子邮件
221225
Copy from: 复制自
222226
Copy Link: 复制链接
227+
Copy Problem: 复制题目
228+
Copy Problems: 复制题目
223229
Copy QQ Number: 复制QQ号
224230
Copy Selected: 复制选中
225231
Copy WeChat Account: 复制微信号
@@ -335,6 +341,7 @@ Download All: 下载全部
335341
Download Dataset: 下载数据集
336342
Download Selected: 下载选中
337343
Download: 下载
344+
Downloading...: 下载中...
338345
Downvote: 差评
339346
Duration (hours): 持续时间 (小时)
340347
Duration: 持续时间
@@ -527,6 +534,7 @@ Legacy mode: 兼容模式
527534
Light: 亮色
528535
Limit user to finish contest within N hours: 限制用户在N小时内完成比赛
529536
Limitations: 限制
537+
Linked Accounts: 关联账户
530538
Links: 链接
531539
List View: 列表视图
532540
Live: 正在进行
@@ -558,6 +566,7 @@ Manage: 管理
558566
Manager: 管理
559567
Mark Green: 标绿
560568
Mark Red: 标红
569+
Mark user as joined using admin privilege: 使用管理员权限将用户标记为已加入
561570
Mark Yellow: 标黄
562571
Memory Cost: 内存占用
563572
Memory Info: 内存信息
@@ -678,6 +687,7 @@ Please attend contest to see the problems.: 请参加比赛来查看题目。
678687
Please claim the assignment to see the problems.: 认领作业后才可以查看作业内容。
679688
Please follow the instructions on your device to complete the verification.: 请按照您设备上的指示完成验证。
680689
Please select at least one file to perform this operation.: 请选择至少一个文件来执行此操作。
690+
Please select at least one problem to perform this operation.: 请选择至少一道题目来执行此操作。
681691
Please select at least one role to perform this operation.: 请选择至少一个角色来进行操作。
682692
Please select at least one user to perform this operation.: 请选择至少一个用户来进行操作。
683693
Please set the balloon color for each problem first.: 请先为每道题设置气球颜色。
@@ -816,6 +826,8 @@ Scoreboard (Hidden): 成绩表 (隐藏)
816826
Scoreboard: 成绩表
817827
Scoring method: 评分方式
818828
Scripts: 脚本
829+
Search contests...: 搜索比赛...
830+
Search homeworks...: 搜索作业...
819831
Search: 搜索
820832
Secret (visible to admins): 保密(对管理员可见)
821833
Secret: 保密
@@ -826,11 +838,14 @@ Select a role: 选择一个角色
826838
Select All: 全选
827839
Select Category: 选择标签
828840
Select None: 全不选
841+
Select Problems: 选择题目
829842
Select User: 选择用户
830843
Selected categories: 已选标签
831844
Selected files have been deleted.: 所选文件已被删除。
832845
Selected files have been renamed.: 所选文件已被重命名。
833846
Selected problems have been deleted.: 所选题目已被删除。
847+
Selected problems have been hided.: 所选题目已被隐藏。
848+
Selected problems have been unhided.: 所选题目已取消隐藏。
834849
Selected roles have been deleted.: 所选角色已删除。
835850
Selected users have been removed from the domain.: 所选用户已从此域中移除。
836851
Send By: 递送者
@@ -936,6 +951,7 @@ The user is too lazy to leave something here...: 该用户太懒,这里啥也
936951
Their account will not be deleted and they will be with the guest role until they re-join the domain.: 他们的账号不会被删除,并且之后将以 guest 角色访问,直到他们重新加入域。
937952
Theme: 主题
938953
There are no contests...: 没有比赛…
954+
There are no files currently.: 目前还没有文件。
939955
There is no homework so far ╰(*°▽°*)╯: 目前还没有作业 ╰(*°▽°*)╯
940956
This contest is not live.: 比赛没有开始。
941957
This email was sent by {0} automatically, and please do not reply directly.: 这封邮件由 {0} 自动发送,请勿直接回复。

packages/ui-default/pages/domain_user.page.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ const page = new NamedPage('domain_user', () => {
2323
});
2424

2525
async function handleClickAddUser() {
26-
const res = await prompt('Add User', {
26+
const res = await prompt(i18n('Add User'), {
2727
user: {
2828
type: 'userId',
2929
required: true,
3030
autofocus: true,
31-
label: 'Username / UID',
31+
label: i18n('Username / UID'),
3232
columns: 6,
3333
},
3434
role: {
@@ -41,7 +41,7 @@ const page = new NamedPage('domain_user', () => {
4141
...(UiContext.canForceJoin ? {
4242
join: {
4343
type: 'checkbox',
44-
label: 'Mark user as joined using admin privilege',
44+
label: i18n('Mark user as joined using admin privilege'),
4545
},
4646
} : {}),
4747
});

packages/ui-default/pages/problem_main.page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ function ProblemSelectionDisplay(props) { // eslint-disable-line
382382
<div className="dialog__body" style={{ height: 'calc(100% - 45px)' }}>
383383
<div className="row">
384384
<div className="columns">
385-
<h1>Select Problems</h1>
385+
<h1>{i18n('Select Problems')}</h1>
386386
</div>
387387
</div>
388388
<div className="row">

packages/ui-default/templates/user_sudo.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ <h1>{{ _('Confirm Access') }}</h1>
3131
</div></div>
3232
</form>
3333
<div class="row"><div class="columns">
34-
<div class="text-center supplementary inverse">
35-
<p><strong>Tip:</strong> You are entering <a href="https://docs.github.com/articles/sudo-mode">sudo mode</a>.</p>
36-
<p>After you've performed a sudo-protected action, you'll only be asked to re-authenticate again after a few hours of inactivity.</p>
34+
<div class="text-center supplementary inverse typo">
35+
<p>{{ _('Tip: You are entering sudo mode.')|safe }}</p>
36+
<p>{{ _("After you've performed a sudo-protected action, you'll only be asked to re-authenticate again after a few hours of inactivity.") }}</p>
3737
</div>
3838
</div></div>
3939
{% if UserContext.authn or UserContext.tfa %}

0 commit comments

Comments
 (0)