VirtualBox

Changeset 96430 in vbox


Ignore:
Timestamp:
Aug 23, 2022 8:37:08 AM (2 years ago)
Author:
vboxsync
Message:

FE/Qt: A bunch of NLS fixes across the GUI #3; Preparing for BETA NLS update.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/activity/vmactivity/UIVMActivityMonitor.cpp

    r96426 r96430  
    12121212        arg(QDateTime::currentDateTime().toString("dd-MM-yyyy_hh-mm-ss"));
    12131213    QString strFileName = QIFileDialog::getSaveFileName(strStartFileName,"",this,
    1214                                                         QString("%1 \"%2\"")
    1215                                                         .arg(QApplication::translate("UIVMInformationDialog", "Export activity data of the machine"))
    1216                                                         .arg(m_comMachine.GetName()));
     1214                                                        QApplication::translate("UIVMInformationDialog",
     1215                                                                                "Export activity data of the machine \"%1\"")
     1216                                                                                .arg(m_comMachine.GetName()));
    12171217    QFile dataFile(strFileName);
    12181218    if (dataFile.open(QFile::WriteOnly | QFile::Truncate))
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIErrorString.cpp

    r96407 r96430  
    108108                   "<tr><td>%2</td><td><tt>%3</tt></td></tr></table>")
    109109                   .arg(QApplication::palette().color(QPalette::Active, QPalette::Window).name(QColor::HexRgb))
    110                    .arg(QApplication::translate("UIErrorString", "Result&nbsp;Code: ", "error info"))
     110                   .arg(QApplication::translate("UIErrorString", "Result&nbsp;Code:", "error info"))
    111111                   .arg(formatRCFull(comProgress.GetResultCode()))
    112112                   .prepend("<!--EOM-->") /* move to details */;
     
    192192        {
    193193            strFormatted += QString("<tr><td>%1</td><td><tt>%2</tt></td></tr>")
    194                 .arg(QApplication::translate("UIErrorString", "Result&nbsp;Code: ", "error info"))
     194                .arg(QApplication::translate("UIErrorString", "Result&nbsp;Code:", "error info"))
    195195                .arg(formatRCFull(comInfo.resultCode()));
    196196        }
     
    198198        if (fHaveComponent)
    199199            strFormatted += QString("<tr><td>%1</td><td>%2</td></tr>")
    200                 .arg(QApplication::translate("UIErrorString", "Component: ", "error info"), comInfo.component());
     200                .arg(QApplication::translate("UIErrorString", "Component:", "error info"), comInfo.component());
    201201
    202202        if (fHaveInterfaceID)
     
    206206                s = comInfo.interfaceName() + ' ' + s;
    207207            strFormatted += QString("<tr><td>%1</td><td>%2</td></tr>")
    208                 .arg(QApplication::translate("UIErrorString", "Interface: ", "error info"), s);
     208                .arg(QApplication::translate("UIErrorString", "Interface:", "error info"), s);
    209209        }
    210210
     
    215215                s = comInfo.calleeName() + ' ' + s;
    216216            strFormatted += QString("<tr><td>%1</td><td>%2</td></tr>")
    217                 .arg(QApplication::translate("UIErrorString", "Callee: ", "error info"), s);
     217                .arg(QApplication::translate("UIErrorString", "Callee:", "error info"), s);
    218218        }
    219219    }
     
    223223    {
    224224        strFormatted += QString("<tr><td>%1</td><td><tt>%2</tt></td></tr>")
    225             .arg(QApplication::translate("UIErrorString", "Callee&nbsp;RC: ", "error info"))
     225            .arg(QApplication::translate("UIErrorString", "Callee&nbsp;RC:", "error info"))
    226226            .arg(formatRCFull(wrapperRC));
    227227    }
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp

    r96407 r96430  
    17901790                             "</table>")
    17911791                             .arg(QApplication::palette().color(QPalette::Active, QPalette::Window).name(QColor::HexRgb))
    1792                              .arg(tr("<nobr>Error ID: </nobr>", "runtime error info"), strErrorId)
    1793                              .arg(tr("Severity: ", "runtime error info"), severity);
     1792                             .arg(tr("<nobr>Error ID:</nobr>", "runtime error info"), strErrorId)
     1793                             .arg(tr("Severity:", "runtime error info"), severity);
    17941794    if (!formatted.isEmpty())
    17951795        formatted = "<qt>" + formatted + "</qt>";
  • trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.cpp

    r96407 r96430  
    27642764
    27652765        if (fileToDelete.remove(strFilePath))
    2766             sigStatusBarMessage(QString("%1 %2 %3").arg(UISoftKeyboard::tr("The file ")).arg(strFilePath).arg(UISoftKeyboard::tr(" has been deleted")));
     2766            sigStatusBarMessage(UISoftKeyboard::tr("The file %1 has been deleted").arg(strFilePath));
    27672767        else
    2768             sigStatusBarMessage(QString("%1 %2 %3").arg(UISoftKeyboard::tr("Deleting the file ")).arg(strFilePath).arg(UISoftKeyboard::tr(" has failed")));
     2768            sigStatusBarMessage(UISoftKeyboard::tr("Deleting the file %1 has failed").arg(strFilePath));
    27692769    }
    27702770
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMNameOSTypePage.cpp

    r96407 r96430  
    546546        QString strType = uiCommon().vmGuestOSTypeDescription(pWizard->detectedOSTypeId());
    547547        if (!pWizard->isUnattendedInstallSupported())
    548             strMessage = QString("%1 %2. %3").arg(UIWizardNewVM::tr("Detected OS type: ")).arg(strType)
    549                                                  .arg(UIWizardNewVM::tr("This OS type cannot be installed unattendedly. The install "
    550                                                                         "needs to be started manually."));
     548            strMessage = UIWizardNewVM::tr("Detected OS type: %1. %2")
     549                                           .arg(strType)
     550                                           .arg(UIWizardNewVM::tr("This OS type cannot be installed unattendedly. "
     551                                                                  "The install needs to be started manually."));
    551552        else if (pWizard->skipUnattendedInstall())
    552             strMessage = UIWizardNewVM::tr("You have selected to skip unattended guest OS install, the guest OS will need to be installed manually.");
     553            strMessage = UIWizardNewVM::tr("You have selected to skip unattended guest OS install, "
     554                                           "the guest OS will need to be installed manually.");
    553555        else
    554             strMessage = QString("%1 %2. %3").arg(UIWizardNewVM::tr("Detected OS type: ")).arg(strType)
    555                                                  .arg(UIWizardNewVM::tr("This OS type can be installed unattendedly. The install "
    556                                                                         "will start after this wizard is closed."));
     556            strMessage = UIWizardNewVM::tr("Detected OS type: %1. %2")
     557                                           .arg(strType)
     558                                           .arg(UIWizardNewVM::tr("This OS type can be installed unattendedly. "
     559                                                                  "The install will start after this wizard is closed."));
    557560    }
    558561
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