Changeset 95913 in vbox
- Timestamp:
- Jul 28, 2022 2:21:17 PM (2 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/networkmanager
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/networkmanager/UIDetailsWidgetCloudNetwork.cpp
r94027 r95913 37 37 #include "UIIconPool.h" 38 38 #include "UIMessageCenter.h" 39 #include "UINetworkManager.h" 39 40 #include "UINetworkManagerUtils.h" 40 41 #include "UINotificationCenter.h" … … 93 94 void UISubnetSelectionDialog::retranslateUi() 94 95 { 95 setWindowTitle( tr("Select Subnet"));96 setWindowTitle(UINetworkManager::tr("Select Subnet")); 96 97 } 97 98 … … 241 242 { 242 243 if (m_pLabelNetworkName) 243 m_pLabelNetworkName->setText( tr("N&ame:"));244 m_pLabelNetworkName->setText(UINetworkManager::tr("N&ame:")); 244 245 if (m_pEditorNetworkName) 245 m_pEditorNetworkName->setToolTip( tr("Holds the name for this network."));246 m_pEditorNetworkName->setToolTip(UINetworkManager::tr("Holds the name for this network.")); 246 247 if (m_pLabelProviderName) 247 m_pLabelProviderName->setText( tr("&Provider:"));248 m_pLabelProviderName->setText(UINetworkManager::tr("&Provider:")); 248 249 if (m_pComboProviderName) 249 m_pComboProviderName->setToolTip( tr("Holds the cloud provider for this network."));250 m_pComboProviderName->setToolTip(UINetworkManager::tr("Holds the cloud provider for this network.")); 250 251 if (m_pLabelProfileName) 251 m_pLabelProfileName->setText( tr("P&rofile:"));252 m_pLabelProfileName->setText(UINetworkManager::tr("P&rofile:")); 252 253 if (m_pComboProfileName) 253 m_pComboProfileName->setToolTip( tr("Holds the cloud profile for this network."));254 m_pComboProfileName->setToolTip(UINetworkManager::tr("Holds the cloud profile for this network.")); 254 255 if (m_pLabelNetworkId) 255 m_pLabelNetworkId->setText( tr("&Id:"));256 m_pLabelNetworkId->setText(UINetworkManager::tr("&Id:")); 256 257 if (m_pEditorNetworkId) 257 m_pEditorNetworkId->setToolTip( tr("Holds the id for this network."));258 m_pEditorNetworkId->setToolTip(UINetworkManager::tr("Holds the id for this network.")); 258 259 if (m_pButtonNetworkId) 259 m_pButtonNetworkId->setToolTip( tr("Selects the id for this network."));260 m_pButtonNetworkId->setToolTip(UINetworkManager::tr("Selects the id for this network.")); 260 261 if (m_pButtonBoxOptions) 261 262 { 262 m_pButtonBoxOptions->button(QDialogButtonBox::Cancel)->setText( tr("Reset"));263 m_pButtonBoxOptions->button(QDialogButtonBox::Ok)->setText( tr("Apply"));263 m_pButtonBoxOptions->button(QDialogButtonBox::Cancel)->setText(UINetworkManager::tr("Reset")); 264 m_pButtonBoxOptions->button(QDialogButtonBox::Ok)->setText(UINetworkManager::tr("Apply")); 264 265 m_pButtonBoxOptions->button(QDialogButtonBox::Cancel)->setShortcut(Qt::Key_Escape); 265 266 m_pButtonBoxOptions->button(QDialogButtonBox::Ok)->setShortcut(QString("Ctrl+Return")); 266 m_pButtonBoxOptions->button(QDialogButtonBox::Cancel)->setStatusTip(tr("Reset changes in current interface details")); 267 m_pButtonBoxOptions->button(QDialogButtonBox::Ok)->setStatusTip(tr("Apply changes in current interface details")); 267 m_pButtonBoxOptions->button(QDialogButtonBox::Cancel)->setStatusTip(UINetworkManager::tr("Reset changes in current " 268 "interface details")); 269 m_pButtonBoxOptions->button(QDialogButtonBox::Ok)->setStatusTip(UINetworkManager::tr("Apply changes in current " 270 "interface details")); 268 271 m_pButtonBoxOptions->button(QDialogButtonBox::Cancel)-> 269 setToolTip( tr("Reset Changes (%1)").arg(m_pButtonBoxOptions->button(QDialogButtonBox::Cancel)->shortcut().toString()));272 setToolTip(UINetworkManager::tr("Reset Changes (%1)").arg(m_pButtonBoxOptions->button(QDialogButtonBox::Cancel)->shortcut().toString())); 270 273 m_pButtonBoxOptions->button(QDialogButtonBox::Ok)-> 271 setToolTip( tr("Apply Changes (%1)").arg(m_pButtonBoxOptions->button(QDialogButtonBox::Ok)->shortcut().toString()));274 setToolTip(UINetworkManager::tr("Apply Changes (%1)").arg(m_pButtonBoxOptions->button(QDialogButtonBox::Ok)->shortcut().toString())); 272 275 } 273 276 } -
trunk/src/VBox/Frontends/VirtualBox/src/networkmanager/UIDetailsWidgetHostNetwork.cpp
r93996 r95913 31 31 #include "UIDetailsWidgetHostNetwork.h" 32 32 #include "UIMessageCenter.h" 33 #include "UINetworkManager.h" 33 34 #include "UINetworkManagerUtils.h" 34 35 #include "UINotificationCenter.h" … … 259 260 #ifdef VBOX_WS_MAC 260 261 if (m_pLabelName) 261 m_pLabelName->setText( tr("&Name:"));262 m_pLabelName->setText(UINetworkManager::tr("&Name:")); 262 263 if (m_pEditorName) 263 m_pEditorName->setToolTip( tr("Holds the name for this network."));264 m_pEditorName->setToolTip(UINetworkManager::tr("Holds the name for this network.")); 264 265 if (m_pLabelMask) 265 m_pLabelMask->setText( tr("&Mask:"));266 m_pLabelMask->setText(UINetworkManager::tr("&Mask:")); 266 267 if (m_pEditorMask) 267 m_pEditorMask->setToolTip( tr("Holds the mask for this network."));268 m_pEditorMask->setToolTip(UINetworkManager::tr("Holds the mask for this network.")); 268 269 if (m_pLabelLBnd) 269 m_pLabelLBnd->setText( tr("&Lower Bound:"));270 m_pLabelLBnd->setText(UINetworkManager::tr("&Lower Bound:")); 270 271 if (m_pEditorLBnd) 271 m_pEditorLBnd->setToolTip( tr("Holds the lower address bound for this network."));272 m_pEditorLBnd->setToolTip(UINetworkManager::tr("Holds the lower address bound for this network.")); 272 273 if (m_pLabelUBnd) 273 m_pLabelUBnd->setText( tr("&Upper Bound:"));274 m_pLabelUBnd->setText(UINetworkManager::tr("&Upper Bound:")); 274 275 if (m_pEditorUBnd) 275 m_pEditorUBnd->setToolTip( tr("Holds the upper address bound for this network."));276 m_pEditorUBnd->setToolTip(UINetworkManager::tr("Holds the upper address bound for this network.")); 276 277 if (m_pButtonBox) 277 278 { 278 m_pButtonBox->button(QDialogButtonBox::Cancel)->setText( tr("Reset"));279 m_pButtonBox->button(QDialogButtonBox::Ok)->setText( tr("Apply"));279 m_pButtonBox->button(QDialogButtonBox::Cancel)->setText(UINetworkManager::tr("Reset")); 280 m_pButtonBox->button(QDialogButtonBox::Ok)->setText(UINetworkManager::tr("Apply")); 280 281 m_pButtonBox->button(QDialogButtonBox::Cancel)->setShortcut(Qt::Key_Escape); 281 282 m_pButtonBox->button(QDialogButtonBox::Ok)->setShortcut(QString("Ctrl+Return")); 282 m_pButtonBox->button(QDialogButtonBox::Cancel)->setStatusTip( tr("Reset changes in current network details"));283 m_pButtonBox->button(QDialogButtonBox::Ok)->setStatusTip( tr("Apply changes in current network details"));283 m_pButtonBox->button(QDialogButtonBox::Cancel)->setStatusTip(UINetworkManager::tr("Reset changes in current network details")); 284 m_pButtonBox->button(QDialogButtonBox::Ok)->setStatusTip(UINetworkManager::tr("Apply changes in current network details")); 284 285 m_pButtonBox->button(QDialogButtonBox::Cancel)-> 285 setToolTip( tr("Reset Changes (%1)").arg(m_pButtonBox->button(QDialogButtonBox::Cancel)->shortcut().toString()));286 setToolTip(UINetworkManager::tr("Reset Changes (%1)").arg(m_pButtonBox->button(QDialogButtonBox::Cancel)->shortcut().toString())); 286 287 m_pButtonBox->button(QDialogButtonBox::Ok)-> 287 setToolTip( tr("Apply Changes (%1)").arg(m_pButtonBox->button(QDialogButtonBox::Ok)->shortcut().toString()));288 setToolTip(UINetworkManager::tr("Apply Changes (%1)").arg(m_pButtonBox->button(QDialogButtonBox::Ok)->shortcut().toString())); 288 289 } 289 290 … … 293 294 if (m_pTabWidget) 294 295 { 295 m_pTabWidget->setTabText(0, tr("&Adapter"));296 m_pTabWidget->setTabText(1, tr("&DHCP Server"));296 m_pTabWidget->setTabText(0, UINetworkManager::tr("&Adapter")); 297 m_pTabWidget->setTabText(1, UINetworkManager::tr("&DHCP Server")); 297 298 } 298 299 299 300 /* Translate 'Interface' tab content: */ 300 301 if (m_pButtonAutomatic) 301 m_pButtonAutomatic->setText( tr("Configure Adapter &Automatically"));302 m_pButtonAutomatic->setText(UINetworkManager::tr("Configure Adapter &Automatically")); 302 303 if (m_pButtonManual) 303 m_pButtonManual->setText( tr("Configure Adapter &Manually"));304 m_pButtonManual->setText(UINetworkManager::tr("Configure Adapter &Manually")); 304 305 if (m_pLabelIPv4) 305 m_pLabelIPv4->setText( tr("&IPv4 Address:"));306 m_pLabelIPv4->setText(UINetworkManager::tr("&IPv4 Address:")); 306 307 if (m_pEditorIPv4) 307 m_pEditorIPv4->setToolTip( tr("Holds the host IPv4 address for this adapter."));308 m_pEditorIPv4->setToolTip(UINetworkManager::tr("Holds the host IPv4 address for this adapter.")); 308 309 if (m_pLabelNMv4) 309 m_pLabelNMv4->setText( tr("IPv4 Network &Mask:"));310 m_pLabelNMv4->setText(UINetworkManager::tr("IPv4 Network &Mask:")); 310 311 if (m_pEditorNMv4) 311 m_pEditorNMv4->setToolTip( tr("Holds the host IPv4 network mask for this adapter."));312 m_pEditorNMv4->setToolTip(UINetworkManager::tr("Holds the host IPv4 network mask for this adapter.")); 312 313 if (m_pLabelIPv6) 313 m_pLabelIPv6->setText( tr("I&Pv6 Address:"));314 m_pLabelIPv6->setText(UINetworkManager::tr("I&Pv6 Address:")); 314 315 if (m_pEditorIPv6) 315 m_pEditorIPv6->setToolTip( tr("Holds the host IPv6 address for this adapter if IPv6 is supported."));316 m_pEditorIPv6->setToolTip(UINetworkManager::tr("Holds the host IPv6 address for this adapter if IPv6 is supported.")); 316 317 if (m_pLabelNMv6) 317 m_pLabelNMv6->setText( tr("IPv6 Prefix &Length:"));318 m_pLabelNMv6->setText(UINetworkManager::tr("IPv6 Prefix &Length:")); 318 319 if (m_pEditorNMv6) 319 m_pEditorNMv6->setToolTip( tr("Holds the host IPv6 prefix length for this adapter if IPv6 is supported."));320 m_pEditorNMv6->setToolTip(UINetworkManager::tr("Holds the host IPv6 prefix length for this adapter if IPv6 is supported.")); 320 321 if (m_pButtonBoxInterface) 321 322 { 322 m_pButtonBoxInterface->button(QDialogButtonBox::Cancel)->setText( tr("Reset"));323 m_pButtonBoxInterface->button(QDialogButtonBox::Ok)->setText( tr("Apply"));323 m_pButtonBoxInterface->button(QDialogButtonBox::Cancel)->setText(UINetworkManager::tr("Reset")); 324 m_pButtonBoxInterface->button(QDialogButtonBox::Ok)->setText(UINetworkManager::tr("Apply")); 324 325 m_pButtonBoxInterface->button(QDialogButtonBox::Cancel)->setShortcut(Qt::Key_Escape); 325 326 m_pButtonBoxInterface->button(QDialogButtonBox::Ok)->setShortcut(QString("Ctrl+Return")); 326 m_pButtonBoxInterface->button(QDialogButtonBox::Cancel)->setStatusTip( tr("Reset changes in current interface details"));327 m_pButtonBoxInterface->button(QDialogButtonBox::Ok)->setStatusTip( tr("Apply changes in current interface details"));327 m_pButtonBoxInterface->button(QDialogButtonBox::Cancel)->setStatusTip(UINetworkManager::tr("Reset changes in current interface details")); 328 m_pButtonBoxInterface->button(QDialogButtonBox::Ok)->setStatusTip(UINetworkManager::tr("Apply changes in current interface details")); 328 329 m_pButtonBoxInterface->button(QDialogButtonBox::Cancel)-> 329 setToolTip( tr("Reset Changes (%1)").arg(m_pButtonBoxInterface->button(QDialogButtonBox::Cancel)->shortcut().toString()));330 setToolTip(UINetworkManager::tr("Reset Changes (%1)").arg(m_pButtonBoxInterface->button(QDialogButtonBox::Cancel)->shortcut().toString())); 330 331 m_pButtonBoxInterface->button(QDialogButtonBox::Ok)-> 331 setToolTip( tr("Apply Changes (%1)").arg(m_pButtonBoxInterface->button(QDialogButtonBox::Ok)->shortcut().toString()));332 setToolTip(UINetworkManager::tr("Apply Changes (%1)").arg(m_pButtonBoxInterface->button(QDialogButtonBox::Ok)->shortcut().toString())); 332 333 } 333 334 … … 335 336 if (m_pCheckBoxDHCP) 336 337 { 337 m_pCheckBoxDHCP->setText( tr("&Enable Server"));338 m_pCheckBoxDHCP->setToolTip( tr("When checked, the DHCP Server will be enabled for this network on machine start-up."));338 m_pCheckBoxDHCP->setText(UINetworkManager::tr("&Enable Server")); 339 m_pCheckBoxDHCP->setToolTip(UINetworkManager::tr("When checked, the DHCP Server will be enabled for this network on machine start-up.")); 339 340 } 340 341 if (m_pLabelDHCPAddress) 341 m_pLabelDHCPAddress->setText( tr("Server Add&ress:"));342 m_pLabelDHCPAddress->setText(UINetworkManager::tr("Server Add&ress:")); 342 343 if (m_pEditorDHCPAddress) 343 m_pEditorDHCPAddress->setToolTip( tr("Holds the address of the DHCP server servicing the network associated with this host-only adapter."));344 m_pEditorDHCPAddress->setToolTip(UINetworkManager::tr("Holds the address of the DHCP server servicing the network associated with this host-only adapter.")); 344 345 if (m_pLabelDHCPMask) 345 m_pLabelDHCPMask->setText( tr("Server &Mask:"));346 m_pLabelDHCPMask->setText(UINetworkManager::tr("Server &Mask:")); 346 347 if (m_pEditorDHCPMask) 347 m_pEditorDHCPMask->setToolTip( tr("Holds the network mask of the DHCP server servicing the network associated with this host-only adapter."));348 m_pEditorDHCPMask->setToolTip(UINetworkManager::tr("Holds the network mask of the DHCP server servicing the network associated with this host-only adapter.")); 348 349 if (m_pLabelDHCPLowerAddress) 349 m_pLabelDHCPLowerAddress->setText( tr("&Lower Address Bound:"));350 m_pLabelDHCPLowerAddress->setText(UINetworkManager::tr("&Lower Address Bound:")); 350 351 if (m_pEditorDHCPLowerAddress) 351 m_pEditorDHCPLowerAddress->setToolTip( tr("Holds the lower address bound offered by the DHCP server servicing the network associated with this host-only adapter."));352 m_pEditorDHCPLowerAddress->setToolTip(UINetworkManager::tr("Holds the lower address bound offered by the DHCP server servicing the network associated with this host-only adapter.")); 352 353 if (m_pLabelDHCPUpperAddress) 353 m_pLabelDHCPUpperAddress->setText( tr("&Upper Address Bound:"));354 m_pLabelDHCPUpperAddress->setText(UINetworkManager::tr("&Upper Address Bound:")); 354 355 if (m_pEditorDHCPUpperAddress) 355 m_pEditorDHCPUpperAddress->setToolTip( tr("Holds the upper address bound offered by the DHCP server servicing the network associated with this host-only adapter."));356 m_pEditorDHCPUpperAddress->setToolTip(UINetworkManager::tr("Holds the upper address bound offered by the DHCP server servicing the network associated with this host-only adapter.")); 356 357 if (m_pButtonBoxServer) 357 358 { 358 m_pButtonBoxServer->button(QDialogButtonBox::Cancel)->setText( tr("Reset"));359 m_pButtonBoxServer->button(QDialogButtonBox::Ok)->setText( tr("Apply"));359 m_pButtonBoxServer->button(QDialogButtonBox::Cancel)->setText(UINetworkManager::tr("Reset")); 360 m_pButtonBoxServer->button(QDialogButtonBox::Ok)->setText(UINetworkManager::tr("Apply")); 360 361 m_pButtonBoxServer->button(QDialogButtonBox::Cancel)->setShortcut(Qt::Key_Escape); 361 362 m_pButtonBoxServer->button(QDialogButtonBox::Ok)->setShortcut(QString("Ctrl+Return")); 362 m_pButtonBoxServer->button(QDialogButtonBox::Cancel)->setStatusTip( tr("Reset changes in current DHCP server details"));363 m_pButtonBoxServer->button(QDialogButtonBox::Ok)->setStatusTip( tr("Apply changes in current DHCP server details"));363 m_pButtonBoxServer->button(QDialogButtonBox::Cancel)->setStatusTip(UINetworkManager::tr("Reset changes in current DHCP server details")); 364 m_pButtonBoxServer->button(QDialogButtonBox::Ok)->setStatusTip(UINetworkManager::tr("Apply changes in current DHCP server details")); 364 365 m_pButtonBoxServer->button(QDialogButtonBox::Cancel)-> 365 setToolTip( tr("Reset Changes (%1)").arg(m_pButtonBoxServer->button(QDialogButtonBox::Cancel)->shortcut().toString()));366 setToolTip(UINetworkManager::tr("Reset Changes (%1)").arg(m_pButtonBoxServer->button(QDialogButtonBox::Cancel)->shortcut().toString())); 366 367 m_pButtonBoxServer->button(QDialogButtonBox::Ok)-> 367 setToolTip( tr("Apply Changes (%1)").arg(m_pButtonBoxServer->button(QDialogButtonBox::Ok)->shortcut().toString()));368 setToolTip(UINetworkManager::tr("Apply Changes (%1)").arg(m_pButtonBoxServer->button(QDialogButtonBox::Ok)->shortcut().toString())); 368 369 } 369 370 #endif /* !VBOX_WS_MAC */ -
trunk/src/VBox/Frontends/VirtualBox/src/networkmanager/UIDetailsWidgetNATNetwork.cpp
r93975 r95913 32 32 #include "UIDetailsWidgetNATNetwork.h" 33 33 #include "UIMessageCenter.h" 34 #include "UINetworkManager.h" 34 35 #include "UINetworkManagerUtils.h" 35 36 #include "UINotificationCenter.h" … … 146 147 if (m_pTabWidget) 147 148 { 148 m_pTabWidget->setTabText(0, tr("&General Options"));149 m_pTabWidget->setTabText(1, tr("&Port Forwarding"));149 m_pTabWidget->setTabText(0, UINetworkManager::tr("&General Options")); 150 m_pTabWidget->setTabText(1, UINetworkManager::tr("&Port Forwarding")); 150 151 } 151 152 152 153 if (m_pLabelNetworkName) 153 m_pLabelNetworkName->setText( tr("N&ame:"));154 m_pLabelNetworkName->setText(UINetworkManager::tr("N&ame:")); 154 155 if (m_pEditorNetworkName) 155 m_pEditorNetworkName->setToolTip( tr("Holds the name for this network."));156 m_pEditorNetworkName->setToolTip(UINetworkManager::tr("Holds the name for this network.")); 156 157 if (m_pLabelNetworkIPv4Prefix) 157 m_pLabelNetworkIPv4Prefix->setText( tr("IPv&4 Prefix:"));158 m_pLabelNetworkIPv4Prefix->setText(UINetworkManager::tr("IPv&4 Prefix:")); 158 159 if (m_pEditorNetworkIPv4Prefix) 159 m_pEditorNetworkIPv4Prefix->setToolTip( tr("Holds the IPv4 prefix for this network."));160 m_pEditorNetworkIPv4Prefix->setToolTip(UINetworkManager::tr("Holds the IPv4 prefix for this network.")); 160 161 if (m_pLabelNetworkIPv6Prefix) 161 m_pLabelNetworkIPv6Prefix->setText( tr("IPv&6 Prefix:"));162 m_pLabelNetworkIPv6Prefix->setText(UINetworkManager::tr("IPv&6 Prefix:")); 162 163 if (m_pEditorNetworkIPv6Prefix) 163 m_pEditorNetworkIPv6Prefix->setToolTip( tr("Holds the IPv6 prefix for this network."));164 m_pEditorNetworkIPv6Prefix->setToolTip(UINetworkManager::tr("Holds the IPv6 prefix for this network.")); 164 165 if (m_pCheckboxSupportsDHCP) 165 166 { 166 m_pCheckboxSupportsDHCP->setText( tr("Enable &DHCP"));167 m_pCheckboxSupportsDHCP->setToolTip( tr("When checked, this network will support DHCP."));167 m_pCheckboxSupportsDHCP->setText(UINetworkManager::tr("Enable &DHCP")); 168 m_pCheckboxSupportsDHCP->setToolTip(UINetworkManager::tr("When checked, this network will support DHCP.")); 168 169 } 169 170 if (m_pCheckboxIPv6) 170 171 { 171 m_pCheckboxIPv6->setText( tr("&Enable IPv6"));172 m_pCheckboxIPv6->setToolTip( tr("When checked, this network will support IPv6."));172 m_pCheckboxIPv6->setText(UINetworkManager::tr("&Enable IPv6")); 173 m_pCheckboxIPv6->setToolTip(UINetworkManager::tr("When checked, this network will support IPv6.")); 173 174 } 174 175 if (m_pCheckboxAdvertiseDefaultIPv6Route) 175 176 { 176 m_pCheckboxAdvertiseDefaultIPv6Route->setText(tr("Advertise Default IPv6 &Route")); 177 m_pCheckboxAdvertiseDefaultIPv6Route->setToolTip(tr("When checked, this network will be advertised as the default IPv6 route.")); 177 m_pCheckboxAdvertiseDefaultIPv6Route->setText(UINetworkManager::tr("Advertise Default IPv6 &Route")); 178 m_pCheckboxAdvertiseDefaultIPv6Route->setToolTip(UINetworkManager::tr("When checked, this network will be advertised " 179 "as the default IPv6 route.")); 178 180 } 179 181 if (m_pButtonBoxOptions) 180 182 { 181 m_pButtonBoxOptions->button(QDialogButtonBox::Cancel)->setText( tr("Reset"));182 m_pButtonBoxOptions->button(QDialogButtonBox::Ok)->setText( tr("Apply"));183 m_pButtonBoxOptions->button(QDialogButtonBox::Cancel)->setText(UINetworkManager::tr("Reset")); 184 m_pButtonBoxOptions->button(QDialogButtonBox::Ok)->setText(UINetworkManager::tr("Apply")); 183 185 m_pButtonBoxOptions->button(QDialogButtonBox::Cancel)->setShortcut(Qt::Key_Escape); 184 186 m_pButtonBoxOptions->button(QDialogButtonBox::Ok)->setShortcut(QString("Ctrl+Return")); 185 m_pButtonBoxOptions->button(QDialogButtonBox::Cancel)->setStatusTip(tr("Reset changes in current interface details")); 186 m_pButtonBoxOptions->button(QDialogButtonBox::Ok)->setStatusTip(tr("Apply changes in current interface details")); 187 m_pButtonBoxOptions->button(QDialogButtonBox::Cancel)->setStatusTip(UINetworkManager::tr("Reset changes in current " 188 "interface details")); 189 m_pButtonBoxOptions->button(QDialogButtonBox::Ok)->setStatusTip(UINetworkManager::tr("Apply changes in current " 190 "interface details")); 187 191 m_pButtonBoxOptions->button(QDialogButtonBox::Cancel)-> 188 setToolTip( tr("Reset Changes (%1)").arg(m_pButtonBoxOptions->button(QDialogButtonBox::Cancel)->shortcut().toString()));192 setToolTip(UINetworkManager::tr("Reset Changes (%1)").arg(m_pButtonBoxOptions->button(QDialogButtonBox::Cancel)->shortcut().toString())); 189 193 m_pButtonBoxOptions->button(QDialogButtonBox::Ok)-> 190 setToolTip( tr("Apply Changes (%1)").arg(m_pButtonBoxOptions->button(QDialogButtonBox::Ok)->shortcut().toString()));194 setToolTip(UINetworkManager::tr("Apply Changes (%1)").arg(m_pButtonBoxOptions->button(QDialogButtonBox::Ok)->shortcut().toString())); 191 195 } 192 196 … … 194 198 if (m_pTabWidgetForwarding) 195 199 { 196 m_pTabWidgetForwarding->setTabText(0, tr("IPv&4"));197 m_pTabWidgetForwarding->setTabText(1, tr("IPv&6"));200 m_pTabWidgetForwarding->setTabText(0, UINetworkManager::tr("IPv&4")); 201 m_pTabWidgetForwarding->setTabText(1, UINetworkManager::tr("IPv&6")); 198 202 } 199 203 if (m_pButtonBoxForwarding) 200 204 { 201 m_pButtonBoxForwarding->button(QDialogButtonBox::Cancel)->setText( tr("Reset"));202 m_pButtonBoxForwarding->button(QDialogButtonBox::Ok)->setText( tr("Apply"));205 m_pButtonBoxForwarding->button(QDialogButtonBox::Cancel)->setText(UINetworkManager::tr("Reset")); 206 m_pButtonBoxForwarding->button(QDialogButtonBox::Ok)->setText(UINetworkManager::tr("Apply")); 203 207 m_pButtonBoxForwarding->button(QDialogButtonBox::Cancel)->setShortcut(Qt::Key_Escape); 204 208 m_pButtonBoxForwarding->button(QDialogButtonBox::Ok)->setShortcut(QString("Ctrl+Return")); 205 m_pButtonBoxForwarding->button(QDialogButtonBox::Cancel)->setStatusTip(tr("Reset changes in current interface details")); 206 m_pButtonBoxForwarding->button(QDialogButtonBox::Ok)->setStatusTip(tr("Apply changes in current interface details")); 209 m_pButtonBoxForwarding->button(QDialogButtonBox::Cancel)->setStatusTip(UINetworkManager::tr("Reset changes in current " 210 "interface details")); 211 m_pButtonBoxForwarding->button(QDialogButtonBox::Ok)->setStatusTip(UINetworkManager::tr("Apply changes in current " 212 "interface details")); 207 213 m_pButtonBoxForwarding->button(QDialogButtonBox::Cancel)-> 208 setToolTip( tr("Reset Changes (%1)").arg(m_pButtonBoxForwarding->button(QDialogButtonBox::Cancel)->shortcut().toString()));214 setToolTip(UINetworkManager::tr("Reset Changes (%1)").arg(m_pButtonBoxForwarding->button(QDialogButtonBox::Cancel)->shortcut().toString())); 209 215 m_pButtonBoxForwarding->button(QDialogButtonBox::Ok)-> 210 setToolTip( tr("Apply Changes (%1)").arg(m_pButtonBoxForwarding->button(QDialogButtonBox::Ok)->shortcut().toString()));216 setToolTip(UINetworkManager::tr("Apply Changes (%1)").arg(m_pButtonBoxForwarding->button(QDialogButtonBox::Ok)->shortcut().toString())); 211 217 } 212 218 } -
trunk/src/VBox/Frontends/VirtualBox/src/networkmanager/UINetworkManager.cpp
r93996 r95913 190 190 191 191 /* Network information: */ 192 strToolTip += strHeader.arg( tr("Name"), m_strName);193 strToolTip += strHeader.arg( tr("Mask"), m_strMask);194 strToolTip += strHeader.arg( tr("Lower Bound"), m_strLBnd);195 strToolTip += strHeader.arg( tr("Upper Bound"), m_strUBnd);192 strToolTip += strHeader.arg(UINetworkManager::tr("Name"), m_strName); 193 strToolTip += strHeader.arg(UINetworkManager::tr("Mask"), m_strMask); 194 strToolTip += strHeader.arg(UINetworkManager::tr("Lower Bound"), m_strLBnd); 195 strToolTip += strHeader.arg(UINetworkManager::tr("Upper Bound"), m_strUBnd); 196 196 197 197 #else /* !VBOX_WS_MAC */ … … 203 203 setText(HostNetworkColumn_IPv6, m_interface.m_strAddress6.isEmpty() || !m_interface.m_fSupportedIPv6 ? QString() : 204 204 QString("%1/%2").arg(m_interface.m_strAddress6).arg(m_interface.m_strPrefixLength6.toInt())); 205 setText(HostNetworkColumn_DHCP, m_dhcpserver.m_fEnabled ? tr("Enabled", "DHCP Server") : tr("Disabled", "DHCP Server")); 205 setText(HostNetworkColumn_DHCP, m_dhcpserver.m_fEnabled ? UINetworkManager::tr("Enabled", "DHCP Server") 206 : UINetworkManager::tr("Disabled", "DHCP Server")); 206 207 207 208 /* Compose item tool-tip: */ … … 212 213 213 214 /* Interface information: */ 214 strToolTip += strHeader.arg( tr("Adapter"))215 strToolTip += strHeader.arg(UINetworkManager::tr("Adapter")) 215 216 .arg(m_interface.m_fDHCPEnabled ? 216 tr("Automatically configured", "interface") :217 tr("Manually configured", "interface"));218 strToolTip += strSubHeader.arg( tr("IPv4 Address"))217 UINetworkManager::tr("Automatically configured", "interface") : 218 UINetworkManager::tr("Manually configured", "interface")); 219 strToolTip += strSubHeader.arg(UINetworkManager::tr("IPv4 Address")) 219 220 .arg(m_interface.m_strAddress.isEmpty() ? 220 tr ("Not set", "address") :221 UINetworkManager::tr ("Not set", "address") : 221 222 m_interface.m_strAddress) + 222 strSubHeader.arg( tr("IPv4 Network Mask"))223 strSubHeader.arg(UINetworkManager::tr("IPv4 Network Mask")) 223 224 .arg(m_interface.m_strMask.isEmpty() ? 224 tr ("Not set", "mask") :225 UINetworkManager::tr ("Not set", "mask") : 225 226 m_interface.m_strMask); 226 227 if (m_interface.m_fSupportedIPv6) 227 228 { 228 strToolTip += strSubHeader.arg( tr("IPv6 Address"))229 strToolTip += strSubHeader.arg(UINetworkManager::tr("IPv6 Address")) 229 230 .arg(m_interface.m_strAddress6.isEmpty() ? 230 tr("Not set", "address") :231 UINetworkManager::tr("Not set", "address") : 231 232 m_interface.m_strAddress6) + 232 strSubHeader.arg( tr("IPv6 Prefix Length"))233 strSubHeader.arg(UINetworkManager::tr("IPv6 Prefix Length")) 233 234 .arg(m_interface.m_strPrefixLength6.isEmpty() ? 234 tr("Not set", "length") :235 UINetworkManager::tr("Not set", "length") : 235 236 m_interface.m_strPrefixLength6); 236 237 } 237 238 238 239 /* DHCP server information: */ 239 strToolTip += strHeader.arg( tr("DHCP Server"))240 strToolTip += strHeader.arg(UINetworkManager::tr("DHCP Server")) 240 241 .arg(m_dhcpserver.m_fEnabled ? 241 tr("Enabled", "server") :242 tr("Disabled", "server"));242 UINetworkManager::tr("Enabled", "server") : 243 UINetworkManager::tr("Disabled", "server")); 243 244 if (m_dhcpserver.m_fEnabled) 244 245 { 245 strToolTip += strSubHeader.arg( tr("Address"))246 strToolTip += strSubHeader.arg(UINetworkManager::tr("Address")) 246 247 .arg(m_dhcpserver.m_strAddress.isEmpty() ? 247 tr("Not set", "address") :248 UINetworkManager::tr("Not set", "address") : 248 249 m_dhcpserver.m_strAddress) + 249 strSubHeader.arg( tr("Network Mask"))250 strSubHeader.arg(UINetworkManager::tr("Network Mask")) 250 251 .arg(m_dhcpserver.m_strMask.isEmpty() ? 251 tr("Not set", "mask") :252 UINetworkManager::tr("Not set", "mask") : 252 253 m_dhcpserver.m_strMask) + 253 strSubHeader.arg( tr("Lower Bound"))254 strSubHeader.arg(UINetworkManager::tr("Lower Bound")) 254 255 .arg(m_dhcpserver.m_strLowerAddress.isEmpty() ? 255 tr("Not set", "bound") :256 UINetworkManager::tr("Not set", "bound") : 256 257 m_dhcpserver.m_strLowerAddress) + 257 strSubHeader.arg( tr("Upper Bound"))258 strSubHeader.arg(UINetworkManager::tr("Upper Bound")) 258 259 .arg(m_dhcpserver.m_strUpperAddress.isEmpty() ? 259 tr("Not set", "bound") :260 UINetworkManager::tr("Not set", "bound") : 260 261 m_dhcpserver.m_strUpperAddress); 261 262 } … … 310 311 setText(NATNetworkColumn_IPv4, m_strPrefixIPv4); 311 312 setText(NATNetworkColumn_IPv6, m_strPrefixIPv6); 312 setText(NATNetworkColumn_DHCP, m_fSupportsDHCP ? tr("Enabled", "DHCP Server") : tr("Disabled", "DHCP Server")); 313 setText(NATNetworkColumn_DHCP, m_fSupportsDHCP ? UINetworkManager::tr("Enabled", "DHCP Server") 314 : UINetworkManager::tr("Disabled", "DHCP Server")); 313 315 314 316 /* Compose item tool-tip: */ … … 319 321 320 322 /* Network information: */ 321 strToolTip += strHeader.arg(tr("Network Name"), m_strName); 322 strToolTip += strHeader.arg(tr("Network IPv4 Prefix"), m_strPrefixIPv4); 323 strToolTip += strHeader.arg(tr("Network IPv6 Prefix"), m_strPrefixIPv6); 324 strToolTip += strHeader.arg(tr("Supports DHCP"), m_fSupportsDHCP ? tr("yes") : tr("no")); 325 strToolTip += strHeader.arg(tr("Supports IPv6"), m_fSupportsIPv6 ? tr("yes") : tr("no")); 323 strToolTip += strHeader.arg(UINetworkManager::tr("Network Name"), m_strName); 324 strToolTip += strHeader.arg(UINetworkManager::tr("Network IPv4 Prefix"), m_strPrefixIPv4); 325 strToolTip += strHeader.arg(UINetworkManager::tr("Network IPv6 Prefix"), m_strPrefixIPv6); 326 strToolTip += strHeader.arg(UINetworkManager::tr("Supports DHCP"), m_fSupportsDHCP ? UINetworkManager::tr("yes") 327 : UINetworkManager::tr("no")); 328 strToolTip += strHeader.arg(UINetworkManager::tr("Supports IPv6"), m_fSupportsIPv6 ? UINetworkManager::tr("yes") 329 : UINetworkManager::tr("no")); 326 330 if (m_fSupportsIPv6 && m_fAdvertiseDefaultIPv6Route) 327 strToolTip += strSubHeader.arg( tr("Default IPv6 route"),tr("yes"));331 strToolTip += strSubHeader.arg(UINetworkManager::tr("Default IPv6 route"), UINetworkManager::tr("yes")); 328 332 329 333 /* Assign tool-tip finally: */ … … 349 353 350 354 /* Network information: */ 351 strToolTip += strHeader.arg( tr("Network Name"), m_strName);352 strToolTip += strHeader.arg( tr("Provider"), m_strProvider);353 strToolTip += strHeader.arg( tr("Profile"), m_strProfile);355 strToolTip += strHeader.arg(UINetworkManager::tr("Network Name"), m_strName); 356 strToolTip += strHeader.arg(UINetworkManager::tr("Provider"), m_strProvider); 357 strToolTip += strHeader.arg(UINetworkManager::tr("Profile"), m_strProfile); 354 358 355 359 /* Assign tool-tip finally: */ … … 430 434 #endif /* !VBOX_WS_MAC */ 431 435 m_pTreeWidgetHostNetwork->setHeaderLabels(fields); 432 m_pTreeWidgetHostNetwork->setWhatsThis( tr("Registered host networks"));436 m_pTreeWidgetHostNetwork->setWhatsThis(UINetworkManager::tr("Registered host networks")); 433 437 } 434 438 … … 442 446 << UINetworkManager::tr("DHCP Server"); 443 447 m_pTreeWidgetNATNetwork->setHeaderLabels(fields); 444 m_pTreeWidgetNATNetwork->setWhatsThis( tr("Registered NAT networks"));448 m_pTreeWidgetNATNetwork->setWhatsThis(UINetworkManager::tr("Registered NAT networks")); 445 449 } 446 450 … … 453 457 << UINetworkManager::tr("Profile"); 454 458 m_pTreeWidgetCloudNetwork->setHeaderLabels(fields); 455 m_pTreeWidgetCloudNetwork->setWhatsThis( tr("Registered cloud networks"));459 m_pTreeWidgetCloudNetwork->setWhatsThis(UINetworkManager::tr("Registered cloud networks")); 456 460 } 457 461 }
Note:
See TracChangeset
for help on using the changeset viewer.