VirtualBox

Changeset 95912 in vbox


Ignore:
Timestamp:
Jul 28, 2022 2:19:41 PM (2 years ago)
Author:
vboxsync
Message:

FE/Qt/Ds: Fixing redundant NLS contexts for cloud related stuff.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/cloud/consolemanager/UICloudConsoleDetailsWidget.cpp

    r93115 r95912  
    2828#include "QIDialogButtonBox.h"
    2929#include "UICloudConsoleDetailsWidget.h"
     30#include "UICloudConsoleManager.h"
    3031
    3132/* Other VBox includes: */
     
    103104{
    104105    /* Translate editor labels: */
    105     m_pLabelApplicationName->setText(tr("Name:"));
    106     m_pLabelApplicationPath->setText(tr("Path:"));
    107     m_pLabelApplicationArgument->setText(tr("Argument:"));
    108     m_pLabelProfileName->setText(tr("Name:"));
    109     m_pLabelProfileArgument->setText(tr("Argument:"));
     106    m_pLabelApplicationName->setText(UICloudConsoleManager::tr("Name:"));
     107    m_pLabelApplicationPath->setText(UICloudConsoleManager::tr("Path:"));
     108    m_pLabelApplicationArgument->setText(UICloudConsoleManager::tr("Argument:"));
     109    m_pLabelProfileName->setText(UICloudConsoleManager::tr("Name:"));
     110    m_pLabelProfileArgument->setText(UICloudConsoleManager::tr("Argument:"));
    110111
    111112    /* Translate editor placeholders: */
    112     m_pEditorApplicationName->setPlaceholderText(tr("Enter a name for this console application..."));
    113     m_pEditorApplicationPath->setPlaceholderText(tr("Enter a path for this console application..."));
    114     m_pEditorApplicationArgument->setPlaceholderText(tr("Enter an argument for this console application..."));
    115     m_pEditorProfileName->setPlaceholderText(tr("Enter a name for this console profile..."));
    116     m_pEditorProfileArgument->setPlaceholderText(tr("Enter an argument for this console profile..."));
     113    m_pEditorApplicationName->setPlaceholderText(UICloudConsoleManager::tr("Enter a name for this console application..."));
     114    m_pEditorApplicationPath->setPlaceholderText(UICloudConsoleManager::tr("Enter a path for this console application..."));
     115    m_pEditorApplicationArgument->setPlaceholderText(UICloudConsoleManager::tr("Enter an argument for this console application..."));
     116    m_pEditorProfileName->setPlaceholderText(UICloudConsoleManager::tr("Enter a name for this console profile..."));
     117    m_pEditorProfileArgument->setPlaceholderText(UICloudConsoleManager::tr("Enter an argument for this console profile..."));
    117118
    118119    /* Translate buttons: */
     
    120121    {
    121122        /* 'Reset' button: */
    122         m_pButtonBox->button(QDialogButtonBox::Cancel)->setText(tr("Reset"));
    123         m_pButtonBox->button(QDialogButtonBox::Cancel)->setStatusTip(tr("Reset changes in current console details"));
     123        m_pButtonBox->button(QDialogButtonBox::Cancel)->setText(UICloudConsoleManager::tr("Reset"));
     124        m_pButtonBox->button(QDialogButtonBox::Cancel)->setStatusTip(UICloudConsoleManager::tr("Reset changes in current console details"));
    124125        m_pButtonBox->button(QDialogButtonBox::Cancel)->setShortcut(Qt::Key_Escape);
    125126        m_pButtonBox->button(QDialogButtonBox::Cancel)->
    126             setToolTip(tr("Reset Changes (%1)").arg(m_pButtonBox->button(QDialogButtonBox::Cancel)->shortcut().toString()));
     127            setToolTip(UICloudConsoleManager::tr("Reset Changes (%1)").arg(m_pButtonBox->button(QDialogButtonBox::Cancel)->shortcut().toString()));
    127128        /* 'Apply' button: */
    128         m_pButtonBox->button(QDialogButtonBox::Ok)->setText(tr("Apply"));
    129         m_pButtonBox->button(QDialogButtonBox::Ok)->setStatusTip(tr("Apply changes in current console details"));
     129        m_pButtonBox->button(QDialogButtonBox::Ok)->setText(UICloudConsoleManager::tr("Apply"));
     130        m_pButtonBox->button(QDialogButtonBox::Ok)->setStatusTip(UICloudConsoleManager::tr("Apply changes in current console details"));
    130131        m_pButtonBox->button(QDialogButtonBox::Ok)->setShortcut(QString("Ctrl+Return"));
    131132        m_pButtonBox->button(QDialogButtonBox::Ok)->
    132             setToolTip(tr("Apply Changes (%1)").arg(m_pButtonBox->button(QDialogButtonBox::Ok)->shortcut().toString()));
     133            setToolTip(UICloudConsoleManager::tr("Apply Changes (%1)").arg(m_pButtonBox->button(QDialogButtonBox::Ok)->shortcut().toString()));
    133134    }
    134135
  • trunk/src/VBox/Frontends/VirtualBox/src/cloud/consolemanager/UICloudConsoleManager.cpp

    r93996 r95912  
    273273void UIInputDialogCloudConsoleApplication::retranslateUi()
    274274{
    275     setWindowTitle(tr("Add Application"));
    276     m_pLabelName->setText(tr("Name:"));
    277     m_pLabelPath->setText(tr("Path:"));
    278     m_pLabelArgument->setText(tr("Argument:"));
     275    setWindowTitle(UICloudConsoleManager::tr("Add Application"));
     276    m_pLabelName->setText(UICloudConsoleManager::tr("Name:"));
     277    m_pLabelPath->setText(UICloudConsoleManager::tr("Path:"));
     278    m_pLabelArgument->setText(UICloudConsoleManager::tr("Argument:"));
    279279}
    280280
     
    382382void UIInputDialogCloudConsoleProfile::retranslateUi()
    383383{
    384     setWindowTitle(tr("Add Profile"));
    385     m_pLabelName->setText(tr("Name:"));
    386     m_pLabelArgument->setText(tr("Argument:"));
     384    setWindowTitle(UICloudConsoleManager::tr("Add Profile"));
     385    m_pLabelName->setText(UICloudConsoleManager::tr("Name:"));
     386    m_pLabelArgument->setText(UICloudConsoleManager::tr("Argument:"));
    387387}
    388388
     
    488488    /* Translate tree-widget: */
    489489    m_pTreeWidget->setHeaderLabels(   QStringList()
    490                                    << tr("Application")
    491                                    << tr("List in Menu"));
     490                                   << UICloudConsoleManager::tr("Application")
     491                                   << UICloudConsoleManager::tr("List in Menu"));
    492492}
    493493
  • trunk/src/VBox/Frontends/VirtualBox/src/cloud/machinesettings/UICloudMachineSettingsDialogPage.cpp

    r95726 r95912  
    5858{
    5959    AssertPtrReturnVoid(m_pFormEditor.data());
    60     m_pFormEditor->setWhatsThis(tr("Contains a list of cloud machine settings."));
     60    m_pFormEditor->setWhatsThis(UICloudMachineSettingsDialog::tr("Contains a list of cloud machine settings."));
    6161}
    6262
  • trunk/src/VBox/Frontends/VirtualBox/src/cloud/profilemanager/UICloudProfileDetailsWidget.cpp

    r95569 r95912  
    2929#include "UICommon.h"
    3030#include "UICloudProfileDetailsWidget.h"
     31#include "UICloudProfileManager.h"
    3132
    3233/* Other VBox includes: */
     
    6566
    6667    /* Translate name-editor label: */
    67     m_pLabelName->setText(tr("Name:"));
     68    m_pLabelName->setText(UICloudProfileManager::tr("Name:"));
    6869    /* Translate name-editor: */
    6970    retranslateEditor();
    7071
    7172    /* Translate table-widget label: */
    72     m_pLabelTableWidget->setText(tr("Properties:"));
     73    m_pLabelTableWidget->setText(UICloudProfileManager::tr("Properties:"));
    7374    /* Translate table-widget: */
    74     m_pTableWidget->setWhatsThis(tr("Contains cloud profile settings"));
     75    m_pTableWidget->setWhatsThis(UICloudProfileManager::tr("Contains cloud profile settings"));
    7576
    7677    /* Translate buttons: */
     
    8889    /* Translate placeholders: */
    8990    m_pEditorName->setPlaceholderText(  m_oldData.m_strName.isNull()
    90                                       ? tr("Enter a name for the new profile...")
    91                                       : tr("Enter a name for this profile..."));
     91                                      ? UICloudProfileManager::tr("Enter a name for the new profile...")
     92                                      : UICloudProfileManager::tr("Enter a name for this profile..."));
    9293}
    9394
     
    9899    {
    99100        /* Common: 'Reset' button: */
    100         m_pButtonBox->button(QDialogButtonBox::Cancel)->setText(tr("Reset"));
    101         m_pButtonBox->button(QDialogButtonBox::Cancel)->setStatusTip(tr("Reset changes in current profile details"));
     101        m_pButtonBox->button(QDialogButtonBox::Cancel)->setText(UICloudProfileManager::tr("Reset"));
     102        m_pButtonBox->button(QDialogButtonBox::Cancel)->setStatusTip(UICloudProfileManager::tr("Reset changes in current profile details"));
    102103        m_pButtonBox->button(QDialogButtonBox::Cancel)->setShortcut(Qt::Key_Escape);
    103104        m_pButtonBox->button(QDialogButtonBox::Cancel)->
    104             setToolTip(tr("Reset Changes (%1)").arg(m_pButtonBox->button(QDialogButtonBox::Cancel)->shortcut().toString()));
     105            setToolTip(UICloudProfileManager::tr("Reset Changes (%1)").arg(m_pButtonBox->button(QDialogButtonBox::Cancel)->shortcut().toString()));
    105106
    106107        if (m_oldData.m_strName.isNull())
    107108        {
    108109            /* Provider: 'Add' button: */
    109             m_pButtonBox->button(QDialogButtonBox::Ok)->setText(tr("Add"));
    110             m_pButtonBox->button(QDialogButtonBox::Ok)->setStatusTip(tr("Add a new profile with following name"));
     110            m_pButtonBox->button(QDialogButtonBox::Ok)->setText(UICloudProfileManager::tr("Add"));
     111            m_pButtonBox->button(QDialogButtonBox::Ok)->setStatusTip(UICloudProfileManager::tr("Add a new profile with following name"));
    111112            m_pButtonBox->button(QDialogButtonBox::Ok)->setShortcut(QString("Ctrl+Return"));
    112113            m_pButtonBox->button(QDialogButtonBox::Ok)->
    113                 setToolTip(tr("Add Profile (%1)").arg(m_pButtonBox->button(QDialogButtonBox::Ok)->shortcut().toString()));
     114                setToolTip(UICloudProfileManager::tr("Add Profile (%1)").arg(m_pButtonBox->button(QDialogButtonBox::Ok)->shortcut().toString()));
    114115        }
    115116        else
    116117        {
    117118            /* Profile: 'Apply' button: */
    118             m_pButtonBox->button(QDialogButtonBox::Ok)->setText(tr("Apply"));
    119             m_pButtonBox->button(QDialogButtonBox::Ok)->setStatusTip(tr("Apply changes in current profile details"));
     119            m_pButtonBox->button(QDialogButtonBox::Ok)->setText(UICloudProfileManager::tr("Apply"));
     120            m_pButtonBox->button(QDialogButtonBox::Ok)->setStatusTip(UICloudProfileManager::tr("Apply changes in current profile details"));
    120121            m_pButtonBox->button(QDialogButtonBox::Ok)->setShortcut(QString("Ctrl+Return"));
    121122            m_pButtonBox->button(QDialogButtonBox::Ok)->
    122                 setToolTip(tr("Apply Changes (%1)").arg(m_pButtonBox->button(QDialogButtonBox::Ok)->shortcut().toString()));
     123                setToolTip(UICloudProfileManager::tr("Apply Changes (%1)").arg(m_pButtonBox->button(QDialogButtonBox::Ok)->shortcut().toString()));
    123124        }
    124125    }
     
    357358        {
    358359            const QString strToolTip = pItemK->data(Qt::UserRole).toString();
    359             pItemK->setToolTip(tr(strToolTip.toUtf8().constData()));
     360            pItemK->setToolTip(UICloudProfileManager::tr(strToolTip.toUtf8().constData()));
    360361        }
    361362    }
  • trunk/src/VBox/Frontends/VirtualBox/src/cloud/profilemanager/UICloudProfileManager.cpp

    r93868 r95912  
    203203    /* Translate tree-widget: */
    204204    m_pTreeWidget->setHeaderLabels(   QStringList()
    205                                    << tr("Source")
    206                                    << tr("List VMs"));
    207     m_pTreeWidget->setWhatsThis(tr("Registered cloud providers and profiles"));
     205                                   << UICloudProfileManager::tr("Source")
     206                                   << UICloudProfileManager::tr("List VMs"));
     207    m_pTreeWidget->setWhatsThis(UICloudProfileManager::tr("Registered cloud providers and profiles"));
    208208}
    209209
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