Skip to content

Commit

Permalink
Fix login text (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lvw666 authored Sep 5, 2023
1 parent 72f4985 commit b082fcf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/hydrooj/locales/zh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ 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: 图片
Import From Hydro: Hydro 导入
Import From Hydro: U+ 导入
Import from: 导入自
Import Problem: 导入题目
Import User: 导入用户
Expand Down
6 changes: 3 additions & 3 deletions packages/hydrooj/src/model/setting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ SystemSetting(
Setting('setting_smtp', 'smtp.secure', false, 'boolean', 'smtp.secure', 'SSL'),
Setting('setting_smtp', 'smtp.verify', true, 'boolean', 'smtp.verify', 'Verify register email'),
Setting('setting_server', 'server.center', 'https://hydro.ac/center', 'text', 'server.center', '', FLAG_HIDDEN),
Setting('setting_server', 'server.name', 'Hydro', 'text', 'server.name', 'Server Name'),
Setting('setting_server', 'server.displayName', 'Hydro', 'text', 'server.name', 'Server Name (Global Display)', FLAG_PRO),
Setting('setting_server', 'server.name', 'U+', 'text', 'server.name', 'Server Name'),
Setting('setting_server', 'server.displayName', 'U+', 'text', 'server.name', 'Server Name (Global Display)', FLAG_PRO),
Setting('setting_server', 'server.url', '/', 'text', 'server.url', 'Server BaseURL'),
Setting('setting_server', 'server.upload', '256m', 'text', 'server.upload', 'Max upload file size'),
Setting('setting_server', 'server.cdn', '/', 'text', 'server.cdn', 'CDN Prefix'),
Expand Down Expand Up @@ -335,7 +335,7 @@ export async function apply(ctx: Context) {
for (const key in langs) range[key] = langs[key].display;
LangSettingNode.range = range;
ServerLangSettingNode.range = range;
} catch (e) { /* Ignore */ }
} catch (e) { /* Ignore */ }

Check failure on line 338 in packages/hydrooj/src/model/setting.ts

View workflow job for this annotation

GitHub Actions / build

Trailing spaces not allowed
ctx.on('system/setting', (args) => {
if (!args.hydrooj?.langs) return;
Object.assign(langs, parseLang(args.hydrooj.langs));
Expand Down
4 changes: 2 additions & 2 deletions packages/ui-default/templates/partials/login_dialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="dialog--signin__bg">
<div class="dialog--signin__side">
<h1>{{ _("Don't have an account?") }}</h1>
<p>{{ _('By signing up a {0} universal account, you can submit code and join discussions in all online judging services provided by us.').format((handler.domain|default({ui:[]})).ui.name|default(model.system.get('server.name'))) }}</p>
<p>{{ _('注册一个 U+ 通用账户,您就可以在我们提供的所有在线评测服务上提交代码、参与讨论。').format((handler.domain|default({ui:[]})).ui.name|default(model.system.get('server.name'))) }}</p>
<div><a href="{{ url('user_register') }}" class="inverse rounded button">{{ _('Sign Up Now') }}</a></div>
</div>
</div>
Expand All @@ -13,7 +13,7 @@ <h1>{{ _("Don't have an account?") }}</h1>
<a name="dialog--signin__close" href="javascript:;">{{ _('CLOSE') }}</a>
</div>
<h1 class="dialog--signin__title">{{ _('SIGN IN') }}</h1>
<p class="dialog--signin__note">{{ _('Using your {0} universal account').format(model.system.get('server.name')) }}</p>
<p class="dialog--signin__note">{{ _('使用您的 U+ 通用账户').format(model.system.get('server.name')) }}</p>
{% if model.system.get('server.login') %}
<div class="row"><div class="columns">
<label class="material textbox">
Expand Down

0 comments on commit b082fcf

Please sign in to comment.