Skip to content

Commit

Permalink
Refactoring: renamed the debug and localization strings used in the I…
Browse files Browse the repository at this point in the history
…nstallBinaryUpdate() private method of the FrmUpdate class.
  • Loading branch information
xvitaly committed Jan 24, 2025
1 parent bf5f1af commit de24ea3
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 22 deletions.
18 changes: 9 additions & 9 deletions src/mhed/AppStrings.Designer.cs

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

2 changes: 1 addition & 1 deletion src/mhed/AppStrings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@
<data name="AF_Version" xml:space="preserve">
<value>Version: {0}</value>
</data>
<data name="UP_UpdateFailure" xml:space="preserve">
<data name="UP_StartUpdateInstallerFailure" xml:space="preserve">
<value>An error occurred while trying to run the installer of the new version! The application has not been updated.</value>
</data>
<data name="UP_InstallUpdateError" xml:space="preserve">
Expand Down
2 changes: 1 addition & 1 deletion src/mhed/AppStrings.ru.resx
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@
<data name="AF_Version" xml:space="preserve">
<value>Версия: {0}</value>
</data>
<data name="UP_UpdateFailure" xml:space="preserve">
<data name="UP_StartUpdateInstallerFailure" xml:space="preserve">
<value>Произошла ошибка при попытке запуска модуля установки новой версии! Программа не была обновлена.</value>
</data>
<data name="UP_InstallUpdateError" xml:space="preserve">
Expand Down
12 changes: 6 additions & 6 deletions src/mhed/DebugStrings.Designer.cs

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

6 changes: 3 additions & 3 deletions src/mhed/DebugStrings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,12 @@
<data name="AppDbgExUpDeleteFile" xml:space="preserve">
<value>Exception when trying to delete the downloaded file with an incorrect hash.</value>
</data>
<data name="AppDbgExUpInstallBinaryUpdate" xml:space="preserve">
<value>Exception while trying to run the installer of the new version.</value>
</data>
<data name="AppDbgExUpInstallUpdate" xml:space="preserve">
<value>Exception while trying to download and install the application update.</value>
</data>
<data name="AppDbgExUpStartUpdateInstaller" xml:space="preserve">
<value>Exception while trying to run the installer of the new version.</value>
</data>
<data name="AppDbgHostsFileDoesNotExists" xml:space="preserve">
<value>Hosts file does not exists.</value>
</data>
Expand Down
4 changes: 2 additions & 2 deletions src/mhed/FrmUpdate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ private bool InstallBinaryUpdate()
}
catch (Exception Ex)
{
Logger.Error(Ex, DebugStrings.AppDbgExUpInstallBinaryUpdate);
MessageBox.Show(AppStrings.UP_UpdateFailure, Properties.Resources.AppName, MessageBoxButtons.OK, MessageBoxIcon.Error);
Logger.Error(Ex, DebugStrings.AppDbgExUpStartUpdateInstaller);
MessageBox.Show(AppStrings.UP_StartUpdateInstallerFailure, Properties.Resources.AppName, MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
else
Expand Down

0 comments on commit de24ea3

Please sign in to comment.