FIX: translation problem

jira: [STUDIO-11370]
Change-Id: I22bfc3c1805ac4ea9803cadaeec74a3787bec29f
This commit is contained in:
xin.zhang 2025-04-29 15:59:08 +08:00 committed by lane.wei
parent 94b6e7b78b
commit d702c290e0

View File

@ -1127,9 +1127,9 @@ void PrinterFileSystem::RequestUploadFile()
if (result != SUCCESS && result != CONTINUE && result != FILE_EXIST) {
std::string error_msg = "";
if (result == ERROR_CANCEL) {
error_msg = L("User cancels task.");
error_msg = _L("User cancels task.").ToStdString();
} else if (result == FILE_READ_WRITE_ERR || result == FILE_OPEN_ERR) {
error_msg = L("Failed to read file, please try again.");
error_msg = _L("Failed to read file, please try again.").ToStdString();
}
wxLogWarning("PrinterFileSystem::UploadFile error: %d\n", result);
SendChangedEvent(EVT_UPLOAD_CHANGED, FF_UPLOADCANCEL, error_msg, result);