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