From b5a52747421455cd96b19078634ca68c940277d3 Mon Sep 17 00:00:00 2001 From: Andrei Kurosh Date: Thu, 25 Apr 2024 21:43:42 +0200 Subject: [PATCH] Various localization fixes. --- src/Bonsai/Areas/Admin/Views/Changesets/Index.cshtml | 2 +- src/Bonsai/Areas/Admin/Views/Pages/Editor.cshtml | 4 ++-- .../Areas/Admin/Views/Pages/Facts/ContactsFactModel.cshtml | 4 ++-- .../Areas/Front/Views/Page/Facts/ContactsFactModel.cshtml | 4 ++-- .../Areas/Front/Views/Page/Facts/LanguageFactModel.cshtml | 4 ++-- src/Bonsai/Areas/Front/Views/Page/Facts/SkillFactModel.cshtml | 4 ++-- src/Bonsai/Areas/Front/Views/Page/Tree.cshtml | 4 ++-- src/Bonsai/Localization/Texts.Designer.cs | 2 +- 8 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/Bonsai/Areas/Admin/Views/Changesets/Index.cshtml b/src/Bonsai/Areas/Admin/Views/Changesets/Index.cshtml index a4aa51fc..8c8db4a1 100644 --- a/src/Bonsai/Areas/Admin/Views/Changesets/Index.cshtml +++ b/src/Bonsai/Areas/Admin/Views/Changesets/Index.cshtml @@ -107,7 +107,7 @@ } @c.Date.Humanize() - @c.ChangeType.GetEnumDescription() + @c.ChangeType.GetLocaleEnumDescription() @c.Author @if (c.CanRevert) diff --git a/src/Bonsai/Areas/Admin/Views/Pages/Editor.cshtml b/src/Bonsai/Areas/Admin/Views/Pages/Editor.cshtml index 6abf9576..0ecbbd35 100644 --- a/src/Bonsai/Areas/Admin/Views/Pages/Editor.cshtml +++ b/src/Bonsai/Areas/Admin/Views/Pages/Editor.cshtml @@ -171,7 +171,7 @@ @if (data.DraftLastUpdateDate is DateTimeOffset draftDate) { var today = draftDate.Date == DateTimeOffset.Now.Date; - @string.Format(@Texts.Admin_Pages_Editor_DraftLoadedFormat, data.DraftLastUpdateDate.Value.ToString(today ? "T" : "G", LocaleProvider.GetCulture())) + @string.Format(Texts.Admin_Pages_Editor_DraftLoadedFormat, data.DraftLastUpdateDate.Value.ToString(today ? "T" : "G", LocaleProvider.GetCulture())) } @if (data.DraftDisplayNotification) @@ -194,7 +194,7 @@ @await Html.PartialAsync("~/Areas/Admin/Views/Components/PagePicker.cshtml")