mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 14:48:41 +00:00
chore(web): translate more strings
This commit is contained in:
parent
f3cf970aad
commit
35eb4c170c
@ -9,7 +9,7 @@ $time_form = new UOJBs4Form('time');
|
||||
$time_form->addVInput(
|
||||
'name',
|
||||
'text',
|
||||
'比赛标题',
|
||||
UOJLocale::get('contests::new contest'),
|
||||
'New Contest',
|
||||
function ($name, &$vdata) {
|
||||
if ($name == '') {
|
||||
@ -35,7 +35,7 @@ $time_form->addVInput(
|
||||
$time_form->addVInput(
|
||||
'start_time',
|
||||
'text',
|
||||
'开始时间',
|
||||
UOJLocale::get('contests::start time'),
|
||||
date("Y-m-d H:i:s"),
|
||||
function ($str, &$vdata) {
|
||||
try {
|
||||
@ -75,7 +75,7 @@ $time_form->handle = function (&$vdata) {
|
||||
$time_form->succ_href = "/contests";
|
||||
$time_form->runAtServer();
|
||||
?>
|
||||
<?php echoUOJPageHeader('添加比赛') ?>
|
||||
<?php echoUOJPageHeader(UOJLocale::get('contests::add new contest')) ?>
|
||||
|
||||
<div class="row">
|
||||
<!-- left col -->
|
||||
@ -83,12 +83,13 @@ $time_form->runAtServer();
|
||||
<div class="card card-default mb-2">
|
||||
<div class="card-body">
|
||||
|
||||
<h1 class="card-title">添加比赛</h1>
|
||||
<h1 class="card-title">
|
||||
<?= UOJLocale::get('contests::add new contest') ?>
|
||||
</h1>
|
||||
|
||||
<div class="w-full" style="max-width: 400px">
|
||||
<?php $time_form->printHTML(); ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -385,16 +385,26 @@ if (UOJContest::cur()) {
|
||||
<div class="card mb-2">
|
||||
<ul class="list-group list-group-flush">
|
||||
<li class="list-group-item d-flex justify-content-between align-items-center">
|
||||
<span class="flex-shrink-0">上传者</span>
|
||||
<span><?= UOJProblem::cur()->getUploaderLink() ?></span>
|
||||
<span class="flex-shrink-0">
|
||||
<?= UOJLocale::get('problems::uploader') ?>
|
||||
</span>
|
||||
<span>
|
||||
<?= UOJProblem::cur()->getUploaderLink() ?>
|
||||
</span>
|
||||
</li>
|
||||
<li class="list-group-item d-flex justify-content-between align-items-center">
|
||||
<span class="flex-shrink-0">难度</span>
|
||||
<span><?= UOJProblem::cur()->getDifficultyHTML() ?></span>
|
||||
<span class="flex-shrink-0">
|
||||
<?= UOJLocale::get('problems::difficulty') ?>
|
||||
</span>
|
||||
<span>
|
||||
<?= UOJProblem::cur()->getDifficultyHTML() ?>
|
||||
</span>
|
||||
</li>
|
||||
<?php if (Auth::check()) : ?>
|
||||
<li class="list-group-item d-flex justify-content-between align-items-center">
|
||||
<span class="flex-shrink-0">历史分数</span>
|
||||
<span class="flex-shrink-0">
|
||||
<?= UOJLocale::get('problems::historical score') ?>
|
||||
</span>
|
||||
<?php $his_score = DB::selectSingle(["select max(score)", "from submissions", "where", ["problem_id" => UOJProblem::info('id'), "submitter" => Auth::id()]]) ?>
|
||||
|
||||
<a class="<?= is_null($his_score) ? '' : 'uoj-score' ?>" href="<?= HTML::url('/submissions', ['params' => ['problem_id' => UOJProblem::info('id'), 'submitter' => Auth::id()]]) ?>">
|
||||
@ -403,7 +413,9 @@ if (UOJContest::cur()) {
|
||||
</li>
|
||||
<?php endif ?>
|
||||
<li class="list-group-item d-flex justify-content-between align-items-center">
|
||||
<span class="flex-shrink-0">标签</span>
|
||||
<span class="flex-shrink-0">
|
||||
<?= UOJLocale::get('problems::tags') ?>
|
||||
</span>
|
||||
<span>
|
||||
<?php if (UOJProblem::info('is_hidden')) : ?>
|
||||
<a href="<?= HTML::url('/problems', ['params' => ['is_hidden' => 'on']]) ?>">
|
||||
@ -423,8 +435,12 @@ if (UOJContest::cur()) {
|
||||
</span>
|
||||
</li>
|
||||
<li class="list-group-item d-flex justify-content-between align-items-center">
|
||||
<span class="flex-shrink-0">评价</span>
|
||||
<span><?= UOJProblem::cur()->getZanBlock() ?></span>
|
||||
<span class="flex-shrink-0">
|
||||
<?= UOJLocale::get('appraisal') ?>
|
||||
</span>
|
||||
<span>
|
||||
<?= UOJProblem::cur()->getZanBlock() ?>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
return [
|
||||
'new contest' => 'New Contest',
|
||||
'current or upcoming contests' => 'Current or upcoming contests',
|
||||
'ended contests' => 'Ended contests',
|
||||
'back to the contest' => 'Back to the contest',
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
return [
|
||||
'new contest' => '新建比赛',
|
||||
'current or upcoming contests' => '正在进行或即将到来的比赛',
|
||||
'ended contests' => '已结束的比赛',
|
||||
'back to the contest' => '返回比赛',
|
||||
|
@ -52,4 +52,7 @@ return [
|
||||
'hacks to me' => 'Hacks to me',
|
||||
'difficulty' => 'Difficulty',
|
||||
'show difficulty' => 'Show difficulty',
|
||||
'tags' => 'Tags',
|
||||
'historical score' => 'Historical Score',
|
||||
'uploader' => 'Uploader',
|
||||
];
|
||||
|
@ -52,4 +52,7 @@ return [
|
||||
'hacks to me' => '我的被Hack记录',
|
||||
'difficulty' => '难度',
|
||||
'show difficulty' => '显示难度',
|
||||
'tags' => '标签',
|
||||
'historical score' => '历史分数',
|
||||
'uploader' => '上传者',
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user