Skip to content

Commit

Permalink
[win-linux] updatesvc: add new lines to translations
Browse files Browse the repository at this point in the history
  • Loading branch information
SimplestStudio committed Jan 15, 2025
1 parent 8fc3636 commit 0a0f69c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions win-linux/extras/update-daemon/res/langs/langs.iss
Original file line number Diff line number Diff line change
Expand Up @@ -756,3 +756,9 @@ sr_Cyrl_RS.MESSAGE_TEXT_ERR17 =ServiceCtrlDispatcher повратна грешк
he.MESSAGE_TEXT_ERR17 =ServiceCtrlDispatcher החזיר שגיאה:

en.MESSAGE_TEXT_ERR18 =An error occurred while start install updates!

en.MESSAGE_TEXT_ERR19 =Update cancelled. Can't rename updatesvc to ~updatesvc:
en.MESSAGE_TEXT_ERR20 =Update cancelled. Can't replace file updatesvc to app path:

en.MESSAGE_TEXT_ERR21 =Can't restore file updatesvc!
6 changes: 3 additions & 3 deletions win-linux/extras/update-daemon/src/classes/csvcmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -869,15 +869,15 @@ void CSvcManager::startReplacingService(const bool restartAfterUpdate)

// Rename updatesvc.exe to ~updatesvc.exe
if (NS_File::fileExists(appPath + DAEMON_NAME) && !NS_File::replaceFile(appPath + DAEMON_NAME, appPath + DAEMON_NAME_OLD)) {
NS_Logger::WriteLog(_TR("Update cancelled. Can't rename updatesvc.exe to ~updatesvc.exe:") + _T(" ") + NS_Utils::GetLastErrorAsString(), true);
NS_Logger::WriteLog(_TR(MESSAGE_TEXT_ERR19) + _T(" ") + NS_Utils::GetLastErrorAsString(), true);
return;
}

// Move updatesvc.exe to app path
if (!NS_File::replaceFile(updSubPath + DAEMON_NAME, appPath + DAEMON_NAME)) {
NS_Logger::WriteLog(_TR("Update cancelled. Can't replace file updatesvc.exe to app path:") + _T(" ") + NS_Utils::GetLastErrorAsString(), true);
NS_Logger::WriteLog(_TR(MESSAGE_TEXT_ERR20) + _T(" ") + NS_Utils::GetLastErrorAsString(), true);
if (NS_File::fileExists(appPath + DAEMON_NAME_OLD) && !NS_File::replaceFile(appPath + DAEMON_NAME_OLD, appPath + DAEMON_NAME))
NS_Logger::WriteLog(_TR("Can't restore file updatesvc.exe!"), true);
NS_Logger::WriteLog(_TR(MESSAGE_TEXT_ERR21), true);
return;
}

Expand Down

0 comments on commit 0a0f69c

Please sign in to comment.