translations: multi-line and special symbols support

This commit is contained in:
2024-11-03 18:12:32 +03:00
parent 1106cde3e4
commit 73ed51e3d4
4 changed files with 44 additions and 19 deletions

View File

@@ -19,13 +19,14 @@
#include "pisystemmonitor.h"
#include <unistd.h>
#include "pidir.h"
#include "piliterals_string.h"
#include "piprocess.h"
#include "pisysteminfo.h"
#include "pitime_win.h"
#include "pitranslator.h"
#include <unistd.h>
#ifdef WINDOWS
# include <psapi.h>
# include <tlhelp32.h>
@@ -114,7 +115,7 @@ bool PISystemMonitor::startOnProcess(int pID, PISystemTime interval) {
# else
PRIVATE->hProc = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, pID_);
if (PRIVATE->hProc == 0) {
piCoutObj << "Can`t open process with ID = " << pID_ << "," << errorString();
piCoutObj << "Can`t open process with ID = "_tr << pID_ << "," << errorString();
return false;
}
PRIVATE->tm.reset();