From b7c28a617938f50f83efd9faf83f91d0ac1f17d7 Mon Sep 17 00:00:00 2001 From: Vitaly Date: Fri, 3 Jan 2025 14:57:05 +0100 Subject: [PATCH] Added the localized version string to the FrmAbout form. --- src/mhed/AppStrings.Designer.cs | 9 +++++++++ src/mhed/AppStrings.resx | 3 +++ src/mhed/AppStrings.ru.resx | 3 +++ src/mhed/FrmAbout.cs | 2 +- 4 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/mhed/AppStrings.Designer.cs b/src/mhed/AppStrings.Designer.cs index be65b39..4d0dbf9 100644 --- a/src/mhed/AppStrings.Designer.cs +++ b/src/mhed/AppStrings.Designer.cs @@ -510,6 +510,15 @@ internal static string AHE_UrlOpenError { } } + /// + /// Looks up a localized string similar to Version: {0}. + /// + internal static string AHE_Version { + get { + return ResourceManager.GetString("AHE_Version", resourceCulture); + } + } + /// /// Looks up a localized string similar to Checking for updates... Please wait!. /// diff --git a/src/mhed/AppStrings.resx b/src/mhed/AppStrings.resx index c618a41..8b03b78 100644 --- a/src/mhed/AppStrings.resx +++ b/src/mhed/AppStrings.resx @@ -270,4 +270,7 @@ Incorrect comment entered! + + Version: {0} + \ No newline at end of file diff --git a/src/mhed/AppStrings.ru.resx b/src/mhed/AppStrings.ru.resx index 725266c..e26b295 100644 --- a/src/mhed/AppStrings.ru.resx +++ b/src/mhed/AppStrings.ru.resx @@ -270,4 +270,7 @@ Введён недействительный комментарий! + + Версия: {0} + \ No newline at end of file diff --git a/src/mhed/FrmAbout.cs b/src/mhed/FrmAbout.cs index 046aee6..8c846c6 100644 --- a/src/mhed/FrmAbout.cs +++ b/src/mhed/FrmAbout.cs @@ -32,7 +32,7 @@ private void FrmAbout_Load(object sender, EventArgs e) { // Adding information about product version and copyrights... AHE_AppName.Text = CurrentApp.AppProduct; - AHE_Version.Text = string.Format("Version: {0}", CurrentApp.AppVersion); + AHE_Version.Text = string.Format(AppStrings.AHE_Version, CurrentApp.AppVersion); AHE_Copyright.Text = CurrentApp.AppCopyright; AHE_CompanyName.Text = CurrentApp.AppCompany; }