~ubuntu-branches/ubuntu/quantal/virtualbox/quantal

« back to all changes in this revision

Viewing changes to src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2012-05-29 10:09:31 UTC
  • mfrom: (3.1.15 sid)
  • Revision ID: package-import@ubuntu.com-20120529100931-2xayrbh5hyzm6e9p
Tags: 4.1.16-dfsg-1
* New upstream release.
* Drop 37-fix-build-gcc47.patch, fixed upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
579
579
        formatErrorInfo(COMErrorInfo(), rc));
580
580
}
581
581
 
 
582
void UIMessageCenter::cannotInitUserHome(const QString &strUserHome)
 
583
{
 
584
    message(0, Critical,
 
585
        tr("<p>Failed to initialize COM because the VirtualBox global "
 
586
           "configuration directory <b><nobr>%1</nobr></b> is not accessible. "
 
587
           "Please check the permissions of this directory and of its parent "
 
588
           "directory.</p>"
 
589
           "<p>The application will now terminate.</p>").arg(strUserHome),
 
590
        formatErrorInfo(COMErrorInfo()));
 
591
}
 
592
 
582
593
void UIMessageCenter::cannotCreateVirtualBox(const CVirtualBox &vbox)
583
594
{
584
595
    message(0, Critical,
2342
2353
                                                       QWidget *pParent /* = NULL */) const
2343
2354
{
2344
2355
    return messageOkCancel(pParent ? pParent : mainWindowShown(), Warning,
2345
 
        tr("<p>The virtual machine(s) <b>%1</b> are currently in a saved state.</p>"
 
2356
        tr("<p>The %n following virtual machine(s) are currently in a saved state: <b>%1</b></p>"
2346
2357
           "<p>If you continue the runtime state of the exported machine(s) "
2347
 
           "will be discarded. Note that the existing machine(s) are not "
2348
 
           "changed.</p>", "",
 
2358
           "will be discarded. The other machine(s) will not be changed.</p>", "This text is never used with n == 0.  Feel free to drop the %n where possible, we only included it because of problems with Qt Linguist (but the user can see how many machines are in the list and doesn't need to be told).",
2349
2359
           strMachineNames.size()).arg(VBoxGlobal::toHumanReadableList(strMachineNames)),
2350
2360
        0 /* pcszAutoConfirmId */,
2351
2361
        tr("Continue"), tr("Cancel"));