From 0a0f69c66441f396e778fc43c71a4a117f5d03ca Mon Sep 17 00:00:00 2001 From: SimplestStudio Date: Wed, 15 Jan 2025 13:30:37 +0200 Subject: [PATCH] [win-linux] updatesvc: add new lines to translations --- win-linux/extras/update-daemon/res/langs/langs.iss | 6 ++++++ win-linux/extras/update-daemon/src/classes/csvcmanager.cpp | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/win-linux/extras/update-daemon/res/langs/langs.iss b/win-linux/extras/update-daemon/res/langs/langs.iss index 02509801c..a8ec5927c 100644 --- a/win-linux/extras/update-daemon/res/langs/langs.iss +++ b/win-linux/extras/update-daemon/res/langs/langs.iss @@ -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! diff --git a/win-linux/extras/update-daemon/src/classes/csvcmanager.cpp b/win-linux/extras/update-daemon/src/classes/csvcmanager.cpp index 2b538c4cb..3c7f330f1 100644 --- a/win-linux/extras/update-daemon/src/classes/csvcmanager.cpp +++ b/win-linux/extras/update-daemon/src/classes/csvcmanager.cpp @@ -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; }