void UIMachineSettingsSystem::retranslateUi() { /* Translate uic generated strings */ Ui::UIMachineSettingsSystem::retranslateUi (this); /* Readjust the tree widget items size */ adjustBootOrderTWSize(); CSystemProperties sys = vboxGlobal().virtualBox().GetSystemProperties(); /* Retranslate the memory slider legend */ mLbMemoryMin->setText (tr ("<qt>%1 MB</qt>").arg (mSlMemory->minRAM())); mLbMemoryMax->setText (tr ("<qt>%1 MB</qt>").arg (mSlMemory->maxRAM())); /* Retranslate the cpu slider legend */ mLbCPUMin->setText (tr ("<qt>%1 CPU</qt>", "%1 is 1 for now").arg (mMinGuestCPU)); mLbCPUMax->setText (tr ("<qt>%1 CPUs</qt>", "%1 is host cpu count * 2 for now").arg (mMaxGuestCPU)); /* Retranslate the cpu cap slider legend: */ mLbCPUExecCapMin->setText(tr("<qt>%1%</qt>", "Min CPU execution cap in %").arg(mMinGuestCPUExecCap)); mLbCPUExecCapMax->setText(tr("<qt>%1%</qt>", "Max CPU execution cap in %").arg(mMaxGuestCPUExecCap)); }
void UIMachineSettingsSystem::retranslateUi() { /* Translate uic generated strings: */ Ui::UIMachineSettingsSystem::retranslateUi(this); /* Readjust the tree widget items size: */ adjustBootOrderTWSize(); /* Retranslate the memory slider legend: */ m_pLabelMemoryMin->setText(tr("<qt>%1 MB</qt>").arg(m_pSliderMemorySize->minRAM())); m_pLabelMemoryMax->setText(tr("<qt>%1 MB</qt>").arg(m_pSliderMemorySize->maxRAM())); /* Retranslate the cpu slider legend: */ m_pLabelCPUMin->setText(tr("<qt>%1 CPU</qt>", "%1 is 1 for now").arg(m_uMinGuestCPU)); m_pLabelCPUMax->setText(tr("<qt>%1 CPUs</qt>", "%1 is host cpu count * 2 for now").arg(m_uMaxGuestCPU)); /* Retranslate the cpu cap slider legend: */ m_pLabelCPUExecCapMin->setText(tr("<qt>%1%</qt>", "Min CPU execution cap in %").arg(m_uMinGuestCPUExecCap)); m_pLabelCPUExecCapMax->setText(tr("<qt>%1%</qt>", "Max CPU execution cap in %").arg(m_uMaxGuestCPUExecCap)); /* Retranslate combo-boxes: */ retranslateComboPointingChipsetType(); retranslateComboPointingHIDType(); }