VirtualBox

Changeset 93820 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 17, 2022 9:40:12 AM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6899: VM settings: Replacing QApplication::translate with tr.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsNetwork.cpp

    r93115 r93820  
    655655{
    656656    int iFirstColumnWidth = 0;
    657     m_pCheckBoxAdapter->setWhatsThis(QApplication::translate("UIMachineSettingsNetwork", "When checked, plugs this virtual "
    658                                                                    "network adapter into the virtual machine."));
    659     m_pCheckBoxAdapter->setText(QApplication::translate("UIMachineSettingsNetwork", "&Enable Network Adapter"));
    660     m_pLabelAttachmentType->setText(QApplication::translate("UIMachineSettingsNetwork", "&Attached to:"));
     657    m_pCheckBoxAdapter->setWhatsThis(tr("When checked, plugs this virtual "
     658                                        "network adapter into the virtual machine."));
     659    m_pCheckBoxAdapter->setText(tr("&Enable Network Adapter"));
     660    m_pLabelAttachmentType->setText(tr("&Attached to:"));
    661661    iFirstColumnWidth = qMax(iFirstColumnWidth, m_pLabelAttachmentType->minimumSizeHint().width());
    662     m_pEditorAttachmentType->setWhatsThis(QApplication::translate("UIMachineSettingsNetwork", "Selects how this virtual adapter "
    663                                                                   "is attached to the real network of the Host OS."));
    664     m_pLabelNetworkName->setText(QApplication::translate("UIMachineSettingsNetwork", "&Name:"));
     662    m_pEditorAttachmentType->setWhatsThis(tr("Selects how this virtual adapter "
     663                                             "is attached to the real network of the Host OS."));
     664    m_pLabelNetworkName->setText(tr("&Name:"));
    665665    iFirstColumnWidth = qMax(iFirstColumnWidth, m_pLabelNetworkName->minimumSizeHint().width());
    666     m_pButtonAdvanced->setText(QApplication::translate("UIMachineSettingsNetwork", "A&dvanced"));
    667     m_pButtonAdvanced->setWhatsThis(QApplication::translate("UIMachineSettingsNetwork", "Shows additional network adapter options."));
    668     m_pLabelAdapterType->setText(QApplication::translate("UIMachineSettingsNetwork", "Adapter &Type:"));
     666    m_pButtonAdvanced->setText(tr("A&dvanced"));
     667    m_pButtonAdvanced->setWhatsThis(tr("Shows additional network adapter options."));
     668    m_pLabelAdapterType->setText(tr("Adapter &Type:"));
    669669    iFirstColumnWidth = qMax(iFirstColumnWidth, m_pLabelAdapterType->minimumSizeHint().width());
    670     m_pComboAdapterType->setWhatsThis(QApplication::translate("UIMachineSettingsNetwork", "Selects the type of the virtual network "
    671                                                               "adapter. Depending on this value, VirtualBox will provide different "
    672                                                               "network hardware to the virtual machine."));
    673     m_pLabelPromiscuousMode->setText(QApplication::translate("UIMachineSettingsNetwork", "&Promiscuous Mode:"));
     670    m_pComboAdapterType->setWhatsThis(tr("Selects the type of the virtual network "
     671                                         "adapter. Depending on this value, VirtualBox will provide different "
     672                                         "network hardware to the virtual machine."));
     673    m_pLabelPromiscuousMode->setText(tr("&Promiscuous Mode:"));
    674674    iFirstColumnWidth = qMax(iFirstColumnWidth, m_pLabelPromiscuousMode->minimumSizeHint().width());
    675     m_pComboPromiscuousMode->setWhatsThis(QApplication::translate("UIMachineSettingsNetwork", "Selects the promiscuous mode policy "
    676                                                                   "of the network adapter when attached to an internal network, "
    677                                                                   "host only network or a bridge."));
    678     m_pLabelMAC->setText(QApplication::translate("UIMachineSettingsNetwork", "&MAC Address:"));
     675    m_pComboPromiscuousMode->setWhatsThis(tr("Selects the promiscuous mode policy "
     676                                             "of the network adapter when attached to an internal network, "
     677                                             "host only network or a bridge."));
     678    m_pLabelMAC->setText(tr("&MAC Address:"));
    679679    iFirstColumnWidth = qMax(iFirstColumnWidth, m_pLabelMAC->minimumSizeHint().width());
    680     m_pEditorMAC->setWhatsThis(QApplication::translate("UIMachineSettingsNetwork", "Holds the MAC address of this adapter. It contains "
    681                                                        "exactly 12 characters chosen from {0-9,A-F}. Note that the second character "
    682                                                        "must be an even digit."));
    683     m_pButtonMAC->setWhatsThis(QApplication::translate("UIMachineSettingsNetwork", "Generates a new random MAC address."));
    684     m_pLabelGenericProperties->setText(QApplication::translate("UIMachineSettingsNetwork", "Generic Properties:"));
    685     m_pEditorGenericProperties->setWhatsThis(QApplication::translate("UIMachineSettingsNetwork", "Holds the configuration settings "
    686                                                                        "for the network attachment driver. The settings should be of "
    687                                                                        "the form <b>name=value</b> and will depend on the driver. "
    688                                                                        "Use <b>shift-enter</b> to add a new entry."));
    689     m_pCheckBoxCableConnected->setWhatsThis(QApplication::translate("UIMachineSettingsNetwork", "When checked, the virtual network "
    690                                                                     "cable is plugged in."));
    691     m_pCheckBoxCableConnected->setText(QApplication::translate("UIMachineSettingsNetwork", "&Cable Connected"));
    692     m_pButtonPortForwarding->setWhatsThis(QApplication::translate("UIMachineSettingsNetwork", "Displays a window to configure port "
    693                                                                   "forwarding rules."));
    694     m_pButtonPortForwarding->setText(QApplication::translate("UIMachineSettingsNetwork", "&Port Forwarding"));
     680    m_pEditorMAC->setWhatsThis(tr("Holds the MAC address of this adapter. It contains "
     681                                  "exactly 12 characters chosen from {0-9,A-F}. Note that the second character "
     682                                  "must be an even digit."));
     683    m_pButtonMAC->setWhatsThis(tr("Generates a new random MAC address."));
     684    m_pLabelGenericProperties->setText(tr("Generic Properties:"));
     685    m_pEditorGenericProperties->setWhatsThis(tr("Holds the configuration settings "
     686                                                "for the network attachment driver. The settings should be of "
     687                                                "the form <b>name=value</b> and will depend on the driver. "
     688                                                "Use <b>shift-enter</b> to add a new entry."));
     689    m_pCheckBoxCableConnected->setWhatsThis(tr("When checked, the virtual network "
     690                                               "cable is plugged in."));
     691    m_pCheckBoxCableConnected->setText(tr("&Cable Connected"));
     692    m_pButtonPortForwarding->setWhatsThis(tr("Displays a window to configure port "
     693                                             "forwarding rules."));
     694    m_pButtonPortForwarding->setText(tr("&Port Forwarding"));
    695695
    696696    /* Translate combo-boxes content: */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.cpp

    r93115 r93820  
    608608void UIMachineSettingsSystem::retranslateUi()
    609609{
    610     m_pLabelBaseMemory->setText(QApplication::translate("UIMachineSettingsSystem", "Base &Memory:"));
    611     m_pEditorBaseMemory->setWhatsThis(QApplication::translate("UIMachineSettingsSystem", "Controls the amount of memory provided "
    612                                                               "to the virtual machine. If you assign too much, the machine might not start."));
    613     m_pLabelBootOrder->setText(QApplication::translate("UIMachineSettingsSystem", "&Boot Order:"));
    614     m_pEditorBootOrder->setWhatsThis(QApplication::translate("UIMachineSettingsSystem", "Defines the boot device order. Use the "
    615                                                              "checkboxes on the left to enable or disable individual boot devices."
    616                                                              "Move items up and down to change the device order."));
    617     m_pLabelChipset->setText(QApplication::translate("UIMachineSettingsSystem", "&Chipset:"));
    618     m_pComboChipset->setWhatsThis(QApplication::translate("UIMachineSettingsSystem", "Selects the chipset to be emulated in "
    619                                                               "this virtual machine. Note that the ICH9 chipset emulation is experimental "
    620                                                               "and not recommended except for guest systems (such as Mac OS X) which require it."));
    621     m_pLabelPointingHID->setText(QApplication::translate("UIMachineSettingsSystem", "&Pointing Device:"));
    622     m_pComboPointingHID->setWhatsThis(QApplication::translate("UIMachineSettingsSystem", "Determines whether the emulated "
    623                                                                   "pointing device is a standard PS/2 mouse, a USB tablet or a "
    624                                                                   "USB multi-touch tablet."));
    625     m_pLabelExtendedMotherboard->setText(QApplication::translate("UIMachineSettingsSystem", "Extended Features:"));
    626     m_pCheckBoxAPIC->setWhatsThis(QApplication::translate("UIMachineSettingsSystem", "When checked, the virtual machine will "
    627                                                           "support the Input Output APIC (I/O APIC), which may slightly decrease "
    628                                                           "performance. <b>Note:</b> don't disable this feature after having "
    629                                                           "installed a Windows guest operating system!"));
    630     m_pCheckBoxAPIC->setText(QApplication::translate("UIMachineSettingsSystem", "Enable &I/O APIC"));
    631     m_pCheckBoxEFI->setWhatsThis(QApplication::translate("UIMachineSettingsSystem", "When checked, the guest will support the "
    632                                                          "Extended Firmware Interface (EFI), which is required to boot certain "
    633                                                          "guest OSes. Non-EFI aware OSes will not be able to boot if this option is activated."));
    634     m_pCheckBoxEFI->setText(QApplication::translate("UIMachineSettingsSystem", "Enable &EFI (special OSes only)"));
    635     m_pCheckBoxUTC->setWhatsThis(QApplication::translate("UIMachineSettingsSystem", "When checked, the RTC device will report "
    636                                                             "the time in UTC, otherwise in local (host) time. Unix usually expects "
    637                                                             "the hardware clock to be set to UTC."));
    638     m_pCheckBoxUTC->setText(QApplication::translate("UIMachineSettingsSystem", "Hardware Clock in &UTC Time"));
    639     m_pTabWidget->setTabText(m_pTabWidget->indexOf(m_pTabMotherboard), QApplication::translate("UIMachineSettingsSystem", "&Motherboard"));
    640     m_pLabelProcessorCount->setText(QApplication::translate("UIMachineSettingsSystem", "&Processor(s):"));
    641     m_pSliderProcessorCount->setWhatsThis(QApplication::translate("UIMachineSettingsSystem", "Controls the number of virtual CPUs in the "
    642                                                             "virtual machine. You need hardware virtualization support on your host "
    643                                                             "system to use more than one virtual CPU."));
    644     m_pSpinboxProcessorCount->setWhatsThis(QApplication::translate("UIMachineSettingsSystem", "Controls the number of virtual CPUs in the "
    645                                                             "virtual machine. You need hardware virtualization support on your host "
    646                                                             "system to use more than one virtual CPU."));
    647     m_pLabelProcessorExecCap->setText(QApplication::translate("UIMachineSettingsSystem", "&Execution Cap:"));
    648     m_pSliderProcessorExecCap->setWhatsThis(QApplication::translate("UIMachineSettingsSystem", "Limits the amount of time that each virtual "
    649                                                               "CPU is allowed to run for. Each virtual CPU will be allowed to use up "
    650                                                               "to this percentage of the processing time available on one physical CPU. "
    651                                                               "The execution cap can be disabled by setting it to 100%. Setting the cap "
    652                                                               "too low can make the machine feel slow to respond."));
    653     m_pSpinboxProcessorExecCap->setWhatsThis(QApplication::translate("UIMachineSettingsSystem", "Limits the amount of time that each virtual CPU "
    654                                                               "is allowed to run for. Each virtual CPU will be allowed to use up "
    655                                                               "to this percentage of the processing time available on one physical "
    656                                                               "CPU. The execution cap can be disabled by setting it to 100%. Setting "
    657                                                               "the cap too low can make the machine feel slow to respond."));
    658     m_pSpinboxProcessorExecCap->setSuffix(QApplication::translate("UIMachineSettingsSystem", "%"));
    659     m_pLabelExtendedProcessor->setText(QApplication::translate("UIMachineSettingsSystem", "Extended Features:"));
    660     m_pCheckBoxPAE->setWhatsThis(QApplication::translate("UIMachineSettingsSystem", "When checked, the Physical Address Extension "
    661                                                          "(PAE) feature of the host CPU will be exposed to the virtual machine."));
    662     m_pCheckBoxPAE->setText(QApplication::translate("UIMachineSettingsSystem", "Enable PA&E/NX"));
    663     m_pCheckBoxNestedVirtualization->setWhatsThis(QApplication::translate("UIMachineSettingsSystem", "When checked, the nested hardware "
    664                                                                           "virtualization CPU feature will be exposed to the virtual machine."));
    665     m_pCheckBoxNestedVirtualization->setText(QApplication::translate("UIMachineSettingsSystem", "Enable Nested &VT-x/AMD-V"));
    666     m_pTabWidget->setTabText(m_pTabWidget->indexOf(m_pTabProcessor), QApplication::translate("UIMachineSettingsSystem", "&Processor"));
    667     m_pLabelParavirtProvider->setText(QApplication::translate("UIMachineSettingsSystem", "&Paravirtualization Interface:"));
    668     m_pComboParavirtProvider->setWhatsThis(QApplication::translate("UIMachineSettingsSystem", "Selects the paravirtualization "
    669                                                                        "guest interface provider to be used by this virtual machine."));
    670     m_pLabelVirtualization->setText(QApplication::translate("UIMachineSettingsSystem", "Hardware Virtualization:"));
    671     m_pCheckBoxVirtualization->setWhatsThis(QApplication::translate("UIMachineSettingsSystem", "When checked, the virtual machine "
    672                                                                     "will try to make use of the host CPU's hardware virtualization "
    673                                                                     "extensions such as Intel VT-x and AMD-V."));
    674     m_pCheckBoxVirtualization->setText(QApplication::translate("UIMachineSettingsSystem", "Enable &VT-x/AMD-V"));
    675     m_pCheckBoxNestedPaging->setWhatsThis(QApplication::translate("UIMachineSettingsSystem", "When checked, the virtual machine will "
    676                                                                   "try to make use of the nested paging extension of Intel VT-x and AMD-V."));
    677     m_pCheckBoxNestedPaging->setText(QApplication::translate("UIMachineSettingsSystem", "Enable Nested Pa&ging"));
    678     m_pTabWidget->setTabText(m_pTabWidget->indexOf(m_pTabAcceleration), QApplication::translate("UIMachineSettingsSystem", "Acce&leration"));
     610    m_pLabelBaseMemory->setText(tr("Base &Memory:"));
     611    m_pEditorBaseMemory->setWhatsThis(tr("Controls the amount of memory provided "
     612                                         "to the virtual machine. If you assign too much, the machine might not start."));
     613    m_pLabelBootOrder->setText(tr("&Boot Order:"));
     614    m_pEditorBootOrder->setWhatsThis(tr("Defines the boot device order. Use the "
     615                                        "checkboxes on the left to enable or disable individual boot devices."
     616                                        "Move items up and down to change the device order."));
     617    m_pLabelChipset->setText(tr("&Chipset:"));
     618    m_pComboChipset->setWhatsThis(tr("Selects the chipset to be emulated in "
     619                                     "this virtual machine. Note that the ICH9 chipset emulation is experimental "
     620                                     "and not recommended except for guest systems (such as Mac OS X) which require it."));
     621    m_pLabelPointingHID->setText(tr("&Pointing Device:"));
     622    m_pComboPointingHID->setWhatsThis(tr("Determines whether the emulated "
     623                                         "pointing device is a standard PS/2 mouse, a USB tablet or a "
     624                                         "USB multi-touch tablet."));
     625    m_pLabelExtendedMotherboard->setText(tr("Extended Features:"));
     626    m_pCheckBoxAPIC->setWhatsThis(tr("When checked, the virtual machine will "
     627                                     "support the Input Output APIC (I/O APIC), which may slightly decrease "
     628                                     "performance. <b>Note:</b> don't disable this feature after having "
     629                                     "installed a Windows guest operating system!"));
     630    m_pCheckBoxAPIC->setText(tr("Enable &I/O APIC"));
     631    m_pCheckBoxEFI->setWhatsThis(tr("When checked, the guest will support the "
     632                                    "Extended Firmware Interface (EFI), which is required to boot certain "
     633                                    "guest OSes. Non-EFI aware OSes will not be able to boot if this option is activated."));
     634    m_pCheckBoxEFI->setText(tr("Enable &EFI (special OSes only)"));
     635    m_pCheckBoxUTC->setWhatsThis(tr("When checked, the RTC device will report "
     636                                    "the time in UTC, otherwise in local (host) time. Unix usually expects "
     637                                    "the hardware clock to be set to UTC."));
     638    m_pCheckBoxUTC->setText(tr("Hardware Clock in &UTC Time"));
     639    m_pTabWidget->setTabText(m_pTabWidget->indexOf(m_pTabMotherboard), tr("&Motherboard"));
     640    m_pLabelProcessorCount->setText(tr("&Processor(s):"));
     641    m_pSliderProcessorCount->setWhatsThis(tr("Controls the number of virtual CPUs in the "
     642                                             "virtual machine. You need hardware virtualization support on your host "
     643                                             "system to use more than one virtual CPU."));
     644    m_pSpinboxProcessorCount->setWhatsThis(tr("Controls the number of virtual CPUs in the "
     645                                              "virtual machine. You need hardware virtualization support on your host "
     646                                              "system to use more than one virtual CPU."));
     647    m_pLabelProcessorExecCap->setText(tr("&Execution Cap:"));
     648    m_pSliderProcessorExecCap->setWhatsThis(tr("Limits the amount of time that each virtual "
     649                                               "CPU is allowed to run for. Each virtual CPU will be allowed to use up "
     650                                               "to this percentage of the processing time available on one physical CPU. "
     651                                               "The execution cap can be disabled by setting it to 100%. Setting the cap "
     652                                               "too low can make the machine feel slow to respond."));
     653    m_pSpinboxProcessorExecCap->setWhatsThis(tr("Limits the amount of time that each virtual CPU "
     654                                                "is allowed to run for. Each virtual CPU will be allowed to use up "
     655                                                "to this percentage of the processing time available on one physical "
     656                                                "CPU. The execution cap can be disabled by setting it to 100%. Setting "
     657                                                "the cap too low can make the machine feel slow to respond."));
     658    m_pSpinboxProcessorExecCap->setSuffix(tr("%"));
     659    m_pLabelExtendedProcessor->setText(tr("Extended Features:"));
     660    m_pCheckBoxPAE->setWhatsThis(tr("When checked, the Physical Address Extension "
     661                                    "(PAE) feature of the host CPU will be exposed to the virtual machine."));
     662    m_pCheckBoxPAE->setText(tr("Enable PA&E/NX"));
     663    m_pCheckBoxNestedVirtualization->setWhatsThis(tr("When checked, the nested hardware "
     664                                                     "virtualization CPU feature will be exposed to the virtual machine."));
     665    m_pCheckBoxNestedVirtualization->setText(tr("Enable Nested &VT-x/AMD-V"));
     666    m_pTabWidget->setTabText(m_pTabWidget->indexOf(m_pTabProcessor), tr("&Processor"));
     667    m_pLabelParavirtProvider->setText(tr("&Paravirtualization Interface:"));
     668    m_pComboParavirtProvider->setWhatsThis(tr("Selects the paravirtualization "
     669                                              "guest interface provider to be used by this virtual machine."));
     670    m_pLabelVirtualization->setText(tr("Hardware Virtualization:"));
     671    m_pCheckBoxVirtualization->setWhatsThis(tr("When checked, the virtual machine "
     672                                               "will try to make use of the host CPU's hardware virtualization "
     673                                               "extensions such as Intel VT-x and AMD-V."));
     674    m_pCheckBoxVirtualization->setText(tr("Enable &VT-x/AMD-V"));
     675    m_pCheckBoxNestedPaging->setWhatsThis(tr("When checked, the virtual machine will "
     676                                             "try to make use of the nested paging extension of Intel VT-x and AMD-V."));
     677    m_pCheckBoxNestedPaging->setText(tr("Enable Nested Pa&ging"));
     678    m_pTabWidget->setTabText(m_pTabWidget->indexOf(m_pTabAcceleration), tr("Acce&leration"));
    679679
    680680    /* Retranslate the cpu slider legend: */
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