VirtualBox

Changeset 91394 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 27, 2021 12:54:43 PM (3 years ago)
Author:
vboxsync
Message:

Main: bugref:1909: Added ability to use translation inside non-member functions.
Added translation in ExtPackUtil as part of non-member functions translation.

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/VirtualBoxTranslator.h

    r91393 r91394  
    2727#include <VBox/com/AutoLock.h>
    2828
     29COM_STRUCT_OR_CLASS(IVirtualBox);
    2930class QMTranslator;
    3031
  • trunk/src/VBox/Main/src-all/ExtPackUtil.cpp

    r85233 r91394  
    3838#include <VBox/log.h>
    3939
     40#include <VBox/VBoxNls.h>
     41
     42DECLARE_TRANSLATION_CONTEXT(ExtPackUtil)
     43
    4044
    4145/**
     
    110114    if (   !pVBoxExtPackElm
    111115        || strcmp(pVBoxExtPackElm->getName(), "VirtualBoxExtensionPack") != 0)
    112         return new RTCString("No VirtualBoxExtensionPack element");
     116        return new RTCString(ExtPackUtil::tr("No VirtualBoxExtensionPack element"));
    113117
    114118    RTCString strFormatVersion;
    115119    if (!pVBoxExtPackElm->getAttributeValueN("version", strFormatVersion, RT_XML_ATTR_TINY))
    116         return new RTCString("Missing format version");
     120        return new RTCString(ExtPackUtil::tr("Missing format version"));
    117121    if (!strFormatVersion.equals("1.0"))
    118         return &(new RTCString("Unsupported format version: "))->append(strFormatVersion);
     122        return &(new RTCString(ExtPackUtil::tr("Unsupported format version: ")))->append(strFormatVersion);
    119123
    120124    /*
     
    123127    const xml::ElementNode *pNameElm = pVBoxExtPackElm->findChildElement("Name");
    124128    if (!pNameElm)
    125         return new RTCString("The 'Name' element is missing");
     129        return new RTCString(ExtPackUtil::tr("The 'Name' element is missing"));
    126130    const char *pszName = pNameElm->getValueN(RT_XML_CONTENT_SMALL);
    127131    if (!VBoxExtPackIsValidName(pszName))
    128         return &(new RTCString("Invalid name: "))->append(pszName);
     132        return &(new RTCString(ExtPackUtil::tr("Invalid name: ")))->append(pszName);
    129133
    130134    const xml::ElementNode *pDescElm = pVBoxExtPackElm->findChildElement("Description");
    131135    if (!pDescElm)
    132         return new RTCString("The 'Description' element is missing");
     136        return new RTCString(ExtPackUtil::tr("The 'Description' element is missing"));
    133137    const char *pszDesc = pDescElm->getValueN(RT_XML_CONTENT_LARGE);
    134138    if (!pszDesc || *pszDesc == '\0')
    135         return new RTCString("The 'Description' element is empty");
     139        return new RTCString(ExtPackUtil::tr("The 'Description' element is empty"));
    136140    if (strpbrk(pszDesc, "\n\r\t\v\b") != NULL)
    137         return new RTCString("The 'Description' must not contain control characters");
     141        return new RTCString(ExtPackUtil::tr("The 'Description' must not contain control characters"));
    138142
    139143    const xml::ElementNode *pVersionElm = pVBoxExtPackElm->findChildElement("Version");
    140144    if (!pVersionElm)
    141         return new RTCString("The 'Version' element is missing");
     145        return new RTCString(ExtPackUtil::tr("The 'Version' element is missing"));
    142146    const char *pszVersion = pVersionElm->getValueN(RT_XML_CONTENT_SMALL);
    143147    if (!pszVersion || *pszVersion == '\0')
    144         return new RTCString("The 'Version' element is empty");
     148        return new RTCString(ExtPackUtil::tr("The 'Version' element is empty"));
    145149    if (!VBoxExtPackIsValidVersionString(pszVersion))
    146         return &(new RTCString("Invalid version string: "))->append(pszVersion);
     150        return &(new RTCString(ExtPackUtil::tr("Invalid version string: ")))->append(pszVersion);
    147151
    148152    uint32_t uRevision;
     
    154158        pszEdition = "";
    155159    if (!VBoxExtPackIsValidEditionString(pszEdition))
    156         return &(new RTCString("Invalid edition string: "))->append(pszEdition);
     160        return &(new RTCString(ExtPackUtil::tr("Invalid edition string: ")))->append(pszEdition);
    157161
    158162    const xml::ElementNode *pMainModuleElm = pVBoxExtPackElm->findChildElement("MainModule");
    159163    if (!pMainModuleElm)
    160         return new RTCString("The 'MainModule' element is missing");
     164        return new RTCString(ExtPackUtil::tr("The 'MainModule' element is missing"));
    161165    const char *pszMainModule = pMainModuleElm->getValueN(RT_XML_CONTENT_SMALL);
    162166    if (!pszMainModule || *pszMainModule == '\0')
    163         return new RTCString("The 'MainModule' element is empty");
     167        return new RTCString(ExtPackUtil::tr("The 'MainModule' element is empty"));
    164168    if (!VBoxExtPackIsValidModuleString(pszMainModule))
    165         return &(new RTCString("Invalid main module string: "))->append(pszMainModule);
     169        return &(new RTCString(ExtPackUtil::tr("Invalid main module string: ")))->append(pszMainModule);
    166170
    167171    /*
     
    177181            pszMainVMModule = NULL;
    178182        else if (!VBoxExtPackIsValidModuleString(pszMainVMModule))
    179             return &(new RTCString("Invalid main VM module string: "))->append(pszMainVMModule);
     183            return &(new RTCString(ExtPackUtil::tr("Invalid main VM module string: ")))->append(pszMainVMModule);
    180184    }
    181185
     
    192196            pszVrdeModule = NULL;
    193197        else if (!VBoxExtPackIsValidModuleString(pszVrdeModule))
    194             return &(new RTCString("Invalid VRDE module string: "))->append(pszVrdeModule);
     198            return &(new RTCString(ExtPackUtil::tr("Invalid VRDE module string: ")))->append(pszVrdeModule);
    195199    }
    196200
     
    251255    int vrc = RTPathJoin(szFilePath, sizeof(szFilePath), a_pszDir, VBOX_EXTPACK_DESCRIPTION_NAME);
    252256    if (RT_FAILURE(vrc))
    253         return new RTCStringFmt("RTPathJoin failed with %Rrc", vrc);
     257        return new RTCStringFmt(ExtPackUtil::tr("RTPathJoin failed with %Rrc"), vrc);
    254258
    255259    RTFSOBJINFO ObjInfo;
    256260    vrc = RTPathQueryInfoEx(szFilePath, &ObjInfo,  RTFSOBJATTRADD_UNIX, RTPATH_F_ON_LINK);
    257261    if (RT_FAILURE(vrc))
    258         return new RTCStringFmt("RTPathQueryInfoEx failed with %Rrc", vrc);
     262        return new RTCStringFmt(ExtPackUtil::tr("RTPathQueryInfoEx failed with %Rrc"), vrc);
    259263    if (a_pObjInfo)
    260264        *a_pObjInfo = ObjInfo;
     
    262266    {
    263267        if (RTFS_IS_SYMLINK(ObjInfo.Attr.fMode))
    264             return new RTCString("The XML file is symlinked, that is not allowed");
    265         return new RTCStringFmt("The XML file is not a file (fMode=%#x)", ObjInfo.Attr.fMode);
     268            return new RTCString(ExtPackUtil::tr("The XML file is symlinked, that is not allowed"));
     269        return new RTCStringFmt(ExtPackUtil::tr("The XML file is not a file (fMode=%#x)"), ObjInfo.Attr.fMode);
    266270    }
    267271
     
    312316    int rc = RTVfsFileQueryInfo(hVfsFile, &ObjInfo, RTFSOBJATTRADD_UNIX);
    313317    if (RT_FAILURE(rc))
    314         return &(new RTCString)->printf("RTVfsFileQueryInfo failed: %Rrc", rc);
     318        return &(new RTCString)->printf(ExtPackUtil::tr("RTVfsFileQueryInfo failed: %Rrc"), rc);
    315319    if (a_pObjInfo)
    316320        *a_pObjInfo = ObjInfo;
     
    323327    /* Check the file size. */
    324328    if (ObjInfo.cbObject > _1M || ObjInfo.cbObject < 0)
    325         return &(new RTCString)->printf("The XML file is too large (%'RU64 bytes)", ObjInfo.cbObject);
     329        return &(new RTCString)->printf(ExtPackUtil::tr("The XML file is too large (%'RU64 bytes)"), ObjInfo.cbObject);
    326330    size_t const cbFile = (size_t)ObjInfo.cbObject;
    327331
     
    329333    rc = RTVfsFileSeek(hVfsFile, 0, RTFILE_SEEK_BEGIN, NULL);
    330334    if (RT_FAILURE(rc))
    331         return &(new RTCString)->printf("RTVfsFileSeek(,0,BEGIN) failed: %Rrc", rc);
     335        return &(new RTCString)->printf(ExtPackUtil::tr("RTVfsFileSeek(,0,BEGIN) failed: %Rrc"), rc);
    332336
    333337    /* Allocate memory and read the file content into it. */
    334338    void *pvFile = RTMemTmpAlloc(cbFile);
    335339    if (!pvFile)
    336         return &(new RTCString)->printf("RTMemTmpAlloc(%zu) failed", cbFile);
     340        return &(new RTCString)->printf(ExtPackUtil::tr("RTMemTmpAlloc(%zu) failed"), cbFile);
    337341
    338342    RTCString *pstrErr = NULL;
    339343    rc = RTVfsFileRead(hVfsFile, pvFile, cbFile, NULL);
    340344    if (RT_FAILURE(rc))
    341         pstrErr = &(new RTCString)->printf("RTVfsFileRead failed: %Rrc", rc);
     345        pstrErr = &(new RTCString)->printf(ExtPackUtil::tr("RTVfsFileRead failed: %Rrc"), rc);
    342346
    343347    /*
     
    740744        && !ExtPackDesc.strName.equalsIgnoreCase(pszExtPackName))
    741745        rc = vboxExtPackReturnError(VERR_NOT_EQUAL, pszError, cbError,
    742                                     "The name of the downloaded file and the name stored inside the extension pack does not match"
    743                                     " (xml='%s' file='%s')", ExtPackDesc.strName.c_str(), pszExtPackName);
     746                                    ExtPackUtil::tr("The name of the downloaded file and the name stored inside the extension pack does not match"
     747                                    " (xml='%s' file='%s')"), ExtPackDesc.strName.c_str(), pszExtPackName);
    744748    return rc;
    745749}
     
    763767    int rc = RTVfsFileSeek(hManifestFile, 0, RTFILE_SEEK_BEGIN, NULL);
    764768    if (RT_FAILURE(rc))
    765         return vboxExtPackReturnError(rc, pszError, cbError, "RTVfsFileSeek failed: %Rrc", rc);
     769        return vboxExtPackReturnError(rc, pszError, cbError, ExtPackUtil::tr("RTVfsFileSeek failed: %Rrc"), rc);
    766770
    767771    RTMANIFEST hTheirManifest;
    768772    rc = RTManifestCreate(0 /*fFlags*/, &hTheirManifest);
    769773    if (RT_FAILURE(rc))
    770         return vboxExtPackReturnError(rc, pszError, cbError, "RTManifestCreate failed: %Rrc", rc);
     774        return vboxExtPackReturnError(rc, pszError, cbError, ExtPackUtil::tr("RTManifestCreate failed: %Rrc"), rc);
    771775
    772776    RTVFSIOSTREAM hVfsIos = RTVfsFileToIoStream(hManifestFile);
     
    800804        }
    801805        else if (rc == VERR_NOT_EQUAL && szError[0])
    802             vboxExtPackSetError(pszError, cbError, "Manifest mismatch: %s", szError);
     806            vboxExtPackSetError(pszError, cbError, ExtPackUtil::tr("Manifest mismatch: %s"), szError);
    803807        else
    804             vboxExtPackSetError(pszError, cbError, "RTManifestEqualsEx failed: %Rrc", rc);
     808            vboxExtPackSetError(pszError, cbError, ExtPackUtil::tr("RTManifestEqualsEx failed: %Rrc"), rc);
    805809#if 0
    806810        RTVFSIOSTREAM hVfsIosStdOut = NIL_RTVFSIOSTREAM;
     
    813817    }
    814818    else
    815         vboxExtPackSetError(pszError, cbError, "Error parsing '%s': %Rrc", VBOX_EXTPACK_MANIFEST_NAME, rc);
     819        vboxExtPackSetError(pszError, cbError, ExtPackUtil::tr("Error parsing '%s': %Rrc"), VBOX_EXTPACK_MANIFEST_NAME, rc);
    816820
    817821    RTManifestRelease(hTheirManifest);
     
    860864                    if (memcmp(abFileHash, abCalculatedHash, sizeof(abFileHash)))
    861865                    {
    862                         vboxExtPackSetError(pszError, cbError, "The extension pack file has changed (SHA-256 mismatch)");
     866                        vboxExtPackSetError(pszError, cbError,
     867                                            ExtPackUtil::tr("The extension pack file has changed (SHA-256 mismatch)"));
    863868                        rc = VERR_NOT_EQUAL;
    864869                    }
    865870                }
    866871                else
    867                     vboxExtPackSetError(pszError, cbError, "Bad SHA-256 '%s': %Rrc", szCalculatedDigest, rc);
     872                    vboxExtPackSetError(pszError, cbError, ExtPackUtil::tr("Bad SHA-256 '%s': %Rrc"), szCalculatedDigest, rc);
    868873            }
    869874
     
    884889        }
    885890        else
    886             vboxExtPackSetError(pszError, cbError, "Bad SHA-256 '%s': %Rrc", szCalculatedDigest, rc);
     891            vboxExtPackSetError(pszError, cbError, ExtPackUtil::tr("Bad SHA-256 '%s': %Rrc"), szCalculatedDigest, rc);
    887892    }
    888893    else
    889         vboxExtPackSetError(pszError, cbError, "RTManifestEntryGetAttr: %Rrc", rc);
     894        vboxExtPackSetError(pszError, cbError, ExtPackUtil::tr("RTManifestEntryGetAttr: %Rrc"), rc);
    890895    return rc;
    891896}
     
    918923    if (phVfsFile && *phVfsFile != NIL_RTVFSFILE)
    919924        rc = vboxExtPackReturnError(VERR_DUPLICATE, pszError, cbError,
    920                                     "There can only be one '%s'", pszAdjName);
     925                                    ExtPackUtil::tr("There can only be one '%s'"), pszAdjName);
    921926    else if (enmType != RTVFSOBJTYPE_IO_STREAM && enmType != RTVFSOBJTYPE_FILE)
    922927        rc = vboxExtPackReturnError(VERR_NOT_A_FILE, pszError, cbError,
    923                                     "Standard member '%s' is not a file", pszAdjName);
     928                                    ExtPackUtil::tr("Standard member '%s' is not a file"), pszAdjName);
    924929    else
    925930    {
     
    930935            if (!RTFS_IS_FILE(ObjInfo.Attr.fMode))
    931936                rc = vboxExtPackReturnError(VERR_NOT_A_FILE, pszError, cbError,
    932                                             "Standard member '%s' is not a file", pszAdjName);
     937                                            ExtPackUtil::tr("Standard member '%s' is not a file"), pszAdjName);
    933938            else if (ObjInfo.cbObject >= _1M)
    934939                rc = vboxExtPackReturnError(VERR_OUT_OF_RANGE, pszError, cbError,
    935                                             "Standard member '%s' is too large: %'RU64 bytes (max 1 MB)",
     940                                            ExtPackUtil::tr("Standard member '%s' is too large: %'RU64 bytes (max 1 MB)"),
    936941                                            pszAdjName, (uint64_t)ObjInfo.cbObject);
    937942            else
     
    961966                        }
    962967                        else
    963                             vboxExtPackSetError(pszError, cbError, "RTVfsFileSeek failed on '%s': %Rrc", pszAdjName, rc);
     968                            vboxExtPackSetError(pszError, cbError,
     969                                                ExtPackUtil::tr("RTVfsFileSeek failed on '%s': %Rrc"), pszAdjName, rc);
    964970                    }
    965971
     
    970976                }
    971977                else
    972                     vboxExtPackSetError(pszError, cbError, "RTVfsMemorizeIoStreamAsFile failed on '%s': %Rrc", pszAdjName, rc);
     978                    vboxExtPackSetError(pszError, cbError,
     979                                        ExtPackUtil::tr("RTVfsMemorizeIoStreamAsFile failed on '%s': %Rrc"), pszAdjName, rc);
    973980                RTVfsIoStrmRelease(hVfsIos);
    974981            }
    975982        }
    976983        else
    977             vboxExtPackSetError(pszError, cbError, "RTVfsObjQueryInfo failed on '%s': %Rrc", pszAdjName, rc);
     984            vboxExtPackSetError(pszError, cbError, ExtPackUtil::tr("RTVfsObjQueryInfo failed on '%s': %Rrc"), pszAdjName, rc);
    978985    }
    979986    return rc;
     
    9951002{
    9961003    if (RTPathStartsWithRoot(pszName))
    997         return vboxExtPackReturnError(VERR_PATH_IS_NOT_RELATIVE, pszError, cbError, "'%s': starts with root spec", pszName);
     1004        return vboxExtPackReturnError(VERR_PATH_IS_NOT_RELATIVE, pszError, cbError,
     1005                                      ExtPackUtil::tr("'%s': starts with root spec"), pszName);
    9981006
    9991007    const char *pszErr = NULL;
     
    10451053    if (pszErr)
    10461054        return vboxExtPackReturnError(VERR_INVALID_NAME, pszError, cbError,
    1047                                       "Bad member name '%s' (pos %zu): %s", pszName, (size_t)(psz - pszName), pszErr);
     1055                                      ExtPackUtil::tr("Bad member name '%s' (pos %zu): %s"),
     1056                                      pszName, (size_t)(psz - pszName), pszErr);
    10481057    return RTEXITCODE_SUCCESS;
    10491058}
     
    10701079            if (ObjInfo.cbObject >= 9*_1G64)
    10711080                rc = vboxExtPackReturnError(VERR_OUT_OF_RANGE, pszError, cbError,
    1072                                             "'%s': too large (%'RU64 bytes)",
     1081                                            ExtPackUtil::tr("'%s': too large (%'RU64 bytes)"),
    10731082                                            pszName, (uint64_t)ObjInfo.cbObject);
    10741083            if (!RTFS_IS_FILE(ObjInfo.Attr.fMode))
    10751084                rc = vboxExtPackReturnError(VERR_NOT_A_FILE, pszError, cbError,
    1076                                             "The alleged file '%s' has a mode mask stating otherwise (%RTfmode)",
     1085                                            ExtPackUtil::tr("The alleged file '%s' has a mode mask stating otherwise (%RTfmode)"),
    10771086                                            pszName, ObjInfo.Attr.fMode);
    10781087        }
    10791088        else
    1080             vboxExtPackSetError(pszError, cbError, "RTVfsObjQueryInfo failed on '%s': %Rrc", pszName, rc);
     1089            vboxExtPackSetError(pszError, cbError, ExtPackUtil::tr("RTVfsObjQueryInfo failed on '%s': %Rrc"), pszName, rc);
    10811090    }
    10821091    return rc;
     
    11041113            if (!RTFS_IS_DIRECTORY(ObjInfo.Attr.fMode))
    11051114                rc = vboxExtPackReturnError(VERR_NOT_A_DIRECTORY, pszError, cbError,
    1106                                             "The alleged directory '%s' has a mode mask saying differently (%RTfmode)",
     1115                                            ExtPackUtil::tr("The alleged directory '%s' has a mode mask saying differently (%RTfmode)"),
    11071116                                            pszName, ObjInfo.Attr.fMode);
    11081117        }
    11091118        else
    1110             vboxExtPackSetError(pszError, cbError, "RTVfsObjQueryInfo failed on '%s': %Rrc", pszName, rc);
     1119            vboxExtPackSetError(pszError, cbError, ExtPackUtil::tr("RTVfsObjQueryInfo failed on '%s': %Rrc"), pszName, rc);
    11111120    }
    11121121    return rc;
     
    11371146    else
    11381147        rc = vboxExtPackReturnError(VERR_UNEXPECTED_FS_OBJ_TYPE, pszError, cbError,
    1139                                     "'%s' is not a file or directory (enmType=%d)", pszName, enmType);
     1148                                    ExtPackUtil::tr("'%s' is not a file or directory (enmType=%d)"), pszName, enmType);
    11401149    return rc;
    11411150}
     
    11681177    int rc = RTFileSeek(hTarballFile, 0, RTFILE_SEEK_BEGIN, NULL);
    11691178    if (RT_FAILURE(rc))
    1170         return vboxExtPackReturnError(rc, pszError, cbError, "Failed seeking to the start of the tarball: %Rrc", rc);
     1179        return vboxExtPackReturnError(rc, pszError, cbError,
     1180                                      ExtPackUtil::tr("Failed seeking to the start of the tarball: %Rrc"), rc);
    11711181
    11721182    RTVFSIOSTREAM hTarballIos;
     
    11741184                               &hTarballIos);
    11751185    if (RT_FAILURE(rc))
    1176         return vboxExtPackReturnError(rc, pszError, cbError, "RTVfsIoStrmFromRTFile failed: %Rrc", rc);
     1186        return vboxExtPackReturnError(rc, pszError, cbError, ExtPackUtil::tr("RTVfsIoStrmFromRTFile failed: %Rrc"), rc);
    11771187
    11781188    RTMANIFEST hFileManifest = NIL_RTMANIFEST;
     
    12041214                }
    12051215
    1206                 vboxExtPackSetError(pszError, cbError, "RTZipTarFsStreamFromIoStream failed: %Rrc", rc);
     1216                vboxExtPackSetError(pszError, cbError, ExtPackUtil::tr("RTZipTarFsStreamFromIoStream failed: %Rrc"), rc);
    12071217                RTVfsIoStrmRelease(hGunzipIos);
    12081218            }
    12091219            else
    1210                 vboxExtPackSetError(pszError, cbError, "RTZipGzipDecompressIoStream failed: %Rrc", rc);
     1220                vboxExtPackSetError(pszError, cbError, ExtPackUtil::tr("RTZipGzipDecompressIoStream failed: %Rrc"), rc);
    12111221            RTVfsIoStrmRelease(hPtIos);
    12121222        }
    12131223        else
    1214             vboxExtPackSetError(pszError, cbError, "RTManifestEntryAddPassthruIoStream failed: %Rrc", rc);
     1224            vboxExtPackSetError(pszError, cbError, ExtPackUtil::tr("RTManifestEntryAddPassthruIoStream failed: %Rrc"), rc);
    12151225        RTManifestRelease(hFileManifest);
    12161226    }
    12171227    else
    1218         vboxExtPackSetError(pszError, cbError, "RTManifestCreate failed: %Rrc", rc);
     1228        vboxExtPackSetError(pszError, cbError, ExtPackUtil::tr("RTManifestCreate failed: %Rrc"), rc);
    12191229
    12201230    RTVfsIoStrmRelease(hTarballIos);
     
    12971307            {
    12981308                if (rc != VERR_EOF)
    1299                     vboxExtPackSetError(pszError, cbError, "RTVfsFsStrmNext failed: %Rrc", rc);
     1309                    vboxExtPackSetError(pszError, cbError, ExtPackUtil::tr("RTVfsFsStrmNext failed: %Rrc"), rc);
    13001310                else
    13011311                    rc = VINF_SUCCESS;
     
    13371347                rc = RTManifestEntryAddIoStream(hOurManifest, hVfsIos, pszAdjName, RTMANIFEST_ATTR_SIZE | RTMANIFEST_ATTR_SHA256);
    13381348                if (RT_FAILURE(rc))
    1339                     vboxExtPackSetError(pszError, cbError, "RTManifestEntryAddIoStream failed on '%s': %Rrc", pszAdjName, rc);
     1349                    vboxExtPackSetError(pszError, cbError,
     1350                                        ExtPackUtil::tr("RTManifestEntryAddIoStream failed on '%s': %Rrc"), pszAdjName, rc);
    13401351                RTVfsIoStrmRelease(hVfsIos);
    13411352            }
     
    13671378        {
    13681379            if (hXmlFile == NIL_RTVFSFILE)
    1369                 rc = vboxExtPackReturnError(VERR_MISSING, pszError, cbError, "Mandator file '%s' is missing",
     1380                rc = vboxExtPackReturnError(VERR_MISSING, pszError, cbError, ExtPackUtil::tr("Mandator file '%s' is missing"),
    13701381                                            VBOX_EXTPACK_DESCRIPTION_NAME);
    13711382            if (hManifestFile == NIL_RTVFSFILE)
    1372                 rc = vboxExtPackReturnError(VERR_MISSING, pszError, cbError, "Mandator file '%s' is missing",
     1383                rc = vboxExtPackReturnError(VERR_MISSING, pszError, cbError, ExtPackUtil::tr("Mandator file '%s' is missing"),
    13731384                                            VBOX_EXTPACK_MANIFEST_NAME);
    13741385            if (hSignatureFile == NIL_RTVFSFILE)
    1375                 rc = vboxExtPackReturnError(VERR_MISSING, pszError, cbError, "Mandator file '%s' is missing",
     1386                rc = vboxExtPackReturnError(VERR_MISSING, pszError, cbError, ExtPackUtil::tr("Mandator file '%s' is missing"),
    13761387                                            VBOX_EXTPACK_SIGNATURE_NAME);
    13771388        }
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