Changeset 82610 in vbox
- Timestamp:
- Dec 18, 2019 7:09:49 AM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 135497
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationRuntime.cpp
r82474 r82610 111 111 QString m_strUnrestrictedExecutionLabel; 112 112 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; 116 118 QString m_strGuestAdditionsLabel; 117 119 QString m_strGuestOSTypeLabel; 118 120 QString m_strRemoteDesktopLabel; 119 QString m_strNotSet; 120 QString m_strNotDetected; 121 QString m_strExecutionEngineNotSet; 122 QString m_strOSNotDetected; 123 QString m_strGANotDetected; 121 124 /** @} */ 122 125 … … 177 180 void UIRuntimeInfoWidget::retranslateUi() 178 181 { 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"); 202 203 203 204 QString* strLongest = 0; … … 324 325 QString strOSType = m_console.GetGuest().GetOSTypeId(); 325 326 if (strOSType.isEmpty()) 326 strOSType = m_str NotDetected;327 strOSType = m_strOSNotDetected; 327 328 else 328 329 strOSType = uiCommon().vmGuestOSTypeDescription(strOSType); … … 335 336 /* Determine virtualization attributes: */ 336 337 CMachineDebugger debugger = m_console.GetDebugger(); 337 338 QString strVirtualization = debugger.GetHWVirtExEnabled() ?339 m_strActive : m_strInactive;340 338 341 339 QString strExecutionEngine; … … 355 353 RT_FALL_THRU(); 356 354 case KVMExecutionEngine_NotSet: 357 strExecutionEngine = m_str NotSet;355 strExecutionEngine = m_strExecutionEngineNotSet; 358 356 break; 359 357 } 360 358 QString strNestedPaging = debugger.GetHWVirtExNestedPagingEnabled() ? 361 m_str Active : m_strInactive;359 m_strNestedPagingActive : m_strNestedPagingInactive; 362 360 QString strUnrestrictedExecution = debugger.GetHWVirtExUXEnabled() ? 363 m_str Active : m_strInactive;361 m_strUnrestrictedExecutionActive : m_strUnrestrictedExecutionInactive; 364 362 QString strParavirtProvider = gpConverter->toString(m_machine.GetEffectiveParavirtProvider()); 365 363 … … 368 366 updateInfoRow(InfoRow_UnrestrictedExecution, QString("%1").arg(m_strUnrestrictedExecutionLabel), strUnrestrictedExecution); 369 367 updateInfoRow(InfoRow_Paravirtualization, QString("%1").arg(m_strParavirtualizationLabel), strParavirtProvider); 370 371 368 } 372 369 … … 376 373 QString strGAVersion = guest.GetAdditionsVersion(); 377 374 if (strGAVersion.isEmpty()) 378 strGAVersion = m_str NotDetected;375 strGAVersion = m_strGANotDetected; 379 376 else 380 377 { … … 390 387 int iVRDEPort = m_console.GetVRDEServerInfo().GetPort(); 391 388 QString strVRDEInfo = (iVRDEPort == 0 || iVRDEPort == -1) ? 392 m_str NotAvailable : QString("%1").arg(iVRDEPort);389 m_strVRDEPortNotAvailable : QString("%1").arg(iVRDEPort); 393 390 updateInfoRow(InfoRow_RemoteDesktop, QString("%1").arg(m_strRemoteDesktopLabel), strVRDEInfo); 394 391 }
Note:
See TracChangeset
for help on using the changeset viewer.