Changeset 91503 in vbox for trunk/src/VBox/Main/src-server/generic
- Timestamp:
- Oct 1, 2021 8:57:59 AM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 147192
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/generic/NetIf-generic.cpp
r85267 r91503 39 39 #include "ProgressImpl.h" 40 40 #include "VirtualBoxImpl.h" 41 #include "VBoxNls.h" 41 42 #include "Global.h" 42 43 #include "netif.h" 43 44 44 45 #define VBOXNETADPCTL_NAME "VBoxNetAdpCtl" 46 47 DECLARE_TRANSLATION_CONTEXT(NetIfGeneric); 48 45 49 46 50 static int NetIfAdpCtl(const char * pcszIfName, const char *pszAddr, const char *pszOption, const char *pszMask) … … 204 208 { 205 209 hrc = progress->init(pVirtualBox, host, 206 "Creating host only network interface",210 NetIfGeneric::tr("Creating host only network interface"), 207 211 FALSE /* aCancelable */); 208 212 if (SUCCEEDED(hrc)) … … 217 221 COM_IIDOF(IHostNetworkInterface), 218 222 HostNetworkInterface::getStaticComponentName(), 219 "Failed to get program path, vrc=%Rrc\n", vrc);223 NetIfGeneric::tr("Failed to get program path, vrc=%Rrc\n"), vrc); 220 224 return vrc; 221 225 } … … 266 270 COM_IIDOF(IHostNetworkInterface), 267 271 HostNetworkInterface::getStaticComponentName(), 268 "Failed to get config info for %s (as reported by '" VBOXNETADPCTL_NAME " add')\n", szBuf); 272 NetIfGeneric::tr("Failed to get config info for %s (as reported by 'VBoxNetAdpCtl add')\n"), 273 szBuf); 269 274 } 270 275 else … … 285 290 COM_IIDOF(IHostNetworkInterface), 286 291 HostNetworkInterface::getStaticComponentName(), 287 "Failed to execute '%s' - exit status: %d", szAdpCtl, vrc);292 NetIfGeneric::tr("Failed to execute '%s' - exit status: %d"), szAdpCtl, vrc); 288 293 vrc = VERR_INTERNAL_ERROR; 289 294 } … … 295 300 COM_IIDOF(IHostNetworkInterface), 296 301 HostNetworkInterface::getStaticComponentName(), 297 "Failed to execute '%s' (errno %d). Check permissions!",302 NetIfGeneric::tr("Failed to execute '%s' (errno %d). Check permissions!"), 298 303 szAdpCtl, errno); 299 304 pclose(fp); … … 307 312 COM_IIDOF(IHostNetworkInterface), 308 313 HostNetworkInterface::getStaticComponentName(), 309 "Failed to execute '%s' (errno %d / %Rrc). Check permissions!",314 NetIfGeneric::tr("Failed to execute '%s' (errno %d / %Rrc). Check permissions!"), 310 315 szAdpCtl, errno, vrc); 311 316 } … … 352 357 Utf8Str strIfName(ifname); 353 358 354 hrc = progress->init(pVirtualBox, host, "Removing host network interface", FALSE /* aCancelable */);359 hrc = progress->init(pVirtualBox, host, NetIfGeneric::tr("Removing host network interface"), FALSE /* aCancelable */); 355 360 if (SUCCEEDED(hrc)) 356 361 { … … 361 366 COM_IIDOF(IHostNetworkInterface), 362 367 HostNetworkInterface::getStaticComponentName(), 363 "Failed to execute '" VBOXNETADPCTL_NAME " %s remove' (%Rrc)",368 NetIfGeneric::tr("Failed to execute 'VBoxNetAdpCtl %s remove' (%Rrc)"), 364 369 strIfName.c_str(), vrc); 365 370 else
Note:
See TracChangeset
for help on using the changeset viewer.