From 33a00d435cb9022703f9ee2041ec9458b16ec4ed Mon Sep 17 00:00:00 2001 From: Conor Barr Date: Fri, 22 Apr 2022 20:50:40 -0400 Subject: [PATCH] Copyright year updates automatically --- AcManager/AppStrings.Designer.cs | 6 +++--- AcManager/AppStrings.resx | 4 ++-- AcManager/Pages/About/AboutPage.xaml | 3 ++- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/AcManager/AppStrings.Designer.cs b/AcManager/AppStrings.Designer.cs index acf3c0936..309461235 100644 --- a/AcManager/AppStrings.Designer.cs +++ b/AcManager/AppStrings.Designer.cs @@ -79,11 +79,11 @@ public static string About_ContactUsHeader { } /// - /// Looks up a localized string similar to Copyright © 2016–2020 AcClub.. + /// Looks up a localized string similar to Copyright © 2016–{0:yyyy} AcClub.. /// - public static string About_Copyright { + public static string About_CopyrightFormat { get { - return ResourceManager.GetString("About_Copyright", resourceCulture); + return ResourceManager.GetString("About_CopyrightFormat", resourceCulture); } } diff --git a/AcManager/AppStrings.resx b/AcManager/AppStrings.resx index 1ece625d7..351e8632e 100644 --- a/AcManager/AppStrings.resx +++ b/AcManager/AppStrings.resx @@ -3293,8 +3293,8 @@ But if you don't want to waste 200 MB: TIFF image, 96 bit per pixel, ZIP Content Manager is made possible by some [url="/Pages/About/Credits.xaml|_top"]open source and not only software[/url]. Content Manager [url="/Pages/About/License.xaml|_top"]License[/url]. - - Copyright © 2016–2020 AcClub. + + Copyright © 2016–{0:yyyy} AcClub. Mark all as read diff --git a/AcManager/Pages/About/AboutPage.xaml b/AcManager/Pages/About/AboutPage.xaml index 1bc490457..9855708fb 100644 --- a/AcManager/Pages/About/AboutPage.xaml +++ b/AcManager/Pages/About/AboutPage.xaml @@ -3,6 +3,7 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mui="http://firstfloorsoftware.com/ModernUI" xmlns:ab="clr-namespace:AcManager.Pages.About" xmlns:g="clr-namespace:AcManager" xmlns:t="http://acstuff.ru/app/tools" xmlns:c="http://acstuff.ru/app/controls" xmlns:at="clr-namespace:AcTools;assembly=AcTools" mc:Ignorable="d" FocusVisualStyle="{x:Null}" + xmlns:sys="clr-namespace:System;assembly=mscorlib" d:DataContext="{d:DesignInstance ab:AboutPage+ViewModel}"> @@ -90,7 +91,7 @@ + Text="{Binding Source={x:Static sys:DateTime.Now}, StringFormat={x:Static g:AppStrings.About_CopyrightFormat}}" />