Skip to content

Commit

Permalink
Added the localized version string to the FrmAbout form.
Browse files Browse the repository at this point in the history
  • Loading branch information
xvitaly committed Jan 3, 2025
1 parent 5eab3cc commit b7c28a6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/mhed/AppStrings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/mhed/AppStrings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -270,4 +270,7 @@
<data name="AHE_IncorrectComment" xml:space="preserve">
<value>Incorrect comment entered!</value>
</data>
<data name="AHE_Version" xml:space="preserve">
<value>Version: {0}</value>
</data>
</root>
3 changes: 3 additions & 0 deletions src/mhed/AppStrings.ru.resx
Original file line number Diff line number Diff line change
Expand Up @@ -270,4 +270,7 @@
<data name="AHE_IncorrectComment" xml:space="preserve">
<value>Введён недействительный комментарий!</value>
</data>
<data name="AHE_Version" xml:space="preserve">
<value>Версия: {0}</value>
</data>
</root>
2 changes: 1 addition & 1 deletion src/mhed/FrmAbout.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b7c28a6

Please sign in to comment.