Changeset 105240 in vbox
- Timestamp:
- Jul 9, 2024 1:50:26 PM (5 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDetailsGenerator.cpp
r105239 r105240 607 607 /* That hack makes sure 'Inaccessible' word is always bold: */ 608 608 { // hack 609 const QString strInaccessibleString(QApplication::translate("UI Common", "Inaccessible", "medium"));609 const QString strInaccessibleString(QApplication::translate("UIMedium", "Inaccessible", "medium")); 610 610 const QString strBoldInaccessibleString(QString("<b>%1</b>").arg(strInaccessibleString)); 611 611 strAttachmentInfo.replace(strInaccessibleString, strBoldInaccessibleString); -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMedium.cpp
r104891 r105240 172 172 173 173 /* Reset name/location/description/size parameters: */ 174 m_strName = QApplication::translate("UI Common", "Empty", "medium");174 m_strName = QApplication::translate("UIMedium", "Empty", "medium"); 175 175 m_strLocation = m_strSize = m_strLogicalSize = QString("--"); 176 176 m_strDescription = QString(); … … 227 227 m_strName = m_medium.GetName(); 228 228 else if (m_strDescription.isEmpty()) 229 m_strName = QApplication::translate("UI Common", "Host Drive '%1'", "medium").arg(QDir::toNativeSeparators(m_medium.GetLocation()));229 m_strName = QApplication::translate("UIMedium", "Host Drive '%1'").arg(QDir::toNativeSeparators(m_medium.GetLocation())); 230 230 else 231 m_strName = QApplication::translate("UI Common", "Host Drive %1 (%2)", "medium").arg(m_strDescription, m_medium.GetName());231 m_strName = QApplication::translate("UIMedium", "Host Drive %1 (%2)").arg(m_strDescription, m_medium.GetName()); 232 232 /* Refresh medium location: */ 233 233 if (!m_fHostDrive) … … 407 407 if (m_type == UIMediumDeviceType_HardDisk) 408 408 { 409 m_strToolTip += m_sstrRow.arg(QApplication::translate("UI Common", "<p style=white-space:pre>Type (Format): %1 (%2)</p>", "medium")409 m_strToolTip += m_sstrRow.arg(QApplication::translate("UIMedium", "<p style=white-space:pre>Type (Format): %1 (%2)</p>", "medium") 410 410 .arg(m_strHardDiskType).arg(m_strHardDiskFormat)); 411 411 } 412 m_strToolTip += m_sstrRow.arg(QApplication::translate("UI Common", "<p>Attached to: %1</p>", "image")413 .arg(m_strUsage.isNull() ? QApplication::translate("UI Common", "<i>Not Attached</i>", "image") : m_strUsage));412 m_strToolTip += m_sstrRow.arg(QApplication::translate("UIMedium", "<p>Attached to: %1</p>", "to machines") 413 .arg(m_strUsage.isNull() ? QApplication::translate("UIMedium", "<i>Not Attached</i>", "to machines") : m_strUsage)); 414 414 switch (m_state) 415 415 { 416 416 case KMediumState_NotCreated: 417 417 { 418 m_strToolTip += m_sstrRow.arg(QApplication::translate("UI Common", "<i>Checking accessibility...</i>", "medium"));418 m_strToolTip += m_sstrRow.arg(QApplication::translate("UIMedium", "<i>Checking accessibility...</i>", "medium")); 419 419 break; 420 420 } … … 429 429 { 430 430 /* Accessibility check (eg GetState()) itself failed: */ 431 m_strToolTip += m_sstrRow.arg("<hr>") + m_sstrRow.arg(QApplication::translate("UI Common", "Failed to check accessibility of disk image files.", "medium")) +431 m_strToolTip += m_sstrRow.arg("<hr>") + m_sstrRow.arg(QApplication::translate("UIMedium", "Failed to check accessibility of disk image files.")) + 432 432 m_sstrRow.arg(UIErrorString::formatErrorInfo(m_result) + "."); 433 433 } … … 469 469 if (m_medium.isNull()) 470 470 { 471 strTip = fNullAllowed ? m_sstrRow.arg(QApplication::translate("UI Common", "<b>No disk image file selected</b>", "medium")) +472 m_sstrRow.arg(QApplication::translate("UI Common", "You can also change this while the machine is running.")) :473 m_sstrRow.arg(QApplication::translate("UI Common", "<b>No disk image files available</b>", "medium")) +474 m_sstrRow.arg(QApplication::translate("UI Common", "You can create or add disk image files in the virtual machine settings."));471 strTip = fNullAllowed ? m_sstrRow.arg(QApplication::translate("UIMedium", "<b>No disk image file selected</b>")) + 472 m_sstrRow.arg(QApplication::translate("UIMedium", "You can also change this while the machine is running.")) : 473 m_sstrRow.arg(QApplication::translate("UIMedium", "<b>No disk image files available</b>")) + 474 m_sstrRow.arg(QApplication::translate("UIMedium", "You can create or add disk image files in the virtual machine settings.")); 475 475 } 476 476 else … … 482 482 if (fCheckRO && m_fReadOnly) 483 483 strTip += m_sstrRow.arg("<hr>") + 484 m_sstrRow.arg(QApplication::translate("UI Common",484 m_sstrRow.arg(QApplication::translate("UIMedium", 485 485 "Attaching this hard disk will be performed indirectly using " 486 "a newly created differencing hard disk." , "medium"));486 "a newly created differencing hard disk.")); 487 487 } 488 488 … … 559 559 /* Add encryption status: */ 560 560 if (m_fEncrypted) 561 strDetails += QString("%1, ").arg(QApplication::translate("UI Common", "Encrypted", "medium"));561 strDetails += QString("%1, ").arg(QApplication::translate("UIMedium", "Encrypted", "medium")); 562 562 } 563 563 … … 567 567 { 568 568 case KMediumState_NotCreated: 569 strText = QApplication::translate("UI Common", "Checking...", "medium");569 strText = QApplication::translate("UIMedium", "Checking...", "medium"); 570 570 strDetails += fUseHTML ? QString("<i>%1</i>").arg(strText) : strText; 571 571 break; 572 572 case KMediumState_Inaccessible: 573 strText = QApplication::translate("UI Common", "Inaccessible", "medium");573 strText = QApplication::translate("UIMedium", "Inaccessible", "medium"); 574 574 strDetails += fUseHTML ? QString("<b>%1</b>").arg(strText) : strText; 575 575 break; … … 645 645 646 646 if (m_noDiffs.toolTip.isNull()) 647 m_noDiffs.toolTip = m_sstrRow.arg(QApplication::translate("UI Common",647 m_noDiffs.toolTip = m_sstrRow.arg(QApplication::translate("UIMedium", 648 648 "Some of the files in this hard disk chain " 649 649 "are inaccessible. Please use the Virtual Medium " 650 "Manager to inspect these files." , "medium"));650 "Manager to inspect these files.")); 651 651 652 652 if (!parentMedium.m_result.isOk()) … … 662 662 m_noDiffs.toolTip = root().tip() + 663 663 m_sstrRow.arg("<hr>") + 664 m_sstrRow.arg(QApplication::translate("UI Common",664 m_sstrRow.arg(QApplication::translate("UIMedium", 665 665 "This base hard disk is indirectly attached using " 666 "the following differencing hard disk:" , "medium")) +666 "the following differencing hard disk:")) + 667 667 m_strToolTip + m_noDiffs.toolTip; 668 668 } … … 680 680 { 681 681 Assert(comMedium.GetType() == KMediumType_Normal); 682 return QApplication::translate("UI Common", "Differencing", "MediumType");682 return QApplication::translate("UIMedium", "Differencing", "medium"); 683 683 } 684 684 return gpConverter->toString(comMedium.GetType());
Note:
See TracChangeset
for help on using the changeset viewer.