VirtualBox

Changeset 82610 in vbox


Ignore:
Timestamp:
Dec 18, 2019 7:09:49 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
135497
Message:

FE/Qt: Dealing with todo's mentioned r135326. Part 2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationRuntime.cpp

    r82474 r82610  
    111111        QString m_strUnrestrictedExecutionLabel;
    112112        QString m_strParavirtualizationLabel;
    113         QString m_strActive;
    114         QString m_strInactive;
    115         QString m_strNotAvailable;
     113        QString m_strNestedPagingActive;
     114        QString m_strNestedPagingInactive;
     115        QString m_strUnrestrictedExecutionActive;
     116        QString m_strUnrestrictedExecutionInactive;
     117        QString m_strVRDEPortNotAvailable;
    116118        QString m_strGuestAdditionsLabel;
    117119        QString m_strGuestOSTypeLabel;
    118120        QString m_strRemoteDesktopLabel;
    119         QString m_strNotSet;
    120         QString m_strNotDetected;
     121        QString m_strExecutionEngineNotSet;
     122        QString m_strOSNotDetected;
     123        QString m_strGANotDetected;
    121124    /** @} */
    122125
     
    177180void UIRuntimeInfoWidget::retranslateUi()
    178181{
    179     /// @todo These NLS tags have to be reworked the following way:
    180     ///       Each place which uses plural/gender-neutral verbs like Active, Inactive, Not Available, not set and Not Detected
    181     ///       should use it directly like tr("Active", "Guest Additions") to make sure translator knows for sure whether this
    182     ///       verb is related to single or plural form and male/female/neutral sex. There are languages different than English
    183     ///       which sounds absolutely stupid if you ignore those rules while sequencing nouns and corresponding verbs.
    184     m_strTableTitle = QApplication::translate("UIVMInformationDialog", "Runtime Attributes");
    185     m_strScreenResolutionLabel = QApplication::translate("UIVMInformationDialog", "Screen Resolution");
    186     m_strMonitorTurnedOff = QApplication::translate("UIVMInformationDialog", "turned off");
    187     m_strUptimeLabel = QApplication::translate("UIVMInformationDialog", "VM Uptime");
    188     m_strClipboardModeLabel = QApplication::translate("UIVMInformationDialog", "Clipboard Mode");
    189     m_strDragAndDropLabel = QApplication::translate("UIVMInformationDialog", "Drag and Drop Mode");
    190     m_strExcutionEngineLabel = QApplication::translate("UIVMInformationDialog", "VM Execution Engine");
    191     m_strNestedPagingLabel = QApplication::translate("UIVMInformationDialog", "Nested Paging");
    192     m_strUnrestrictedExecutionLabel = QApplication::translate("UIVMInformationDialog", "Unrestricted Execution");
    193     m_strParavirtualizationLabel = QApplication::translate("UIVMInformationDialog", "Paravirtualization Interface");
    194     m_strActive = QApplication::translate("UIVMInformationDialog", "Active");
    195     m_strInactive = QApplication::translate("UIVMInformationDialog", "Inactive");
    196     m_strNotAvailable = QApplication::translate("UIVMInformationDialog", "Not Available");
    197     m_strGuestAdditionsLabel = QApplication::translate("UIVMInformationDialog", "Guest Additions");
    198     m_strGuestOSTypeLabel = QApplication::translate("UIVMInformationDialog", "Guest OS Type");
    199     m_strRemoteDesktopLabel = QApplication::translate("UIVMInformationDialog", "Remote Desktop Server Port");
    200     m_strNotSet = QApplication::translate("UIVMInformationDialog", "not set");
    201     m_strNotDetected = QApplication::translate("UIVMInformationDialog", "Not Detected");
     182    m_strTableTitle                    = QApplication::translate("UIVMInformationDialog", "Runtime Attributes");
     183    m_strScreenResolutionLabel         = QApplication::translate("UIVMInformationDialog", "Screen Resolution");
     184    m_strMonitorTurnedOff              = QApplication::translate("UIVMInformationDialog", "turned off", "Screen");
     185    m_strUptimeLabel                   = QApplication::translate("UIVMInformationDialog", "VM Uptime");
     186    m_strClipboardModeLabel            = QApplication::translate("UIVMInformationDialog", "Clipboard Mode");
     187    m_strDragAndDropLabel              = QApplication::translate("UIVMInformationDialog", "Drag and Drop Mode");
     188    m_strExcutionEngineLabel           = QApplication::translate("UIVMInformationDialog", "VM Execution Engine");
     189    m_strNestedPagingLabel             = QApplication::translate("UIVMInformationDialog", "Nested Paging");
     190    m_strUnrestrictedExecutionLabel    = QApplication::translate("UIVMInformationDialog", "Unrestricted Execution");
     191    m_strParavirtualizationLabel       = QApplication::translate("UIVMInformationDialog", "Paravirtualization Interface");
     192    m_strNestedPagingActive            = QApplication::translate("UIVMInformationDialog", "Active", "Nested Paging");
     193    m_strNestedPagingInactive          = QApplication::translate("UIVMInformationDialog", "Inactive", "Nested Paging");
     194    m_strUnrestrictedExecutionActive   = QApplication::translate("UIVMInformationDialog", "Active", "Unrestricted Execution");
     195    m_strUnrestrictedExecutionInactive = QApplication::translate("UIVMInformationDialog", "Inactive", "Unrestricted Execution");
     196    m_strVRDEPortNotAvailable          = QApplication::translate("UIVMInformationDialog", "Not Available", "VRDE Port");
     197    m_strGuestAdditionsLabel           = QApplication::translate("UIVMInformationDialog", "Guest Additions");
     198    m_strGuestOSTypeLabel              = QApplication::translate("UIVMInformationDialog", "Guest OS Type");
     199    m_strRemoteDesktopLabel            = QApplication::translate("UIVMInformationDialog", "Remote Desktop Server Port");
     200    m_strExecutionEngineNotSet         = QApplication::translate("UIVMInformationDialog", "not set", "Execution Engine");
     201    m_strOSNotDetected                 = QApplication::translate("UIVMInformationDialog", "Not Detected", "Guest OS Type");
     202    m_strGANotDetected                 = QApplication::translate("UIVMInformationDialog", "Not Detected", "Guest Additions Version");
    202203
    203204    QString* strLongest = 0;
     
    324325   QString strOSType = m_console.GetGuest().GetOSTypeId();
    325326    if (strOSType.isEmpty())
    326         strOSType = m_strNotDetected;
     327        strOSType = m_strOSNotDetected;
    327328    else
    328329        strOSType = uiCommon().vmGuestOSTypeDescription(strOSType);
     
    335336    /* Determine virtualization attributes: */
    336337    CMachineDebugger debugger = m_console.GetDebugger();
    337 
    338     QString strVirtualization = debugger.GetHWVirtExEnabled() ?
    339         m_strActive : m_strInactive;
    340338
    341339    QString strExecutionEngine;
     
    355353            RT_FALL_THRU();
    356354        case KVMExecutionEngine_NotSet:
    357             strExecutionEngine = m_strNotSet;
     355            strExecutionEngine = m_strExecutionEngineNotSet;
    358356            break;
    359357    }
    360358    QString strNestedPaging = debugger.GetHWVirtExNestedPagingEnabled() ?
    361         m_strActive : m_strInactive;
     359        m_strNestedPagingActive : m_strNestedPagingInactive;
    362360    QString strUnrestrictedExecution = debugger.GetHWVirtExUXEnabled() ?
    363         m_strActive : m_strInactive;
     361        m_strUnrestrictedExecutionActive : m_strUnrestrictedExecutionInactive;
    364362    QString strParavirtProvider = gpConverter->toString(m_machine.GetEffectiveParavirtProvider());
    365363
     
    368366    updateInfoRow(InfoRow_UnrestrictedExecution, QString("%1").arg(m_strUnrestrictedExecutionLabel), strUnrestrictedExecution);
    369367    updateInfoRow(InfoRow_Paravirtualization, QString("%1").arg(m_strParavirtualizationLabel), strParavirtProvider);
    370 
    371368}
    372369
     
    376373    QString strGAVersion = guest.GetAdditionsVersion();
    377374    if (strGAVersion.isEmpty())
    378         strGAVersion = m_strNotDetected;
     375        strGAVersion = m_strGANotDetected;
    379376    else
    380377    {
     
    390387    int iVRDEPort = m_console.GetVRDEServerInfo().GetPort();
    391388    QString strVRDEInfo = (iVRDEPort == 0 || iVRDEPort == -1) ?
    392         m_strNotAvailable : QString("%1").arg(iVRDEPort);
     389        m_strVRDEPortNotAvailable : QString("%1").arg(iVRDEPort);
    393390   updateInfoRow(InfoRow_RemoteDesktop, QString("%1").arg(m_strRemoteDesktopLabel), strVRDEInfo);
    394391}
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette