Changeset 90828 in vbox for trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp
- Timestamp:
- Aug 24, 2021 9:44:46 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 146463
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp
r84975 r90828 267 267 { 268 268 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 269 Utf8StrFmt( GuestSession::tr("Guest directory \"%s\" already exists"), strPath.c_str()));269 Utf8StrFmt(tr("Guest directory \"%s\" already exists"), strPath.c_str())); 270 270 rc = VERR_ALREADY_EXISTS; 271 271 } … … 292 292 if (RT_FAILURE(rc)) 293 293 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 294 Utf8StrFmt( GuestSession::tr("Guest error creating directory \"%s\" on the guest: %Rrc"),294 Utf8StrFmt(tr("Guest error creating directory \"%s\" on the guest: %Rrc"), 295 295 strPath.c_str(), rcGuest)); 296 296 break; … … 299 299 default: 300 300 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 301 Utf8StrFmt( GuestSession::tr("Host error creating directory \"%s\" on the guest: %Rrc"),301 Utf8StrFmt(tr("Host error creating directory \"%s\" on the guest: %Rrc"), 302 302 strPath.c_str(), rc)); 303 303 break; … … 330 330 { 331 331 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 332 Utf8StrFmt( GuestSession::tr("Host directory \"%s\" already exists"), strPath.c_str()));332 Utf8StrFmt(tr("Host directory \"%s\" already exists"), strPath.c_str())); 333 333 } 334 334 else … … 337 337 else 338 338 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 339 Utf8StrFmt( GuestSession::tr("Could not create host directory \"%s\": %Rrc"),339 Utf8StrFmt(tr("Could not create host directory \"%s\": %Rrc"), 340 340 strPath.c_str(), rc)); 341 341 } … … 378 378 { 379 379 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 380 Utf8StrFmt( GuestSession::tr("Seeking to offset %RU64 of guest file \"%s\" failed: %Rrc"),380 Utf8StrFmt(tr("Seeking to offset %RU64 of guest file \"%s\" failed: %Rrc"), 381 381 offCopy, strSrcFile.c_str(), rc)); 382 382 return rc; … … 393 393 { 394 394 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 395 Utf8StrFmt( GuestSession::tr("Reading %RU32 bytes @ %RU64 from guest \"%s\" failed: %Rrc"),395 Utf8StrFmt(tr("Reading %RU32 bytes @ %RU64 from guest \"%s\" failed: %Rrc"), 396 396 cbChunk, cbWrittenTotal, strSrcFile.c_str(), rc)); 397 397 break; … … 402 402 { 403 403 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 404 Utf8StrFmt( GuestSession::tr("Writing %RU32 bytes to host file \"%s\" failed: %Rrc"),404 Utf8StrFmt(tr("Writing %RU32 bytes to host file \"%s\" failed: %Rrc"), 405 405 cbRead, strDstFile.c_str(), rc)); 406 406 break; … … 441 441 * to the destination -> access denied. */ 442 442 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 443 Utf8StrFmt( GuestSession::tr("Writing guest file \"%s\" to host file \"%s\" failed: Access denied"),443 Utf8StrFmt(tr("Writing guest file \"%s\" to host file \"%s\" failed: Access denied"), 444 444 strSrcFile.c_str(), strDstFile.c_str())); 445 445 rc = VERR_ACCESS_DENIED; … … 449 449 /* If we did not copy all let the user know. */ 450 450 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 451 Utf8StrFmt( GuestSession::tr("Copying guest file \"%s\" to host file \"%s\" failed (%RU64/%RU64 bytes transfered)"),451 Utf8StrFmt(tr("Copying guest file \"%s\" to host file \"%s\" failed (%RU64/%RU64 bytes transfered)"), 452 452 strSrcFile.c_str(), strDstFile.c_str(), cbWrittenTotal, cbSize)); 453 453 rc = VERR_INTERRUPTED; … … 484 484 { 485 485 if (rc == VERR_GSTCTL_GUEST_ERROR) 486 setProgressErrorMsg(VBOX_E_IPRT_ERROR, GuestSession::tr("Guest file lookup failed"),486 setProgressErrorMsg(VBOX_E_IPRT_ERROR, tr("Guest file lookup failed"), 487 487 GuestErrorInfo(GuestErrorInfo::Type_ToolStat, rcGuest, strSrc.c_str())); 488 488 else 489 489 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 490 Utf8StrFmt( GuestSession::tr("Guest file lookup for \"%s\" failed: %Rrc"), strSrc.c_str(), rc));490 Utf8StrFmt(tr("Guest file lookup for \"%s\" failed: %Rrc"), strSrc.c_str(), rc)); 491 491 } 492 492 else … … 501 501 { 502 502 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 503 Utf8StrFmt( GuestSession::tr("Guest file \"%s\" is a symbolic link"),503 Utf8StrFmt(tr("Guest file \"%s\" is a symbolic link"), 504 504 strSrc.c_str())); 505 505 rc = VERR_IS_A_SYMLINK; … … 509 509 default: 510 510 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 511 Utf8StrFmt( GuestSession::tr("Guest object \"%s\" is not a file (is type %#x)"),511 Utf8StrFmt(tr("Guest object \"%s\" is not a file (is type %#x)"), 512 512 strSrc.c_str(), srcObjData.mType)); 513 513 rc = VERR_NOT_A_FILE; … … 523 523 { 524 524 if (rc == VERR_GSTCTL_GUEST_ERROR) 525 setProgressErrorMsg(VBOX_E_IPRT_ERROR, GuestSession::tr("Guest file could not be opened"),525 setProgressErrorMsg(VBOX_E_IPRT_ERROR, tr("Guest file could not be opened"), 526 526 GuestErrorInfo(GuestErrorInfo::Type_File, rcGuest, strSrc.c_str())); 527 527 else 528 528 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 529 Utf8StrFmt( GuestSession::tr("Guest file \"%s\" could not be opened: %Rrc"), strSrc.c_str(), rc));529 Utf8StrFmt(tr("Guest file \"%s\" could not be opened: %Rrc"), strSrc.c_str(), rc)); 530 530 } 531 531 … … 546 546 { 547 547 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 548 Utf8StrFmt( GuestSession::tr("Host file \"%s\" already exists"), strDst.c_str()));548 Utf8StrFmt(tr("Host file \"%s\" already exists"), strDst.c_str())); 549 549 rc = VERR_ALREADY_EXISTS; 550 550 } … … 565 565 if (rc != VERR_FILE_NOT_FOUND) /* Destination file does not exist (yet)? */ 566 566 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 567 Utf8StrFmt( GuestSession::tr("Host file lookup for \"%s\" failed: %Rrc"),567 Utf8StrFmt(tr("Host file lookup for \"%s\" failed: %Rrc"), 568 568 strDst.c_str(), rc)); 569 569 } … … 586 586 { 587 587 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 588 Utf8StrFmt( GuestSession::tr("Host file \"%s\" already exists"), strDst.c_str()));588 Utf8StrFmt(tr("Host file \"%s\" already exists"), strDst.c_str())); 589 589 rc = VERR_ALREADY_EXISTS; 590 590 } … … 609 609 { 610 610 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 611 Utf8StrFmt( GuestSession::tr("Host file \"%s\" is a symbolic link"),611 Utf8StrFmt(tr("Host file \"%s\" is a symbolic link"), 612 612 strDst.c_str())); 613 613 rc = VERR_IS_A_SYMLINK; … … 630 630 if (!pszDstFile) 631 631 { 632 setProgressErrorMsg(VBOX_E_IPRT_ERROR, Utf8StrFmt( GuestSession::tr("No memory to allocate host file path")));632 setProgressErrorMsg(VBOX_E_IPRT_ERROR, Utf8StrFmt(tr("No memory to allocate host file path"))); 633 633 rc = VERR_NO_MEMORY; 634 634 } … … 651 651 else 652 652 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 653 Utf8StrFmt( GuestSession::tr("Opening/creating host file \"%s\" failed: %Rrc"),653 Utf8StrFmt(tr("Opening/creating host file \"%s\" failed: %Rrc"), 654 654 pszDstFile, rc)); 655 655 } … … 698 698 { 699 699 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 700 Utf8StrFmt( GuestSession::tr("Seeking to offset %RU64 of host file \"%s\" failed: %Rrc"),700 Utf8StrFmt(tr("Seeking to offset %RU64 of host file \"%s\" failed: %Rrc"), 701 701 offCopy, strSrcFile.c_str(), rc)); 702 702 return rc; … … 713 713 { 714 714 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 715 Utf8StrFmt( GuestSession::tr("Reading %RU32 bytes @ %RU64 from host file \"%s\" failed: %Rrc"),715 Utf8StrFmt(tr("Reading %RU32 bytes @ %RU64 from host file \"%s\" failed: %Rrc"), 716 716 cbChunk, cbWrittenTotal, strSrcFile.c_str(), rc)); 717 717 break; … … 722 722 { 723 723 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 724 Utf8StrFmt( GuestSession::tr("Writing %zu bytes to guest file \"%s\" failed: %Rrc"),724 Utf8StrFmt(tr("Writing %zu bytes to guest file \"%s\" failed: %Rrc"), 725 725 cbRead, strDstFile.c_str(), rc)); 726 726 break; … … 757 757 * to the destination -> access denied. */ 758 758 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 759 Utf8StrFmt( GuestSession::tr("Writing to guest file \"%s\" failed: Access denied"),759 Utf8StrFmt(tr("Writing to guest file \"%s\" failed: Access denied"), 760 760 strDstFile.c_str())); 761 761 rc = VERR_ACCESS_DENIED; … … 765 765 /* If we did not copy all let the user know. */ 766 766 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 767 Utf8StrFmt( GuestSession::tr("Copying to guest file \"%s\" failed (%RU64/%RU64 bytes transfered)"),767 Utf8StrFmt(tr("Copying to guest file \"%s\" failed (%RU64/%RU64 bytes transfered)"), 768 768 strDstFile.c_str(), cbWrittenTotal, cbSize)); 769 769 rc = VERR_INTERRUPTED; … … 803 803 { 804 804 if (rc == VERR_GSTCTL_GUEST_ERROR) 805 setProgressErrorMsg(VBOX_E_IPRT_ERROR, GuestSession::tr("Guest file could not be opened"),805 setProgressErrorMsg(VBOX_E_IPRT_ERROR, tr("Guest file could not be opened"), 806 806 GuestErrorInfo(GuestErrorInfo::Type_File, rcGuest, strSrc.c_str())); 807 807 else 808 808 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 809 Utf8StrFmt( GuestSession::tr("Guest file \"%s\" could not be opened: %Rrc"), strSrc.c_str(), rc));809 Utf8StrFmt(tr("Guest file \"%s\" could not be opened: %Rrc"), strSrc.c_str(), rc)); 810 810 return rc; 811 811 } … … 824 824 { 825 825 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 826 Utf8StrFmt( GuestSession::tr("Host path lookup for file \"%s\" failed: %Rrc"),826 Utf8StrFmt(tr("Host path lookup for file \"%s\" failed: %Rrc"), 827 827 strSrc.c_str(), rc)); 828 828 } … … 860 860 default: 861 861 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 862 Utf8StrFmt( GuestSession::tr("Guest error while determining object data for guest file \"%s\": %Rrc"),862 Utf8StrFmt(tr("Guest error while determining object data for guest file \"%s\": %Rrc"), 863 863 strDstFinal.c_str(), rcGuest)); 864 864 break; … … 867 867 else 868 868 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 869 Utf8StrFmt( GuestSession::tr("Host error while determining object data for guest file \"%s\": %Rrc"),869 Utf8StrFmt(tr("Host error while determining object data for guest file \"%s\": %Rrc"), 870 870 strDstFinal.c_str(), rc)); 871 871 } … … 875 875 { 876 876 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 877 Utf8StrFmt( GuestSession::tr("Host file lookup for \"%s\" failed: %Rrc"),877 Utf8StrFmt(tr("Host file lookup for \"%s\" failed: %Rrc"), 878 878 szSrcReal, rc)); 879 879 } … … 905 905 else 906 906 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 907 Utf8StrFmt( GuestSession::tr("Opening host file \"%s\" failed: %Rrc"),907 Utf8StrFmt(tr("Opening host file \"%s\" failed: %Rrc"), 908 908 szSrcReal, rc)); 909 909 } … … 1409 1409 if (mDest.isEmpty()) 1410 1410 { 1411 strErrorInfo = Utf8StrFmt( GuestSession::tr("Host destination must not be empty"));1411 strErrorInfo = Utf8StrFmt(tr("Host destination must not be empty")); 1412 1412 vrc = VERR_INVALID_PARAMETER; 1413 1413 } … … 1424 1424 if (strSrc.isEmpty()) 1425 1425 { 1426 strErrorInfo = Utf8StrFmt( GuestSession::tr("Guest source entry must not be empty"));1426 strErrorInfo = Utf8StrFmt(tr("Guest source entry must not be empty")); 1427 1427 vrc = VERR_INVALID_PARAMETER; 1428 1428 break; … … 1458 1458 { 1459 1459 if (vrc == VERR_GSTCTL_GUEST_ERROR) 1460 strErrorInfo = GuestBase::getErrorAsString( GuestSession::tr("Guest file lookup failed"),1460 strErrorInfo = GuestBase::getErrorAsString(tr("Guest file lookup failed"), 1461 1461 GuestErrorInfo(GuestErrorInfo::Type_ToolStat, rcGuest, strSrc.c_str())); 1462 1462 else 1463 strErrorInfo = Utf8StrFmt( GuestSession::tr("Guest file lookup for \"%s\" failed: %Rrc"),1463 strErrorInfo = Utf8StrFmt(tr("Guest file lookup for \"%s\" failed: %Rrc"), 1464 1464 strSrc.c_str(), vrc); 1465 1465 break; … … 1470 1470 if (itSrc->enmType != FsObjType_Directory) 1471 1471 { 1472 strErrorInfo = Utf8StrFmt( GuestSession::tr("Guest source is not a file: %s"), strSrc.c_str());1472 strErrorInfo = Utf8StrFmt(tr("Guest source is not a file: %s"), strSrc.c_str()); 1473 1473 vrc = VERR_NOT_A_FILE; 1474 1474 break; … … 1479 1479 if (itSrc->enmType != FsObjType_File) 1480 1480 { 1481 strErrorInfo = Utf8StrFmt( GuestSession::tr("Guest source is not a directory: %s"), strSrc.c_str());1481 strErrorInfo = Utf8StrFmt(tr("Guest source is not a directory: %s"), strSrc.c_str()); 1482 1482 vrc = VERR_NOT_A_DIRECTORY; 1483 1483 break; … … 1501 1501 { 1502 1502 delete pFsList; 1503 strErrorInfo = Utf8StrFmt( GuestSession::tr("Error adding guest source '%s' to list: %Rrc"),1503 strErrorInfo = Utf8StrFmt(tr("Error adding guest source '%s' to list: %Rrc"), 1504 1504 strSrc.c_str(), vrc); 1505 1505 break; … … 1537 1537 { 1538 1538 if (strErrorInfo.isEmpty()) 1539 strErrorInfo = Utf8StrFmt( GuestSession::tr("Failed with %Rrc"), vrc);1539 strErrorInfo = Utf8StrFmt(tr("Failed with %Rrc"), vrc); 1540 1540 setProgressErrorMsg(VBOX_E_IPRT_ERROR, strErrorInfo); 1541 1541 } … … 1679 1679 if (mDest.isEmpty()) 1680 1680 { 1681 strErrorInfo = Utf8StrFmt( GuestSession::tr("Guest destination must not be empty"));1681 strErrorInfo = Utf8StrFmt(tr("Guest destination must not be empty")); 1682 1682 rc = VERR_INVALID_PARAMETER; 1683 1683 } … … 1694 1694 if (strSrc.isEmpty()) 1695 1695 { 1696 strErrorInfo = Utf8StrFmt( GuestSession::tr("Host source entry must not be empty"));1696 strErrorInfo = Utf8StrFmt(tr("Host source entry must not be empty")); 1697 1697 rc = VERR_INVALID_PARAMETER; 1698 1698 break; … … 1703 1703 if (RT_FAILURE(rc)) 1704 1704 { 1705 strErrorInfo = Utf8StrFmt( GuestSession::tr("No such host file/directory: %s"), strSrc.c_str());1705 strErrorInfo = Utf8StrFmt(tr("No such host file/directory: %s"), strSrc.c_str()); 1706 1706 break; 1707 1707 } … … 1711 1711 if (itSrc->enmType != FsObjType_Directory) 1712 1712 { 1713 strErrorInfo = Utf8StrFmt( GuestSession::tr("Host source is not a file: %s"), strSrc.c_str());1713 strErrorInfo = Utf8StrFmt(tr("Host source is not a file: %s"), strSrc.c_str()); 1714 1714 rc = VERR_NOT_A_FILE; 1715 1715 break; … … 1720 1720 if (itSrc->enmType == FsObjType_Directory) 1721 1721 { 1722 strErrorInfo = Utf8StrFmt( GuestSession::tr("Host source is not a directory: %s"), strSrc.c_str());1722 strErrorInfo = Utf8StrFmt(tr("Host source is not a directory: %s"), strSrc.c_str()); 1723 1723 rc = VERR_NOT_A_DIRECTORY; 1724 1724 break; … … 1744 1744 { 1745 1745 delete pFsList; 1746 strErrorInfo = Utf8StrFmt( GuestSession::tr("Error adding host source '%s' to list: %Rrc"),1746 strErrorInfo = Utf8StrFmt(tr("Error adding host source '%s' to list: %Rrc"), 1747 1747 strSrc.c_str(), rc); 1748 1748 break; … … 1780 1780 { 1781 1781 if (strErrorInfo.isEmpty()) 1782 strErrorInfo = Utf8StrFmt( GuestSession::tr("Failed with %Rrc"), rc);1782 strErrorInfo = Utf8StrFmt(tr("Failed with %Rrc"), rc); 1783 1783 setProgressErrorMsg(VBOX_E_IPRT_ERROR, strErrorInfo); 1784 1784 } … … 1827 1827 default: 1828 1828 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 1829 Utf8StrFmt( GuestSession::tr("Querying information on for '%s' failed: %Rrc"),1829 Utf8StrFmt(tr("Querying information on for '%s' failed: %Rrc"), 1830 1830 strDstRootAbs.c_str(), rcGuest)); 1831 1831 break; … … 1835 1835 { 1836 1836 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 1837 Utf8StrFmt( GuestSession::tr("Querying information on guest for '%s' failed: %Rrc"),1837 Utf8StrFmt(tr("Querying information on guest for '%s' failed: %Rrc"), 1838 1838 strDstRootAbs.c_str(), rc)); 1839 1839 break; … … 1869 1869 { 1870 1870 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 1871 Utf8StrFmt( GuestSession::tr("Guest directory \"%s\" already exists"),1871 Utf8StrFmt(tr("Guest directory \"%s\" already exists"), 1872 1872 strDstRootAbs.c_str())); 1873 1873 rc = VERR_ALREADY_EXISTS; … … 2075 2075 default: 2076 2076 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 2077 Utf8StrFmt( GuestSession::tr("Guest file \"%s\" could not be opened: %Rrc"),2077 Utf8StrFmt(tr("Guest file \"%s\" could not be opened: %Rrc"), 2078 2078 strFileDst.c_str(), rc)); 2079 2079 break; … … 2128 2128 case VERR_GSTCTL_PROCESS_EXIT_CODE: 2129 2129 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 2130 Utf8StrFmt( GuestSession::tr("Running update file \"%s\" on guest failed: %Rrc"),2130 Utf8StrFmt(tr("Running update file \"%s\" on guest failed: %Rrc"), 2131 2131 procInfo.mExecutable.c_str(), procTool.getRc())); 2132 2132 break; 2133 2133 2134 2134 case VERR_GSTCTL_GUEST_ERROR: 2135 setProgressErrorMsg(VBOX_E_IPRT_ERROR, GuestSession::tr("Running update file on guest failed"),2135 setProgressErrorMsg(VBOX_E_IPRT_ERROR, tr("Running update file on guest failed"), 2136 2136 GuestErrorInfo(GuestErrorInfo::Type_Process, rcGuest, procInfo.mExecutable.c_str())); 2137 2137 break; … … 2139 2139 case VERR_INVALID_STATE: /** @todo Special guest control rc needed! */ 2140 2140 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 2141 Utf8StrFmt( GuestSession::tr("Update file \"%s\" reported invalid running state"),2141 Utf8StrFmt(tr("Update file \"%s\" reported invalid running state"), 2142 2142 procInfo.mExecutable.c_str())); 2143 2143 break; … … 2145 2145 default: 2146 2146 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 2147 Utf8StrFmt( GuestSession::tr("Error while running update file \"%s\" on guest: %Rrc"),2147 Utf8StrFmt(tr("Error while running update file \"%s\" on guest: %Rrc"), 2148 2148 procInfo.mExecutable.c_str(), vrc)); 2149 2149 break; … … 2195 2195 if (rc == VERR_TIMEOUT) 2196 2196 hr = setProgressErrorMsg(VBOX_E_NOT_SUPPORTED, 2197 Utf8StrFmt( GuestSession::tr("Guest Additions were not ready within time, giving up")));2197 Utf8StrFmt(tr("Guest Additions were not ready within time, giving up"))); 2198 2198 #else 2199 2199 /* … … 2208 2208 if (addsRunLevel == AdditionsRunLevelType_System) 2209 2209 hr = setProgressErrorMsg(VBOX_E_NOT_SUPPORTED, 2210 Utf8StrFmt( GuestSession::tr("Guest Additions are installed but not fully loaded yet, aborting automatic update")));2210 Utf8StrFmt(tr("Guest Additions are installed but not fully loaded yet, aborting automatic update"))); 2211 2211 else 2212 2212 hr = setProgressErrorMsg(VBOX_E_NOT_SUPPORTED, 2213 Utf8StrFmt( GuestSession::tr("Guest Additions not installed or ready, aborting automatic update")));2213 Utf8StrFmt(tr("Guest Additions not installed or ready, aborting automatic update"))); 2214 2214 rc = VERR_NOT_SUPPORTED; 2215 2215 } … … 2228 2228 { 2229 2229 hr = setProgressErrorMsg(VBOX_E_NOT_SUPPORTED, 2230 Utf8StrFmt( GuestSession::tr("Guest has too old Guest Additions (%s) installed for automatic updating, please update manually"),2230 Utf8StrFmt(tr("Guest has too old Guest Additions (%s) installed for automatic updating, please update manually"), 2231 2231 strAddsVer.c_str())); 2232 2232 rc = VERR_NOT_SUPPORTED; … … 2257 2257 { 2258 2258 hr = setProgressErrorMsg(VBOX_E_NOT_SUPPORTED, 2259 Utf8StrFmt( GuestSession::tr("Unable to detected guest OS version, please update manually")));2259 Utf8StrFmt(tr("Unable to detected guest OS version, please update manually"))); 2260 2260 rc = VERR_NOT_SUPPORTED; 2261 2261 } … … 2277 2277 { 2278 2278 hr = setProgressErrorMsg(VBOX_E_NOT_SUPPORTED, 2279 Utf8StrFmt( GuestSession::tr("Windows 2000 and XP are not supported for automatic updating due to WHQL interaction, please update manually")));2279 Utf8StrFmt(tr("Windows 2000 and XP are not supported for automatic updating due to WHQL interaction, please update manually"))); 2280 2280 rc = VERR_NOT_SUPPORTED; 2281 2281 } … … 2285 2285 { 2286 2286 hr = setProgressErrorMsg(VBOX_E_NOT_SUPPORTED, 2287 Utf8StrFmt( GuestSession::tr("%s (%s) not supported for automatic updating, please update manually"),2287 Utf8StrFmt(tr("%s (%s) not supported for automatic updating, please update manually"), 2288 2288 strOSType.c_str(), strOSVer.c_str())); 2289 2289 rc = VERR_NOT_SUPPORTED; … … 2303 2303 { 2304 2304 hr = setProgressErrorMsg(VBOX_E_NOT_SUPPORTED, 2305 Utf8StrFmt( GuestSession::tr("Detected guest OS (%s) does not support automatic Guest Additions updating, please update manually"),2305 Utf8StrFmt(tr("Detected guest OS (%s) does not support automatic Guest Additions updating, please update manually"), 2306 2306 strOSType.c_str())); 2307 2307 rc = VERR_NOT_SUPPORTED; … … 2320 2320 { 2321 2321 hr = setProgressErrorMsg(VBOX_E_IPRT_ERROR, 2322 Utf8StrFmt( GuestSession::tr("Unable to open Guest Additions .ISO file \"%s\": %Rrc"),2322 Utf8StrFmt(tr("Unable to open Guest Additions .ISO file \"%s\": %Rrc"), 2323 2323 mSource.c_str(), rc)); 2324 2324 } … … 2330 2330 { 2331 2331 hr = setProgressErrorMsg(VBOX_E_IPRT_ERROR, 2332 Utf8StrFmt( GuestSession::tr("Unable to open file as ISO 9660 file system volume: %Rrc"), rc));2332 Utf8StrFmt(tr("Unable to open file as ISO 9660 file system volume: %Rrc"), rc)); 2333 2333 } 2334 2334 else … … 2398 2398 { 2399 2399 case VERR_GSTCTL_GUEST_ERROR: 2400 hr = setProgressErrorMsg(VBOX_E_IPRT_ERROR, GuestSession::tr("Creating installation directory on guest failed"),2400 hr = setProgressErrorMsg(VBOX_E_IPRT_ERROR, tr("Creating installation directory on guest failed"), 2401 2401 GuestErrorInfo(GuestErrorInfo::Type_Directory, rcGuest, strUpdateDir.c_str())); 2402 2402 break; … … 2404 2404 default: 2405 2405 hr = setProgressErrorMsg(VBOX_E_IPRT_ERROR, 2406 Utf8StrFmt( GuestSession::tr("Creating installation directory \"%s\" on guest failed: %Rrc"),2406 Utf8StrFmt(tr("Creating installation directory \"%s\" on guest failed: %Rrc"), 2407 2407 strUpdateDir.c_str(), rc)); 2408 2408 break; … … 2591 2591 { 2592 2592 hr = setProgressErrorMsg(VBOX_E_IPRT_ERROR, 2593 Utf8StrFmt( GuestSession::tr("Error while copying file \"%s\" to \"%s\" on the guest: %Rrc"),2593 Utf8StrFmt(tr("Error while copying file \"%s\" to \"%s\" on the guest: %Rrc"), 2594 2594 itFiles->strSource.c_str(), itFiles->strDest.c_str(), rc)); 2595 2595 break; … … 2655 2655 2656 2656 hr = setProgressErrorMsg(VBOX_E_IPRT_ERROR, 2657 Utf8StrFmt( GuestSession::tr("Installation was canceled")));2657 Utf8StrFmt(tr("Installation was canceled"))); 2658 2658 } 2659 2659 else
Note:
See TracChangeset
for help on using the changeset viewer.