From 77d25890da1556a4a188d51fde60698f9aadd66a Mon Sep 17 00:00:00 2001 From: RaidMax Date: Tue, 5 Jul 2022 12:42:17 -0500 Subject: [PATCH] clean up some more translations --- WebfrontCore/Controllers/Client/ClientController.cs | 2 +- WebfrontCore/Controllers/Client/Legacy/StatsController.cs | 2 +- WebfrontCore/Views/Admin/BanManagement.cshtml | 2 +- WebfrontCore/Views/Admin/_ListAuditLog.cshtml | 4 ++-- WebfrontCore/Views/Client/Find/Index.cshtml | 3 +-- WebfrontCore/Views/Client/Message/Find.cshtml | 2 +- WebfrontCore/Views/Client/Message/_Item.cshtml | 4 ++-- WebfrontCore/Views/Client/Privileged/Index.cshtml | 3 +-- .../Client/Profile/Meta/_AdministeredPenaltyResponse.cshtml | 1 - WebfrontCore/Views/Client/Profile/Meta/_Information.cshtml | 1 - WebfrontCore/Views/Client/Statistics/Index.cshtml | 2 +- WebfrontCore/Views/Penalty/_List.cshtml | 4 ++-- WebfrontCore/Views/Server/Scoreboard.cshtml | 2 +- WebfrontCore/Views/Shared/Partials/_Notifications.cshtml | 4 ++-- WebfrontCore/Views/Shared/_Layout.cshtml | 1 - WebfrontCore/wwwroot/js/console.js | 2 +- 16 files changed, 17 insertions(+), 22 deletions(-) diff --git a/WebfrontCore/Controllers/Client/ClientController.cs b/WebfrontCore/Controllers/Client/ClientController.cs index 4ffb6f28..9c812a0e 100644 --- a/WebfrontCore/Controllers/Client/ClientController.cs +++ b/WebfrontCore/Controllers/Client/ClientController.cs @@ -210,7 +210,7 @@ namespace WebfrontCore.Controllers ViewBag.SearchTerm = clientName; ViewBag.ResultCount = clientsDto.Count; - ViewBag.Title = "Search Results"; + ViewBag.Title = Localization["WEBFRONT_SEARCH_RESULTS_TITLE"]; return View("Find/Index", clientsDto); } diff --git a/WebfrontCore/Controllers/Client/Legacy/StatsController.cs b/WebfrontCore/Controllers/Client/Legacy/StatsController.cs index 9786e7fb..4c3012ac 100644 --- a/WebfrontCore/Controllers/Client/Legacy/StatsController.cs +++ b/WebfrontCore/Controllers/Client/Legacy/StatsController.cs @@ -221,7 +221,7 @@ namespace IW4MAdmin.Plugins.Web.StatsWeb.Controllers { return View("~/Views/Client/_MessageContext.cshtml", new List { - new MessageResponse() + new() { ClientId = penalty.OffenderId, Message = penalty.AutomatedOffense, diff --git a/WebfrontCore/Views/Admin/BanManagement.cshtml b/WebfrontCore/Views/Admin/BanManagement.cshtml index 0e0bc011..acac370a 100644 --- a/WebfrontCore/Views/Admin/BanManagement.cshtml +++ b/WebfrontCore/Views/Admin/BanManagement.cshtml @@ -4,7 +4,7 @@

@ViewBag.Title

@if (!Model.Any()) { -
Search for records...
+
@ViewBag.Localization["WEBFRONT_BAN_MGMT_SUBTITLE"]
}
diff --git a/WebfrontCore/Views/Admin/_ListAuditLog.cshtml b/WebfrontCore/Views/Admin/_ListAuditLog.cshtml index 309bcf6a..b52bdc53 100644 --- a/WebfrontCore/Views/Admin/_ListAuditLog.cshtml +++ b/WebfrontCore/Views/Admin/_ListAuditLog.cshtml @@ -30,7 +30,7 @@ @info.Data - + @info.NewValue @@ -63,7 +63,7 @@ {
} -
@info.Data
+
@info.Data
@info.NewValue
@info.When
diff --git a/WebfrontCore/Views/Client/Find/Index.cshtml b/WebfrontCore/Views/Client/Find/Index.cshtml index 8b961a57..9d60140d 100644 --- a/WebfrontCore/Views/Client/Find/Index.cshtml +++ b/WebfrontCore/Views/Client/Find/Index.cshtml @@ -5,9 +5,8 @@
-

@ViewBag.Localization["WEBFRONT_SEARCH_RESULTS_TITLE"]

+

@loc["WEBFRONT_SEARCH_RESULTS_TITLE"]

- @foreach (var match in Utilities.SplitTranslationTokens("WEBFRONT_SEARCH_RESULTS_SUBTITLE_FORMAT")) { if (match.IsInterpolation) diff --git a/WebfrontCore/Views/Client/Message/Find.cshtml b/WebfrontCore/Views/Client/Message/Find.cshtml index 8ed16192..aa5515c5 100644 --- a/WebfrontCore/Views/Client/Message/Find.cshtml +++ b/WebfrontCore/Views/Client/Message/Find.cshtml @@ -27,7 +27,7 @@ else
- +
@section scripts { diff --git a/WebfrontCore/Views/Client/Message/_Item.cshtml b/WebfrontCore/Views/Client/Message/_Item.cshtml index 31af306e..afad0cf4 100644 --- a/WebfrontCore/Views/Client/Message/_Item.cshtml +++ b/WebfrontCore/Views/Client/Message/_Item.cshtml @@ -24,7 +24,7 @@ - @message.When + @message.When.ToStandardFormat() @@ -53,7 +53,7 @@
-
@message.When
+
@message.When.ToStandardFormat()
} diff --git a/WebfrontCore/Views/Client/Privileged/Index.cshtml b/WebfrontCore/Views/Client/Privileged/Index.cshtml index d6b2c8c5..4241cc79 100644 --- a/WebfrontCore/Views/Client/Privileged/Index.cshtml +++ b/WebfrontCore/Views/Client/Privileged/Index.cshtml @@ -2,14 +2,13 @@

@ViewBag.Title

- @foreach (var key in Model.Keys) { - + diff --git a/WebfrontCore/Views/Client/Profile/Meta/_AdministeredPenaltyResponse.cshtml b/WebfrontCore/Views/Client/Profile/Meta/_AdministeredPenaltyResponse.cshtml index 00251b30..7f47685d 100644 --- a/WebfrontCore/Views/Client/Profile/Meta/_AdministeredPenaltyResponse.cshtml +++ b/WebfrontCore/Views/Client/Profile/Meta/_AdministeredPenaltyResponse.cshtml @@ -41,7 +41,6 @@ { } - } diff --git a/WebfrontCore/Views/Client/Profile/Meta/_Information.cshtml b/WebfrontCore/Views/Client/Profile/Meta/_Information.cshtml index 7b95b532..fd33a204 100644 --- a/WebfrontCore/Views/Client/Profile/Meta/_Information.cshtml +++ b/WebfrontCore/Views/Client/Profile/Meta/_Information.cshtml @@ -41,6 +41,5 @@ } } - } diff --git a/WebfrontCore/Views/Client/Statistics/Index.cshtml b/WebfrontCore/Views/Client/Statistics/Index.cshtml index ff740764..e4fef954 100644 --- a/WebfrontCore/Views/Client/Statistics/Index.cshtml +++ b/WebfrontCore/Views/Client/Statistics/Index.cshtml @@ -6,7 +6,7 @@

@ViewBag.Localization["WEBFRONT_TOP_PLAYERS_TITLE"]

- — @ViewBag.TotalRankedClients.ToString("#,##0") Ranked Players + — @ViewBag.TotalRankedClients.ToString("#,##0") @ViewBag.Localization["WEBFRONT_TOP_PLAYERS_SUBTITLE"]
diff --git a/WebfrontCore/Views/Penalty/_List.cshtml b/WebfrontCore/Views/Penalty/_List.cshtml index cbe88588..9e4534c5 100644 --- a/WebfrontCore/Views/Penalty/_List.cshtml +++ b/WebfrontCore/Views/Penalty/_List.cshtml @@ -1,7 +1,7 @@ -@{ +@{ Layout = null; } @model WebfrontCore.ViewModels.PenaltyFilterInfo -@await Component.InvokeAsync("PenaltyList", new { offset = Model.Offset, count= Model.Count, showOnly = Model.ShowOnly, ignoreAutomated = Model.IgnoreAutomated }) +@await Component.InvokeAsync("PenaltyList", new { offset = Model.Offset, count = Model.Count, showOnly = Model.ShowOnly, ignoreAutomated = Model.IgnoreAutomated }) diff --git a/WebfrontCore/Views/Server/Scoreboard.cshtml b/WebfrontCore/Views/Server/Scoreboard.cshtml index 2dad568e..07d7a5e9 100644 --- a/WebfrontCore/Views/Server/Scoreboard.cshtml +++ b/WebfrontCore/Views/Server/Scoreboard.cshtml @@ -8,7 +8,7 @@
@if (Model is not null) { -
+
} diff --git a/WebfrontCore/Views/Shared/Partials/_Notifications.cshtml b/WebfrontCore/Views/Shared/Partials/_Notifications.cshtml index bfc1bbff..a550c426 100644 --- a/WebfrontCore/Views/Shared/Partials/_Notifications.cshtml +++ b/WebfrontCore/Views/Shared/Partials/_Notifications.cshtml @@ -13,7 +13,7 @@
@key.ToLocalizedLevelName()Game@ViewBag.Localization["WEBFRONT_CONTEXT_MENU_GLOBAL_GAME"] @ViewBag.Localization["WEBFRONT_SEARCH_LAST_CONNECTED"]