VirtualBox

Ignore:
Timestamp:
Apr 11, 2012 8:36:28 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
77401
Message:

FE/Qt: fixed a string to work better with the Qt numerus mechanism.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/globals
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp

    r40003 r40864  
    23842384{
    23852385    return messageOkCancel(pParent ? pParent : mainWindowShown(), Warning,
    2386         tr("<p>The virtual machine(s) <b>%1</b> are currently in a saved state.</p>"
     2386        tr("<p>The %n following virtual machine(s) are currently in a saved state: <b>%1</b></p>"
    23872387           "<p>If you continue the runtime state of the exported machine(s) "
    2388            "will be discarded. Note that the existing machine(s) are not "
    2389            "changed.</p>", "",
     2388           "will be discarded. The other machine(s) will not be changed.</p>", "",
    23902389           strMachineNames.size()).arg(VBoxGlobal::toHumanReadableList(strMachineNames)),
    23912390        0 /* pcszAutoConfirmId */,
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp

    r40845 r40864  
    36743674{
    36753675    QString strList;
    3676     if (list.size() == 1)
    3677         strList = list.at(0);
    3678     else if (list.size() > 1)
    3679     {
    3680         for (int i = 0; i < list.size() - 1; ++i)
    3681         {
    3682             strList += list.at(i);
    3683             if (i < list.size() - 2)
    3684                 strList += + ", ";
    3685         }
    3686         strList += " " + tr("and") + " " + list.at(list.size() - 1);
     3676    for (int i = 0; i < list.size(); ++i)
     3677    {
     3678        strList += list.at(i);
     3679        if (i < list.size() - 1)
     3680            strList += + " ";
    36873681    }
    36883682    return strList;
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