feat: translate web interface to Russian
This commit is contained in:
@@ -5,26 +5,26 @@
|
||||
@attribute [Authorize]
|
||||
@inject SessionService SessionService
|
||||
|
||||
<PageTitle>Group Sessions - GM-Relay</PageTitle>
|
||||
<PageTitle>Сессии группы - GM-Relay</PageTitle>
|
||||
|
||||
<div class="container mt-4">
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="/">Dashboard</a></li>
|
||||
<li class="breadcrumb-item active">Group Sessions</li>
|
||||
<li class="breadcrumb-item"><a href="/">Главная</a></li>
|
||||
<li class="breadcrumb-item active">Сессии группы</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<h2>Upcoming Sessions</h2>
|
||||
<h2>Предстоящие игры</h2>
|
||||
|
||||
<div class="mt-4">
|
||||
@if (sessions == null)
|
||||
{
|
||||
<p>Loading sessions...</p>
|
||||
<p>Загрузка сессий...</p>
|
||||
}
|
||||
else if (sessions.Count == 0)
|
||||
{
|
||||
<div class="alert alert-info">No upcoming sessions found for this group.</div>
|
||||
<div class="alert alert-info">Для этой группы не найдено предстоящих сессий.</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -32,11 +32,11 @@
|
||||
<table class="table table-hover align-middle">
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
<th>Title</th>
|
||||
<th>Time (MSK)</th>
|
||||
<th>Status</th>
|
||||
<th>Link</th>
|
||||
<th>Action</th>
|
||||
<th>Название</th>
|
||||
<th>Время (МСК)</th>
|
||||
<th>Статус</th>
|
||||
<th>Ссылка</th>
|
||||
<th>Действие</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -46,11 +46,11 @@
|
||||
<td>@session.Title</td>
|
||||
<td>@session.ScheduledAt.FormatMoscow()</td>
|
||||
<td>
|
||||
<span class="badge @GetStatusClass(session.Status)">@session.Status</span>
|
||||
<span class="badge @GetStatusClass(session.Status)">@TranslateStatus(session.Status)</span>
|
||||
</td>
|
||||
<td><a href="@session.JoinLink" target="_blank" class="text-truncate d-inline-block" style="max-width: 150px;">Link</a></td>
|
||||
<td><a href="@session.JoinLink" target="_blank" class="text-truncate d-inline-block" style="max-width: 150px;">Ссылка</a></td>
|
||||
<td>
|
||||
<a href="/session/edit/@session.Id" class="btn btn-sm btn-outline-secondary">Edit</a>
|
||||
<a href="/session/edit/@session.Id" class="btn btn-sm btn-outline-secondary">Изменить</a>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
@@ -77,4 +77,14 @@
|
||||
SessionStatus.ConfirmationSent => "bg-warning text-dark",
|
||||
_ => "bg-secondary"
|
||||
};
|
||||
|
||||
private string TranslateStatus(string status) => status switch
|
||||
{
|
||||
SessionStatus.Recruiting => "Набор",
|
||||
SessionStatus.RecruitmentClosed => "Набор закрыт",
|
||||
SessionStatus.ConfirmationSent => "Ждем подтверждения",
|
||||
SessionStatus.Confirmed => "Подтверждено",
|
||||
SessionStatus.Cancelled => "Отменено",
|
||||
_ => status
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user