Skip to content

Commit

Permalink
fix: add locale
Browse files Browse the repository at this point in the history
  • Loading branch information
Gingmzmzx committed Oct 24, 2024
1 parent bcf9110 commit 332b68d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions vj4/locale/zh_CN.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ admin_user: 管理用户
admin_privilege: 管理特权
admin_mail: 邮件广播
Mail Content: 邮件内容
The problem creator or administrator does not allow downloading of the testdata: 题目创建者或管理员不允许下载测试数据
Read data of problems that disable downloading: 读取不允许下载数据的题目的数据
Disable downloading of testdata: 禁止下载测试数据
Problem creators and users with the PERM_READ_PROBLEM_DATA_DISABLED_DOWNLOAD permission will be able to download data: 题目创建者以及拥有PERM_READ_PROBLEM_DATA_DISABLED_DOWNLOAD权限的用户将可以下载数据
Send mail to selected users: 发送邮件到指定用户
Mail successfully sent to uid:{0}.: 发送邮件成功(UID:{0})
Confirm sending Email to selected users?: 确定要给选定用户发送广播邮件?
Expand Down
2 changes: 1 addition & 1 deletion vj4/ui/templates/problem_settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h1 class="section__title">{{ _('Settings') }}</h1>
<div class="section__body">
<form method="post">
{{ form.form_checkbox(label='Hidden', help_text='Note: Problem title may not be hidden.', name='hidden', value=pdoc['hidden']) }}
{{ form.form_checkbox(label='Disable downloading of testdata', help_text='Disable downloading of data', name='disable_download', value=pdoc['disable_download']) }}
{{ form.form_checkbox(label='Disable downloading of testdata', help_text='Problem creators and users with the PERM_READ_PROBLEM_DATA_DISABLED_DOWNLOAD permission will be able to download data', name='disable_download', value=pdoc['disable_download']) }}
{{ form.form_text(columns=12, label='Category', help_text='Format: category 1, sub category 1.1, sub category 1.2, ..., sub category 1.x, ..., category n, sub category n.1, sub category n.2, ..., sub category n.m, ...', name='category', value=pdoc['category']|join(', ')) }}
{{ form.form_text(columns=12, label='Tags', help_text='Splitted by \', \'.', name='tag', value=pdoc['tag']|join(', ')) }}
{{ form.form_text(columns=12, label='AC Message', help_text='This message will be presented to those whose submissions are accepted.', name='ac_msg', value=(pdoc['ac_msg'] or '' )) }}
Expand Down

0 comments on commit 332b68d

Please sign in to comment.