clean up some more translations

This commit is contained in:
RaidMax 2022-07-05 12:42:17 -05:00
parent 2fca68a7ea
commit 77d25890da
16 changed files with 17 additions and 22 deletions

View File

@ -210,7 +210,7 @@ namespace WebfrontCore.Controllers
ViewBag.SearchTerm = clientName; ViewBag.SearchTerm = clientName;
ViewBag.ResultCount = clientsDto.Count; ViewBag.ResultCount = clientsDto.Count;
ViewBag.Title = "Search Results"; ViewBag.Title = Localization["WEBFRONT_SEARCH_RESULTS_TITLE"];
return View("Find/Index", clientsDto); return View("Find/Index", clientsDto);
} }

View File

@ -221,7 +221,7 @@ namespace IW4MAdmin.Plugins.Web.StatsWeb.Controllers
{ {
return View("~/Views/Client/_MessageContext.cshtml", new List<MessageResponse> return View("~/Views/Client/_MessageContext.cshtml", new List<MessageResponse>
{ {
new MessageResponse() new()
{ {
ClientId = penalty.OffenderId, ClientId = penalty.OffenderId,
Message = penalty.AutomatedOffense, Message = penalty.AutomatedOffense,

View File

@ -4,7 +4,7 @@
<h2 class="content-title mt-20 mb-10">@ViewBag.Title</h2> <h2 class="content-title mt-20 mb-10">@ViewBag.Title</h2>
@if (!Model.Any()) @if (!Model.Any())
{ {
<div class="text-muted mb-10">Search for records...</div> <div class="text-muted mb-10">@ViewBag.Localization["WEBFRONT_BAN_MGMT_SUBTITLE"]</div>
} }
<form method="get" class="mt-10"> <form method="get" class="mt-10">
<div class="d-flex flex-column flex-md-row"> <div class="d-flex flex-column flex-md-row">

View File

@ -5,9 +5,8 @@
<!-- desktop --> <!-- desktop -->
<div class="content mt-0"> <div class="content mt-0">
<h2 class="content-title mt-20 mb-0">@ViewBag.Localization["WEBFRONT_SEARCH_RESULTS_TITLE"]</h2> <h2 class="content-title mt-20 mb-0">@loc["WEBFRONT_SEARCH_RESULTS_TITLE"]</h2>
<div class="text-muted mb-15"> <div class="text-muted mb-15">
@foreach (var match in Utilities.SplitTranslationTokens("WEBFRONT_SEARCH_RESULTS_SUBTITLE_FORMAT")) @foreach (var match in Utilities.SplitTranslationTokens("WEBFRONT_SEARCH_RESULTS_SUBTITLE_FORMAT"))
{ {
if (match.IsInterpolation) if (match.IsInterpolation)

View File

@ -24,7 +24,7 @@
<color-code value="@(message.ServerName ?? "--")"></color-code> <color-code value="@(message.ServerName ?? "--")"></color-code>
</td> </td>
<td colspan="15%" class="text-right text-break"> <td colspan="15%" class="text-right text-break">
@message.When @message.When.ToStandardFormat()
</td> </td>
</tr> </tr>
@ -53,7 +53,7 @@
<div> <div>
<color-code value="@(message.ServerName ?? "--")"></color-code> <color-code value="@(message.ServerName ?? "--")"></color-code>
</div> </div>
<div>@message.When</div> <div>@message.When.ToStandardFormat()</div>
</td> </td>
</tr> </tr>
} }

View File

@ -2,14 +2,13 @@
<div class="content mt-0"> <div class="content mt-0">
<h4 class="content-title mt-20">@ViewBag.Title</h4> <h4 class="content-title mt-20">@ViewBag.Title</h4>
@foreach (var key in Model.Keys) @foreach (var key in Model.Keys)
{ {
<table class="table mb-20" style="table-layout:fixed;"> <table class="table mb-20" style="table-layout:fixed;">
<thead> <thead>
<tr class="level-bgcolor-@((int)key)"> <tr class="level-bgcolor-@((int)key)">
<th class="text-light">@key.ToLocalizedLevelName()</th> <th class="text-light">@key.ToLocalizedLevelName()</th>
<th>Game</th> <th>@ViewBag.Localization["WEBFRONT_CONTEXT_MENU_GLOBAL_GAME"]</th>
<th class="text-right font-weight-bold">@ViewBag.Localization["WEBFRONT_SEARCH_LAST_CONNECTED"]</th> <th class="text-right font-weight-bold">@ViewBag.Localization["WEBFRONT_SEARCH_LAST_CONNECTED"]</th>
</tr> </tr>
</thead> </thead>

View File

@ -41,7 +41,6 @@
{ {
<color-code value="@Model.Offense"></color-code> <color-code value="@Model.Offense"></color-code>
} }
</span> </span>
} }

View File

@ -41,6 +41,5 @@
} }
</div> </div>
} }
<!-- </div> -->
} }
</div> </div>

View File

@ -6,7 +6,7 @@
<h2 class="content-title mb-0">@ViewBag.Localization["WEBFRONT_TOP_PLAYERS_TITLE"]</h2> <h2 class="content-title mb-0">@ViewBag.Localization["WEBFRONT_TOP_PLAYERS_TITLE"]</h2>
<span class="text-muted"> <span class="text-muted">
<color-code value="@(Model.FirstOrDefault(m => m.Endpoint == ViewBag.SelectedServerId)?.Name ?? ViewBag.Localization["WEBFRONT_STATS_INDEX_ALL_SERVERS"])"></color-code> <color-code value="@(Model.FirstOrDefault(m => m.Endpoint == ViewBag.SelectedServerId)?.Name ?? ViewBag.Localization["WEBFRONT_STATS_INDEX_ALL_SERVERS"])"></color-code>
&mdash; <span class="text-primary">@ViewBag.TotalRankedClients.ToString("#,##0")</span> Ranked Players &mdash; <span class="text-primary">@ViewBag.TotalRankedClients.ToString("#,##0")</span> @ViewBag.Localization["WEBFRONT_TOP_PLAYERS_SUBTITLE"]
</span> </span>
<div id="topPlayersContainer"> <div id="topPlayersContainer">

View File

@ -13,7 +13,7 @@
<div class="position-absolute bg-danger rounded-circle ml-10" style="width: 0.5em;height: 0.5em;top: 0;"></div> <div class="position-absolute bg-danger rounded-circle ml-10" style="width: 0.5em;height: 0.5em;top: 0;"></div>
<div class="dropdown-menu dropdown-menu-right w-250 w-md-400" aria-labelledby="alert-toggle"> <div class="dropdown-menu dropdown-menu-right w-250 w-md-400" aria-labelledby="alert-toggle">
<div class="d-flex"> <div class="d-flex">
<h6 class="dropdown-header">@ViewBag.Alerts.Count Alerts</h6> <h6 class="dropdown-header">@((ViewBag.Localization["WEBFRONT_ALERTS_POPOVER_COUNT"] as string).FormatExt((int)ViewBag.Alerts.Count))</h6>
<i class="oi oi-circle-x font-size-12 text-danger align-self-center profile-action" data-action="DismissAllAlerts" data-action-id="@ViewBag.User.ClientId"></i> <i class="oi oi-circle-x font-size-12 text-danger align-self-center profile-action" data-action="DismissAllAlerts" data-action-id="@ViewBag.User.ClientId"></i>
</div> </div>
<div class="dropdown-divider"></div> <div class="dropdown-divider"></div>
@ -42,7 +42,7 @@
<div class="font-size-12 p-5"> <div class="font-size-12 p-5">
<span class="text-force-break">@alert.Message</span> <span class="text-force-break">@alert.Message</span>
<div class="text-muted d-flex"> <div class="text-muted d-flex">
<span>@alert.OccuredAt.Humanize()</span> <span>@alert.OccuredAt.HumanizeForCurrentCulture()</span>
@if (!string.IsNullOrEmpty(alert.Source)) @if (!string.IsNullOrEmpty(alert.Source))
{ {
<span class="ml-5 mr-5">&#8226;</span> <span class="ml-5 mr-5">&#8226;</span>

View File

@ -136,7 +136,6 @@
</a> </a>
</div> </div>
</div> </div>
</nav> </nav>
<partial name="_LeftNavBar"/> <partial name="_LeftNavBar"/>

View File

@ -29,7 +29,7 @@
$('#console_command_response').append(`<div class="text-danger">${escapeHtml(item)}</div>`); $('#console_command_response').append(`<div class="text-danger">${escapeHtml(item)}</div>`);
}) })
} else { } else {
$('#console_command_response').append(`<div class="text-danger">Could not execute command...</div>`); $('#console_command_response').append(`<div class="text-danger">${_localization['WEBFRONT_SCRIPT_CONSOLE_ERROR']}</div>`);
} }
}); });
} }