Changeset 95912 in vbox
- Timestamp:
- Jul 28, 2022 2:19:41 PM (2 years ago)
- 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 28 28 #include "QIDialogButtonBox.h" 29 29 #include "UICloudConsoleDetailsWidget.h" 30 #include "UICloudConsoleManager.h" 30 31 31 32 /* Other VBox includes: */ … … 103 104 { 104 105 /* 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:")); 110 111 111 112 /* 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...")); 117 118 118 119 /* Translate buttons: */ … … 120 121 { 121 122 /* '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")); 124 125 m_pButtonBox->button(QDialogButtonBox::Cancel)->setShortcut(Qt::Key_Escape); 125 126 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())); 127 128 /* '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")); 130 131 m_pButtonBox->button(QDialogButtonBox::Ok)->setShortcut(QString("Ctrl+Return")); 131 132 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())); 133 134 } 134 135 -
trunk/src/VBox/Frontends/VirtualBox/src/cloud/consolemanager/UICloudConsoleManager.cpp
r93996 r95912 273 273 void UIInputDialogCloudConsoleApplication::retranslateUi() 274 274 { 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:")); 279 279 } 280 280 … … 382 382 void UIInputDialogCloudConsoleProfile::retranslateUi() 383 383 { 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:")); 387 387 } 388 388 … … 488 488 /* Translate tree-widget: */ 489 489 m_pTreeWidget->setHeaderLabels( QStringList() 490 << tr("Application")491 << tr("List in Menu"));490 << UICloudConsoleManager::tr("Application") 491 << UICloudConsoleManager::tr("List in Menu")); 492 492 } 493 493 -
trunk/src/VBox/Frontends/VirtualBox/src/cloud/machinesettings/UICloudMachineSettingsDialogPage.cpp
r95726 r95912 58 58 { 59 59 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.")); 61 61 } 62 62 -
trunk/src/VBox/Frontends/VirtualBox/src/cloud/profilemanager/UICloudProfileDetailsWidget.cpp
r95569 r95912 29 29 #include "UICommon.h" 30 30 #include "UICloudProfileDetailsWidget.h" 31 #include "UICloudProfileManager.h" 31 32 32 33 /* Other VBox includes: */ … … 65 66 66 67 /* Translate name-editor label: */ 67 m_pLabelName->setText( tr("Name:"));68 m_pLabelName->setText(UICloudProfileManager::tr("Name:")); 68 69 /* Translate name-editor: */ 69 70 retranslateEditor(); 70 71 71 72 /* Translate table-widget label: */ 72 m_pLabelTableWidget->setText( tr("Properties:"));73 m_pLabelTableWidget->setText(UICloudProfileManager::tr("Properties:")); 73 74 /* Translate table-widget: */ 74 m_pTableWidget->setWhatsThis( tr("Contains cloud profile settings"));75 m_pTableWidget->setWhatsThis(UICloudProfileManager::tr("Contains cloud profile settings")); 75 76 76 77 /* Translate buttons: */ … … 88 89 /* Translate placeholders: */ 89 90 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...")); 92 93 } 93 94 … … 98 99 { 99 100 /* 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")); 102 103 m_pButtonBox->button(QDialogButtonBox::Cancel)->setShortcut(Qt::Key_Escape); 103 104 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())); 105 106 106 107 if (m_oldData.m_strName.isNull()) 107 108 { 108 109 /* 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")); 111 112 m_pButtonBox->button(QDialogButtonBox::Ok)->setShortcut(QString("Ctrl+Return")); 112 113 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())); 114 115 } 115 116 else 116 117 { 117 118 /* 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")); 120 121 m_pButtonBox->button(QDialogButtonBox::Ok)->setShortcut(QString("Ctrl+Return")); 121 122 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())); 123 124 } 124 125 } … … 357 358 { 358 359 const QString strToolTip = pItemK->data(Qt::UserRole).toString(); 359 pItemK->setToolTip( tr(strToolTip.toUtf8().constData()));360 pItemK->setToolTip(UICloudProfileManager::tr(strToolTip.toUtf8().constData())); 360 361 } 361 362 } -
trunk/src/VBox/Frontends/VirtualBox/src/cloud/profilemanager/UICloudProfileManager.cpp
r93868 r95912 203 203 /* Translate tree-widget: */ 204 204 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")); 208 208 } 209 209
Note:
See TracChangeset
for help on using the changeset viewer.