VirtualBox

Ignore:
Timestamp:
Aug 24, 2021 9:44:46 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
146463
Message:

Main: bugref:1909: Added API localization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp

    r84975 r90828  
    267267        {
    268268            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()));
    270270            rc = VERR_ALREADY_EXISTS;
    271271        }
     
    292292                if (RT_FAILURE(rc))
    293293                    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"),
    295295                                                   strPath.c_str(), rcGuest));
    296296                break;
     
    299299            default:
    300300                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"),
    302302                                               strPath.c_str(), rc));
    303303                break;
     
    330330            {
    331331                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()));
    333333            }
    334334            else
     
    337337        else
    338338            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"),
    340340                                           strPath.c_str(), rc));
    341341    }
     
    378378        {
    379379            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"),
    381381                                           offCopy, strSrcFile.c_str(), rc));
    382382            return rc;
     
    393393        {
    394394            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"),
    396396                                           cbChunk, cbWrittenTotal, strSrcFile.c_str(), rc));
    397397            break;
     
    402402        {
    403403            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"),
    405405                                           cbRead, strDstFile.c_str(), rc));
    406406            break;
     
    441441         * to the destination -> access denied. */
    442442        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"),
    444444                                       strSrcFile.c_str(), strDstFile.c_str()));
    445445        rc = VERR_ACCESS_DENIED;
     
    449449        /* If we did not copy all let the user know. */
    450450        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)"),
    452452                                       strSrcFile.c_str(), strDstFile.c_str(), cbWrittenTotal, cbSize));
    453453        rc = VERR_INTERRUPTED;
     
    484484    {
    485485        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"),
    487487                                GuestErrorInfo(GuestErrorInfo::Type_ToolStat, rcGuest, strSrc.c_str()));
    488488        else
    489489            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));
    491491    }
    492492    else
     
    501501                {
    502502                    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"),
    504504                                                   strSrc.c_str()));
    505505                    rc = VERR_IS_A_SYMLINK;
     
    509509            default:
    510510                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)"),
    512512                                               strSrc.c_str(), srcObjData.mType));
    513513                rc = VERR_NOT_A_FILE;
     
    523523    {
    524524        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"),
    526526                                GuestErrorInfo(GuestErrorInfo::Type_File, rcGuest, strSrc.c_str()));
    527527        else
    528528            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));
    530530    }
    531531
     
    546546            {
    547547                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()));
    549549                rc = VERR_ALREADY_EXISTS;
    550550            }
     
    565565            if (rc != VERR_FILE_NOT_FOUND) /* Destination file does not exist (yet)? */
    566566                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"),
    568568                                               strDst.c_str(), rc));
    569569        }
     
    586586            {
    587587                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()));
    589589                rc = VERR_ALREADY_EXISTS;
    590590            }
     
    609609            {
    610610                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"),
    612612                                               strDst.c_str()));
    613613                rc = VERR_IS_A_SYMLINK;
     
    630630        if (!pszDstFile)
    631631        {
    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")));
    633633            rc = VERR_NO_MEMORY;
    634634        }
     
    651651            else
    652652                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"),
    654654                                               pszDstFile, rc));
    655655        }
     
    698698        {
    699699            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"),
    701701                                           offCopy, strSrcFile.c_str(), rc));
    702702            return rc;
     
    713713        {
    714714            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"),
    716716                                           cbChunk, cbWrittenTotal, strSrcFile.c_str(), rc));
    717717            break;
     
    722722        {
    723723            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"),
    725725                                           cbRead, strDstFile.c_str(), rc));
    726726            break;
     
    757757         * to the destination -> access denied. */
    758758        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"),
    760760                                       strDstFile.c_str()));
    761761        rc = VERR_ACCESS_DENIED;
     
    765765        /* If we did not copy all let the user know. */
    766766        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)"),
    768768                                       strDstFile.c_str(), cbWrittenTotal, cbSize));
    769769        rc = VERR_INTERRUPTED;
     
    803803    {
    804804        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"),
    806806                                GuestErrorInfo(GuestErrorInfo::Type_File, rcGuest, strSrc.c_str()));
    807807        else
    808808            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));
    810810        return rc;
    811811    }
     
    824824        {
    825825            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"),
    827827                                           strSrc.c_str(), rc));
    828828        }
     
    860860                                default:
    861861                                    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"),
    863863                                                           strDstFinal.c_str(), rcGuest));
    864864                                    break;
     
    867867                        else
    868868                            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"),
    870870                                                           strDstFinal.c_str(), rc));
    871871                    }
     
    875875            {
    876876                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"),
    878878                                               szSrcReal, rc));
    879879            }
     
    905905        else
    906906            setProgressErrorMsg(VBOX_E_IPRT_ERROR,
    907                                 Utf8StrFmt(GuestSession::tr("Opening host file \"%s\" failed: %Rrc"),
     907                                Utf8StrFmt(tr("Opening host file \"%s\" failed: %Rrc"),
    908908                                           szSrcReal, rc));
    909909    }
     
    14091409    if (mDest.isEmpty())
    14101410    {
    1411         strErrorInfo = Utf8StrFmt(GuestSession::tr("Host destination must not be empty"));
     1411        strErrorInfo = Utf8StrFmt(tr("Host destination must not be empty"));
    14121412        vrc = VERR_INVALID_PARAMETER;
    14131413    }
     
    14241424            if (strSrc.isEmpty())
    14251425            {
    1426                 strErrorInfo = Utf8StrFmt(GuestSession::tr("Guest source entry must not be empty"));
     1426                strErrorInfo = Utf8StrFmt(tr("Guest source entry must not be empty"));
    14271427                vrc = VERR_INVALID_PARAMETER;
    14281428                break;
     
    14581458            {
    14591459                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"),
    14611461                                                               GuestErrorInfo(GuestErrorInfo::Type_ToolStat, rcGuest, strSrc.c_str()));
    14621462                else
    1463                     strErrorInfo = Utf8StrFmt(GuestSession::tr("Guest file lookup for \"%s\" failed: %Rrc"),
     1463                    strErrorInfo = Utf8StrFmt(tr("Guest file lookup for \"%s\" failed: %Rrc"),
    14641464                                              strSrc.c_str(), vrc);
    14651465                break;
     
    14701470                if (itSrc->enmType != FsObjType_Directory)
    14711471                {
    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());
    14731473                    vrc = VERR_NOT_A_FILE;
    14741474                    break;
     
    14791479                if (itSrc->enmType != FsObjType_File)
    14801480                {
    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());
    14821482                    vrc = VERR_NOT_A_DIRECTORY;
    14831483                    break;
     
    15011501                {
    15021502                    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"),
    15041504                                              strSrc.c_str(), vrc);
    15051505                    break;
     
    15371537    {
    15381538        if (strErrorInfo.isEmpty())
    1539             strErrorInfo = Utf8StrFmt(GuestSession::tr("Failed with %Rrc"), vrc);
     1539            strErrorInfo = Utf8StrFmt(tr("Failed with %Rrc"), vrc);
    15401540        setProgressErrorMsg(VBOX_E_IPRT_ERROR, strErrorInfo);
    15411541    }
     
    16791679    if (mDest.isEmpty())
    16801680    {
    1681         strErrorInfo = Utf8StrFmt(GuestSession::tr("Guest destination must not be empty"));
     1681        strErrorInfo = Utf8StrFmt(tr("Guest destination must not be empty"));
    16821682        rc = VERR_INVALID_PARAMETER;
    16831683    }
     
    16941694            if (strSrc.isEmpty())
    16951695            {
    1696                 strErrorInfo = Utf8StrFmt(GuestSession::tr("Host source entry must not be empty"));
     1696                strErrorInfo = Utf8StrFmt(tr("Host source entry must not be empty"));
    16971697                rc = VERR_INVALID_PARAMETER;
    16981698                break;
     
    17031703            if (RT_FAILURE(rc))
    17041704            {
    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());
    17061706                break;
    17071707            }
     
    17111711                if (itSrc->enmType != FsObjType_Directory)
    17121712                {
    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());
    17141714                    rc = VERR_NOT_A_FILE;
    17151715                    break;
     
    17201720                if (itSrc->enmType == FsObjType_Directory)
    17211721                {
    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());
    17231723                    rc = VERR_NOT_A_DIRECTORY;
    17241724                    break;
     
    17441744                {
    17451745                    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"),
    17471747                                              strSrc.c_str(), rc);
    17481748                    break;
     
    17801780    {
    17811781        if (strErrorInfo.isEmpty())
    1782             strErrorInfo = Utf8StrFmt(GuestSession::tr("Failed with %Rrc"), rc);
     1782            strErrorInfo = Utf8StrFmt(tr("Failed with %Rrc"), rc);
    17831783        setProgressErrorMsg(VBOX_E_IPRT_ERROR, strErrorInfo);
    17841784    }
     
    18271827                    default:
    18281828                        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"),
    18301830                                            strDstRootAbs.c_str(), rcGuest));
    18311831                        break;
     
    18351835            {
    18361836                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"),
    18381838                                               strDstRootAbs.c_str(), rc));
    18391839                break;
     
    18691869                {
    18701870                    setProgressErrorMsg(VBOX_E_IPRT_ERROR,
    1871                                         Utf8StrFmt(GuestSession::tr("Guest directory \"%s\" already exists"),
     1871                                        Utf8StrFmt(tr("Guest directory \"%s\" already exists"),
    18721872                                                   strDstRootAbs.c_str()));
    18731873                    rc = VERR_ALREADY_EXISTS;
     
    20752075                    default:
    20762076                        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"),
    20782078                                                       strFileDst.c_str(), rc));
    20792079                        break;
     
    21282128            case VERR_GSTCTL_PROCESS_EXIT_CODE:
    21292129                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"),
    21312131                                               procInfo.mExecutable.c_str(), procTool.getRc()));
    21322132                break;
    21332133
    21342134            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"),
    21362136                                    GuestErrorInfo(GuestErrorInfo::Type_Process, rcGuest, procInfo.mExecutable.c_str()));
    21372137                break;
     
    21392139            case VERR_INVALID_STATE: /** @todo Special guest control rc needed! */
    21402140                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"),
    21422142                                               procInfo.mExecutable.c_str()));
    21432143                break;
     
    21452145            default:
    21462146                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"),
    21482148                                               procInfo.mExecutable.c_str(), vrc));
    21492149                break;
     
    21952195    if (rc == VERR_TIMEOUT)
    21962196        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")));
    21982198#else
    21992199    /*
     
    22082208        if (addsRunLevel == AdditionsRunLevelType_System)
    22092209            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")));
    22112211        else
    22122212            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")));
    22142214        rc = VERR_NOT_SUPPORTED;
    22152215    }
     
    22282228        {
    22292229            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"),
    22312231                                                strAddsVer.c_str()));
    22322232            rc = VERR_NOT_SUPPORTED;
     
    22572257                {
    22582258                    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")));
    22602260                    rc = VERR_NOT_SUPPORTED;
    22612261                }
     
    22772277                        {
    22782278                            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")));
    22802280                            rc = VERR_NOT_SUPPORTED;
    22812281                        }
     
    22852285                {
    22862286                    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"),
    22882288                                                        strOSType.c_str(), strOSVer.c_str()));
    22892289                    rc = VERR_NOT_SUPPORTED;
     
    23032303            {
    23042304                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"),
    23062306                                                    strOSType.c_str()));
    23072307                rc = VERR_NOT_SUPPORTED;
     
    23202320        {
    23212321            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"),
    23232323                                         mSource.c_str(), rc));
    23242324        }
     
    23302330            {
    23312331                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));
    23332333            }
    23342334            else
     
    23982398                        {
    23992399                            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"),
    24012401                                                         GuestErrorInfo(GuestErrorInfo::Type_Directory, rcGuest, strUpdateDir.c_str()));
    24022402                                break;
     
    24042404                            default:
    24052405                                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"),
    24072407                                                                    strUpdateDir.c_str(), rc));
    24082408                                break;
     
    25912591                            {
    25922592                                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"),
    25942594                                                                    itFiles->strSource.c_str(), itFiles->strDest.c_str(), rc));
    25952595                                break;
     
    26552655
    26562656            hr = setProgressErrorMsg(VBOX_E_IPRT_ERROR,
    2657                                      Utf8StrFmt(GuestSession::tr("Installation was canceled")));
     2657                                     Utf8StrFmt(tr("Installation was canceled")));
    26582658        }
    26592659        else
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette