Changeset 105239 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jul 9, 2024 1:48:30 PM (7 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendGlobal.cpp
r103771 r105239 111 111 switch (sizeSuffix) 112 112 { 113 case SizeSuffix_Byte: strResult = QApplication::translate("UI Common", "B", "size suffix Bytes"); break;114 case SizeSuffix_KiloByte: strResult = QApplication::translate("UI Common", "KB", "size suffix KBytes=1024 Bytes"); break;115 case SizeSuffix_MegaByte: strResult = QApplication::translate("UI Common", "MB", "size suffix MBytes=1024 KBytes"); break;116 case SizeSuffix_GigaByte: strResult = QApplication::translate("UI Common", "GB", "size suffix GBytes=1024 MBytes"); break;117 case SizeSuffix_TeraByte: strResult = QApplication::translate("UI Common", "TB", "size suffix TBytes=1024 GBytes"); break;118 case SizeSuffix_PetaByte: strResult = QApplication::translate("UI Common", "PB", "size suffix PBytes=1024 TBytes"); break;113 case SizeSuffix_Byte: strResult = QApplication::translate("UITranslator", "B", "size suffix Bytes"); break; 114 case SizeSuffix_KiloByte: strResult = QApplication::translate("UITranslator", "KB", "size suffix KBytes=1024 Bytes"); break; 115 case SizeSuffix_MegaByte: strResult = QApplication::translate("UITranslator", "MB", "size suffix MBytes=1024 KBytes"); break; 116 case SizeSuffix_GigaByte: strResult = QApplication::translate("UITranslator", "GB", "size suffix GBytes=1024 MBytes"); break; 117 case SizeSuffix_TeraByte: strResult = QApplication::translate("UITranslator", "TB", "size suffix TBytes=1024 GBytes"); break; 118 case SizeSuffix_PetaByte: strResult = QApplication::translate("UITranslator", "PB", "size suffix PBytes=1024 TBytes"); break; 119 119 default: 120 120 { … … 130 130 { 131 131 QHash<QString, SizeSuffix> list; 132 list.insert(QApplication::translate("UI Common", "B", "size suffix Bytes"), SizeSuffix_Byte);133 list.insert(QApplication::translate("UI Common", "KB", "size suffix KBytes=1024 Bytes"), SizeSuffix_KiloByte);134 list.insert(QApplication::translate("UI Common", "MB", "size suffix MBytes=1024 KBytes"), SizeSuffix_MegaByte);135 list.insert(QApplication::translate("UI Common", "GB", "size suffix GBytes=1024 MBytes"), SizeSuffix_GigaByte);136 list.insert(QApplication::translate("UI Common", "TB", "size suffix TBytes=1024 GBytes"), SizeSuffix_TeraByte);137 list.insert(QApplication::translate("UI Common", "PB", "size suffix PBytes=1024 TBytes"), SizeSuffix_PetaByte);132 list.insert(QApplication::translate("UITranslator", "B", "size suffix Bytes"), SizeSuffix_Byte); 133 list.insert(QApplication::translate("UITranslator", "KB", "size suffix KBytes=1024 Bytes"), SizeSuffix_KiloByte); 134 list.insert(QApplication::translate("UITranslator", "MB", "size suffix MBytes=1024 KBytes"), SizeSuffix_MegaByte); 135 list.insert(QApplication::translate("UITranslator", "GB", "size suffix GBytes=1024 MBytes"), SizeSuffix_GigaByte); 136 list.insert(QApplication::translate("UITranslator", "TB", "size suffix TBytes=1024 GBytes"), SizeSuffix_TeraByte); 137 list.insert(QApplication::translate("UITranslator", "PB", "size suffix PBytes=1024 TBytes"), SizeSuffix_PetaByte); 138 138 if (!list.contains(strSizeSuffix)) 139 139 { -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDetailsGenerator.cpp
r105233 r105239 245 245 strResult = QString("%1 %2") 246 246 .arg(comValue.GetInteger()) 247 .arg(QApplication::translate("UI Common", comValue.GetSuffix().toUtf8().constData()));247 .arg(QApplication::translate("UITranslator", comValue.GetSuffix().toUtf8().constData())); 248 248 break; 249 249 } … … 253 253 strResult = QString("%1 %2") 254 254 .arg(comValue.GetInteger()) 255 .arg(QApplication::translate("UI Common", comValue.GetSuffix().toUtf8().constData()));255 .arg(QApplication::translate("UITranslator", comValue.GetSuffix().toUtf8().constData())); 256 256 break; 257 257 } -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIApplianceEditorWidget.cpp
r104358 r105239 541 541 } 542 542 case KVirtualSystemDescriptionType_OS: value = gpGlobalSession->guestOSTypeManager().getDescription(m_strConfigValue); break; 543 case KVirtualSystemDescriptionType_Memory: value = m_strConfigValue + " " + QApplication::translate("UI Common", "MB", "size suffix MBytes=1024 KBytes"); break;543 case KVirtualSystemDescriptionType_Memory: value = m_strConfigValue + " " + QApplication::translate("UITranslator", "MB", "size suffix MBytes=1024 KBytes"); break; 544 544 case KVirtualSystemDescriptionType_SoundCard: value = gpConverter->toString(static_cast<KAudioControllerType>(m_strConfigValue.toInt())); break; 545 545 case KVirtualSystemDescriptionType_NetworkAdapter: value = gpConverter->toString(static_cast<KNetworkAdapterType>(m_strConfigValue.toInt())); break; … … 827 827 QSpinBox *pSpinBox = new QSpinBox(pParent); 828 828 pSpinBox->setRange(UIApplianceEditorWidget::minGuestRAM(), UIApplianceEditorWidget::maxGuestRAM()); 829 pSpinBox->setSuffix(" " + QApplication::translate("UI Common", "MB", "size suffix MBytes=1024 KBytes"));829 pSpinBox->setSuffix(" " + QApplication::translate("UITranslator", "MB", "size suffix MBytes=1024 KBytes")); 830 830 pEditor = pSpinBox; 831 831 break;
Note:
See TracChangeset
for help on using the changeset viewer.