- Timestamp:
- Jul 29, 2020 5:37:17 PM (5 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/cloud/consolemanager
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/cloud/consolemanager/UICloudConsoleDetailsWidget.cpp
r85486 r85530 66 66 /* Load data: */ 67 67 loadData(); 68 69 /* Translate linked widgets: */70 retranslateEditor();71 retranslateButtons();72 68 } 73 69 … … 86 82 /* Load data: */ 87 83 loadData(); 88 89 /* Translate linked widgets: */90 retranslateEditor();91 retranslateButtons();92 84 } 93 85 … … 110 102 void UICloudConsoleDetailsWidget::retranslateUi() 111 103 { 112 /* Translate name-editor labels: */104 /* Translate editor labels: */ 113 105 m_pLabelApplicationName->setText(tr("Name:")); 114 106 m_pLabelApplicationPath->setText(tr("Path:")); … … 116 108 m_pLabelProfileName->setText(tr("Name:")); 117 109 m_pLabelProfileArgument->setText(tr("Argument:")); 118 /* Translate name-editor: */ 119 retranslateEditor(); 120 121 /* Translate buttons: */ 122 retranslateButtons(); 123 124 /* Retranslate validation: */ 125 retranslateValidation(); 126 } 127 128 void UICloudConsoleDetailsWidget::retranslateEditor() 129 { 130 /* Translate placeholders: */ 110 111 /* Translate editor placeholders: */ 131 112 m_pEditorApplicationName->setPlaceholderText(tr("Enter a name for this console application...")); 132 113 m_pEditorApplicationPath->setPlaceholderText(tr("Enter a path for this console application...")); … … 134 115 m_pEditorProfileName->setPlaceholderText(tr("Enter a name for this console profile...")); 135 116 m_pEditorProfileArgument->setPlaceholderText(tr("Enter an argument for this console profile...")); 136 } 137 138 void UICloudConsoleDetailsWidget::retranslateButtons() 139 { 140 /* Translate button-box: */ 117 118 /* Translate buttons: */ 141 119 if (m_pButtonBox) 142 120 { 143 /* Common:'Reset' button: */121 /* 'Reset' button: */ 144 122 m_pButtonBox->button(QDialogButtonBox::Cancel)->setText(tr("Reset")); 145 123 m_pButtonBox->button(QDialogButtonBox::Cancel)->setStatusTip(tr("Reset changes in current console details")); … … 147 125 m_pButtonBox->button(QDialogButtonBox::Cancel)-> 148 126 setToolTip(tr("Reset Changes (%1)").arg(m_pButtonBox->button(QDialogButtonBox::Cancel)->shortcut().toString())); 149 150 /* Common: 'Apply' button: */ 127 /* 'Apply' button: */ 151 128 m_pButtonBox->button(QDialogButtonBox::Ok)->setText(tr("Apply")); 152 129 m_pButtonBox->button(QDialogButtonBox::Ok)->setStatusTip(tr("Apply changes in current console details")); … … 155 132 setToolTip(tr("Apply Changes (%1)").arg(m_pButtonBox->button(QDialogButtonBox::Ok)->shortcut().toString())); 156 133 } 134 135 /* Retranslate validation: */ 136 retranslateValidation(); 157 137 } 158 138 -
trunk/src/VBox/Frontends/VirtualBox/src/cloud/consolemanager/UICloudConsoleDetailsWidget.h
r85486 r85530 149 149 /** Handles translation event. */ 150 150 virtual void retranslateUi() /* override */; 151 /** Handles editor translation. */152 void retranslateEditor();153 /** Handles buttons translation. */154 void retranslateButtons();155 151 156 152 private slots:
Note:
See TracChangeset
for help on using the changeset viewer.