VirtualBox

Changeset 79985 in vbox


Ignore:
Timestamp:
Jul 26, 2019 12:59:07 AM (6 years ago)
Author:
vboxsync
Message:

OCI: tr() should only be applied to the format string.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/ApplianceImplImport.cpp

    r79606 r79985  
    12091209        hrc = mVirtualBox->COMGETTER(CloudProviderManager)(cpm.asOutParam());
    12101210        if (FAILED(hrc))
    1211             return setErrorVrc(VERR_COM_OBJECT_NOT_FOUND, tr("%s: Cloud provider manager object wasn't found", __FUNCTION__));
     1211            return setErrorVrc(VERR_COM_OBJECT_NOT_FOUND, tr("%s: Cloud provider manager object wasn't found"), __FUNCTION__);
    12121212
    12131213        Utf8Str strProviderName = pTask->locInfo.strProvider;
     
    12171217
    12181218        if (FAILED(hrc))
    1219             return setErrorVrc(VERR_COM_OBJECT_NOT_FOUND, tr("%s: Cloud provider object wasn't found", __FUNCTION__));
     1219            return setErrorVrc(VERR_COM_OBJECT_NOT_FOUND, tr("%s: Cloud provider object wasn't found"), __FUNCTION__);
    12201220
    12211221        Utf8Str profileName(parts.at(0));//profile
    12221222        if (profileName.isEmpty())
    1223             return setErrorVrc(VBOX_E_OBJECT_NOT_FOUND, tr("%s: Cloud user profile name wasn't found", __FUNCTION__));
     1223            return setErrorVrc(VBOX_E_OBJECT_NOT_FOUND, tr("%s: Cloud user profile name wasn't found"), __FUNCTION__);
    12241224
    12251225        hrc = cloudProvider->GetProfileByName(Bstr(parts.at(0)).raw(), cloudProfile.asOutParam());
    12261226        if (FAILED(hrc))
    1227             return setErrorVrc(VERR_COM_OBJECT_NOT_FOUND, tr("%s: Cloud profile object wasn't found", __FUNCTION__));
     1227            return setErrorVrc(VERR_COM_OBJECT_NOT_FOUND, tr("%s: Cloud profile object wasn't found"), __FUNCTION__);
    12281228
    12291229        ComObjPtr<ICloudClient> cloudClient;
    12301230        hrc = cloudProfile->CreateCloudClient(cloudClient.asOutParam());
    12311231        if (FAILED(hrc))
    1232             return setErrorVrc(VERR_COM_OBJECT_NOT_FOUND, tr("%s: Cloud client object wasn't found", __FUNCTION__));
     1232            return setErrorVrc(VERR_COM_OBJECT_NOT_FOUND, tr("%s: Cloud client object wasn't found"), __FUNCTION__);
    12331233
    12341234        m->virtualSystemDescriptions.clear();//clear all for assurance before creating new
     
    12391239        if (FAILED(hrc)) throw hrc;
    12401240        if (requestedVSDnums != newVSDnums)
    1241             throw setErrorVrc(VERR_MISMATCH, tr("%s: Requested and created numbers of VSD are differ.", __FUNCTION__));
     1241            throw setErrorVrc(VERR_MISMATCH, tr("%s: Requested and created numbers of VSD are differ."), __FUNCTION__);
    12421242
    12431243        hrc = getVirtualSystemDescriptions(vsdArray);
     
    13061306    hrc = mVirtualBox->COMGETTER(CloudProviderManager)(cpm.asOutParam());
    13071307    if (FAILED(hrc))
    1308         return setErrorVrc(VERR_COM_OBJECT_NOT_FOUND, tr("%s: Cloud provider manager object wasn't found", __FUNCTION__));
     1308        return setErrorVrc(VERR_COM_OBJECT_NOT_FOUND, tr("%s: Cloud provider manager object wasn't found"), __FUNCTION__);
    13091309
    13101310    Utf8Str strProviderName = pTask->locInfo.strProvider;
     
    13141314
    13151315    if (FAILED(hrc))
    1316         return setErrorVrc(VERR_COM_OBJECT_NOT_FOUND, tr("%s: Cloud provider object wasn't found", __FUNCTION__));
     1316        return setErrorVrc(VERR_COM_OBJECT_NOT_FOUND, tr("%s: Cloud provider object wasn't found"), __FUNCTION__);
    13171317
    13181318    /* Get the actual VSD, only one VSD object can be there for now so just call the function front() */
     
    13471347    GET_VSD_DESCRIPTION_BY_TYPE(VirtualSystemDescriptionType_CloudProfileName)
    13481348    if (aVBoxValues.size() == 0)
    1349         return setErrorVrc(VERR_NOT_FOUND, tr("%s: Cloud user profile name wasn't found", __FUNCTION__));
     1349        return setErrorVrc(VERR_NOT_FOUND, tr("%s: Cloud user profile name wasn't found"), __FUNCTION__);
    13501350
    13511351    Utf8Str profileName(aVBoxValues[0]);
    13521352    if (profileName.isEmpty())
    1353         return setErrorVrc(VERR_INVALID_STATE, tr("%s: Cloud user profile name is empty", __FUNCTION__));
     1353        return setErrorVrc(VERR_INVALID_STATE, tr("%s: Cloud user profile name is empty"), __FUNCTION__);
    13541354
    13551355    hrc = cloudProvider->GetProfileByName(aVBoxValues[0], cloudProfile.asOutParam());
    13561356    if (FAILED(hrc))
    1357         return setErrorVrc(VERR_COM_OBJECT_NOT_FOUND, tr("%s: Cloud profile object wasn't found", __FUNCTION__));
     1357        return setErrorVrc(VERR_COM_OBJECT_NOT_FOUND, tr("%s: Cloud profile object wasn't found"), __FUNCTION__);
    13581358
    13591359    ComObjPtr<ICloudClient> cloudClient;
    13601360    hrc = cloudProfile->CreateCloudClient(cloudClient.asOutParam());
    13611361    if (FAILED(hrc))
    1362         return setErrorVrc(VERR_COM_OBJECT_NOT_FOUND, tr("%s: Cloud client object wasn't found", __FUNCTION__));
     1362        return setErrorVrc(VERR_COM_OBJECT_NOT_FOUND, tr("%s: Cloud client object wasn't found"), __FUNCTION__);
    13631363
    13641364    ComPtr<IProgress> pProgress;
     
    14851485        GET_VSD_DESCRIPTION_BY_TYPE(VirtualSystemDescriptionType_CloudInstanceId)//aVBoxValues is set in this #define
    14861486        if (aVBoxValues.size() == 0)
    1487             hrc = setErrorVrc(VERR_NOT_FOUND, tr("%s: Cloud cleanup action - the instance wasn't found", __FUNCTION__));
     1487            hrc = setErrorVrc(VERR_NOT_FOUND, tr("%s: Cloud cleanup action - the instance wasn't found"), __FUNCTION__);
    14881488        else
    14891489        {
     
    19761976            if (SUCCEEDED(hrc))
    19771977            {
    1978                 pTask->pProgress->SetNextOperation(BstrFmt(tr("Creating new VM '%s'", strVMName.c_str())).raw(), 50);
     1978                pTask->pProgress->SetNextOperation(BstrFmt(tr("Creating new VM '%s'"), strVMName.c_str()).raw(), 50);
    19791979                /* Create the import stack to comply OVF logic.
    19801980                 * Before we filled some other data structures which are needed by OVF logic too.*/
Note: See TracChangeset for help on using the changeset viewer.

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